|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tivoli.twg.libs.ServiceNode | +--com.tivoli.twg.engine.TWGServerServiceNode
Primary ServiceNode for Director Server. This ServiceNode class provides a commonly accessable ServiceNode for communicating from within the server (including from within server extensions), as well as allowing custom command handlers to be registered. Specifically, support for TWGServerCommand-based classes can be registered, which are Command classes which use a common command code, but specify different "subcommands" through a command identifier string (ASCIIZ) in the first parameter.
Fields inherited from class com.tivoli.twg.libs.ServiceNode |
---|
SVCNODE_DISABLE_TRACING_CMD, SVCNODE_ENABLE_TRACING_CMD, SVCNODE_GET_STATUS_CMD, SVCNODE_KILL_SERVICE_CMD |
Method Summary | |
---|---|
boolean |
CommandReceived(Command cmd)
Default handler for commands sent to server ServiceNode. |
static TWGServerServiceNode |
GetServiceNode()
Return server service node |
static void |
handleActDeactUserAccountInfo(Command cmd)
Handle request to activate/deactivate native user account |
static void |
handleCreateNonNative(Command cmd)
Handle request to create non-native account |
static void |
handleDeleteFilters(Command cmd)
Handle request to delete filters |
static void |
handleDeleteManagedObjects(Command cmd)
Handle request to delete managed objects |
static void |
handleDeleteNonNative(Command cmd)
Handle request to delete non-native account |
static void |
handleDeleteUser(Command cmd)
Handle request to delete user account |
static void |
handleDiscoveryAllRequest(Command cmd)
Handle request to start discovery on all MOFs |
static void |
handleGetAddressEntries(Command cmd)
Handle request to get address entries for given managed objects |
static void |
handleGetAttributeCmd(Command cmd)
Handle request for attribute reads |
static void |
handleGetAttributeIDsCmd(Command cmd)
Get list of supported attribute IDs command request |
static void |
handleGetUserAccountInfo(Command cmd)
Handle request for user account information |
static void |
handleInitUser(Command cmd)
Handle request to initialize user account |
static void |
handleInventoryUpdateNotification(Command cmd)
Handle notification command for inventory update |
static void |
handleListTWGObjectsCmd(Command cmd)
Handle request to get list of all object IDs of all instances of a given TWGObject subclass |
static void |
handleListTWGPersistentObjectsCmd(Command cmd)
Handle request to get list of all object IDs of all instances of a given TWGPersistentObject subclass |
static void |
handleResolveFilterMembers(Command cmd)
Handle request for filter members |
static void |
handleSetAttributeCmd(Command cmd)
Handler for attribute write request |
static void |
Initialize()
Initialization method : creates service node |
static void |
RegisterServerCommandHandler(java.lang.String cmdname,
TWGServerCommandHandler handler)
Register an extension command handler with the server ServiceNode. |
static void |
Terminate()
Termination method : closes service node |
static void |
UnregisterServerCommandHandler(java.lang.String cmdname)
Unregister an extension command handler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void Initialize() throws BadServiceNodeImplException, ServiceNodeClosedException, ServiceNodeException
BadServiceNodeImplException
- - if no
ServiceNodeImplFactory definedServiceNodeClosedException
- - if ServiceNode failed
to openServiceNodeException
- if other problem occurspublic static void Terminate() throws ServiceNodeException
ServiceNodeException
- if other problem occurspublic static TWGServerServiceNode GetServiceNode()
public static void RegisterServerCommandHandler(java.lang.String cmdname, TWGServerCommandHandler handler)
cmdname
- - name string for commandhandler
- - handler to be registeredpublic static void UnregisterServerCommandHandler(java.lang.String cmdname)
cmdname
- - name string for commandpublic boolean CommandReceived(Command cmd)
CommandReceived
in class ServiceNode
cmd
- - Command instance receivedpublic static void handleGetAttributeCmd(Command cmd)
cmd
- - Command containing requestpublic static void handleSetAttributeCmd(Command cmd)
cmd
- - request commandpublic static void handleGetAttributeIDsCmd(Command cmd)
cmd
- - command requestpublic static void handleListTWGObjectsCmd(Command cmd)
cmd
- - command requestpublic static void handleListTWGPersistentObjectsCmd(Command cmd)
cmd
- - command requestpublic static void handleDeleteManagedObjects(Command cmd)
cmd
- - command requestedpublic static void handleGetAddressEntries(Command cmd)
cmd
- - command requestedpublic static void handleDeleteFilters(Command cmd)
cmd
- - command requestedpublic static void handleDiscoveryAllRequest(Command cmd)
cmd
- - received commandpublic static void handleInventoryUpdateNotification(Command cmd)
cmd
- - received commandpublic static void handleResolveFilterMembers(Command cmd)
cmd
- - received commandpublic static void handleGetUserAccountInfo(Command cmd)
cmd
- - command requestedpublic static void handleActDeactUserAccountInfo(Command cmd)
cmd
- - command requestedpublic static void handleCreateNonNative(Command cmd)
cmd
- - command requestedpublic static void handleDeleteNonNative(Command cmd)
cmd
- - command requestedpublic static void handleDeleteUser(Command cmd)
cmd
- - command requestedpublic static void handleInitUser(Command cmd)
cmd
- - command requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |