com.ibm.websphere.management.cmdframework

Class CommandMgrInitializer

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.cmdframework.CommandMgrInitializer

  1. public final class CommandMgrInitializer
  2. extends java.lang.Object
Initialize proper implementation of the commandMgr depending on specified command execution environment. Three command execution environments are supported: client mode, server mode and local mode. Corresponding initialize methods are provided for each command execution environment.

Method Summary

Modifier and Type Method and Description
  1. static
  2. void
initializeClientMode(AdminClient adminclient)
Deprecated. Replaced by CommandMgr.getCommandMgr(AdminClient adminclient)
  1. static
  2. void
initializeLocalMode()
Deprecated. Replaced by CommandMgr.getCommandMgr()
  1. static
  2. void
initializeServerMode()
Deprecated. Replaced by CommandMgr.getCommandMgr()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

initializeClientMode

  1. public static void initializeClientMode( AdminClient adminclient)
  2. throws CommandMgrInitException
Deprecated. Replaced by CommandMgr.getCommandMgr(AdminClient adminclient)
Initializes command framework component in client mode. If user want to connect to another server, then this method should be called again. For now, we only support one AdminClient (Singleton) per process, but in the future we can enhance this.
Parameters:
adminclient - the adminClient object that represents a remote server for command execution.
Throws:

initializeServerMode

  1. public static void initializeServerMode( )
Deprecated. Replaced by CommandMgr.getCommandMgr()
Initializes the command framework component in server mode. This method should be called only once normally. Invocations after first invocation will be a noop.

initializeLocalMode

  1. public static void initializeLocalMode( )
Deprecated. Replaced by CommandMgr.getCommandMgr()
Initializes command framework component in local mode. This method will be called only once normally. All the invocations after first invocation will be equivalent to an noop.