|
||||||||||
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.TWGConsoleServiceNode
Director Console service node. This class is used to encapsulate the console-server logon process, as well as creating the "main" ServiceNode for communications between the console and server. In addition, the class automatically handles the update process for the TWGConObject shadow objects.
Field Summary | |
---|---|
static java.lang.String |
CON_PROPERTIES
Resource name of console properties file |
static java.lang.String |
GATEWAY_LINK
Base name of link configuration properties in file |
static java.lang.String |
SUPPRESS_LOGININFO
Property key for login info suppression |
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 | |
---|---|
void |
CommandComplete(Command cmd)
Command completion callback. |
static java.util.Properties |
getConsoleProperties()
Get reference to console properties set |
static TWGConsoleServiceNode |
getConsoleServiceNode()
Get reference to the console ServiceNode |
static java.lang.String[] |
getLinkDriverNames()
Get list of all available link drivers (NLS strings) |
static void |
getWizardProperties(CommandCompleteListener ccl)
Request the Wizard initialization information |
static void |
initialize()
Initialization method : this method MUST be called before any other TWGConsoleServiceNode calls are made. |
static void |
logonToServer(java.lang.String hostname,
java.lang.String userid,
java.lang.String password,
int driver_index)
Server logon method : this method is used to attempt to attach to a given server using the link driver with the given index in the getLinkDriverNames() list. |
static void |
putWizardProperty(java.lang.String key,
java.lang.String value,
CommandCompleteListener ccl)
Request the Wizard initialization information |
static void |
startShadowRefresh()
Start console shadow object refresh cycle |
static boolean |
suppressLoginInfo()
Indicate whether login information is to be suppressed. |
static void |
terminate()
Terminate link to server : close console service node and terminate link driver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CON_PROPERTIES
public static final java.lang.String GATEWAY_LINK
public static final java.lang.String SUPPRESS_LOGININFO
Method Detail |
public static void initialize() throws java.io.IOException, com.tivoli.twg.engine.TWGGatewayInitException
java.io.IOException
- if error loading propertiescom.tivoli.twg.engine.TWGGatewayInitException
- if error loading link driverspublic static boolean suppressLoginInfo()
public static java.lang.String[] getLinkDriverNames()
public static void logonToServer(java.lang.String hostname, java.lang.String userid, java.lang.String password, int driver_index) throws java.io.IOException, com.tivoli.twg.engine.TWGInitParmException, com.tivoli.twg.engine.TWGLinkNotSupportedException, com.tivoli.twg.engine.TWGBadUserIDException, com.tivoli.twg.engine.TWGBadPasswordException, java.net.UnknownHostException, ServiceNodeException, java.lang.InterruptedException
hostname
- - name of host supplied by useruserid
- - user ID supplied by userpassword
- - password supplied by userdriver_index
- - index (base 0) of link driver selectedjava.io.IOException
- if communications errorcom.tivoli.twg.engine.TWGInitParmException
- if bad initialization stringcom.tivoli.twg.engine.TWGLinkNotSupportedException
- if link type not supportedcom.tivoli.twg.engine.TWGBadUserIDException
- if bad user-IDcom.tivoli.twg.engine.TWGBadPasswordException
- if bad passwordjava.net.UnknownHostException
- if bad hostnameServiceNodeException
- if error creating console service nodejava.lang.InterruptedException
- if thread interruptedpublic static void startShadowRefresh() throws ServiceNodeException, java.lang.InterruptedException
ServiceNodeException
- if error creating console service nodejava.lang.InterruptedException
- if thread interruptedpublic static void getWizardProperties(CommandCompleteListener ccl) throws ServiceNodeException, java.lang.InterruptedException
CommandCompleteListener
- ServiceNodeException
- if error creating console service nodejava.lang.InterruptedException
- if thread interruptedpublic static void putWizardProperty(java.lang.String key, java.lang.String value, CommandCompleteListener ccl) throws ServiceNodeException, java.lang.InterruptedException
String
- key of propertyString
- value of propertyCommandCompleteListener
- ServiceNodeException
- if error creating console service nodejava.lang.InterruptedException
- if thread interruptedpublic static TWGConsoleServiceNode getConsoleServiceNode() throws ServiceNodeClosedException
ServiceNodeClosedException
- if not defined or openedpublic static void terminate()
public void CommandComplete(Command cmd)
CommandComplete
in interface CommandCompleteListener
cmd
- - Command instance of command which has completedpublic static java.util.Properties getConsoleProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |