com.ibm.websphere.management.cmdframework
Class CommandMgrInitializer
- java.lang.Object
-
- com.ibm.websphere.management.cmdframework.CommandMgrInitializer
-
public final class CommandMgrInitializer 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
Methods Modifier and Type Method and Description static void
initializeClientMode(AdminClient adminclient)
Deprecated.Replaced by CommandMgr.getCommandMgr(AdminClient adminclient)static void
initializeLocalMode()
Deprecated.Replaced by CommandMgr.getCommandMgr()static void
initializeServerMode()
Deprecated.Replaced by CommandMgr.getCommandMgr()
-
-
-
Method Detail
-
initializeClientMode
public static void initializeClientMode(AdminClient adminclient) 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:
CommandMgrInitException
-
initializeServerMode
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
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.
-
-