Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.actions
Class QSYSRemoteServerDebugRouterAction

java.lang.Object
  extended by SystemCascadingRemoteServerBaseAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSBaseRemoteServerAction
          extended by com.ibm.etools.iseries.rse.ui.actions.QSYSRemoteServerDebugRouterAction

public class QSYSRemoteServerDebugRouterAction
extends QSYSBaseRemoteServerAction

This action appears under the Remote Servers Action, and is labeled Remote Agent Controller. It allows the user to start and stop the RAC server.


Field Summary
static String copyright
           
static int DEFAULT_ROUTER_PORT
           
static String ENDDBGSVR_COMMAND
           
static String ROUTER_LOCATION
           
static String ROUTER_NAME
           
static String ROUTER_TYPE
           
static String SRVTABL_ENTRY
           
static String STRDBGSVR_COMMAND
           
static String WRKSRVTBLE_COMMAND
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSBaseRemoteServerAction
job, returnedMessages, SBMJOB, selectedConnection
 
Constructor Summary
QSYSRemoteServerDebugRouterAction(Shell shell)
          Constructor.
 
Method Summary
protected  String getJobName()
          Overridden from parent.
protected  String getJobSubSystem()
          Return the subsystem the job runs in, if you know it.
protected  String getStartServerCommand()
          Overridable parent method to return the SBMJOB command to be submitted to start this server
protected  String getStopServerCommand()
          Overridable parent method to return the SBMJOB command to be submitted to start this server By default we return "ENDJOB JOB(" + getISeriesJob().getFullJobName() + ") OPTION(*IMMED)"
protected  boolean shouldEnable(IHost connection)
          Parent method override.
 boolean startServer()
          Overridden parent method.
 boolean stopServer()
          Overridden parent method.
 void systemResourceChanged(ISystemResourceChangeEvent event)
          This is the method in your class that will be called when a system resource changes.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSBaseRemoteServerAction
getISeriesConnection, getISeriesJob, getMessages, isServerStarted, isServerStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

STRDBGSVR_COMMAND

public static final String STRDBGSVR_COMMAND
See Also:
Constant Field Values

ENDDBGSVR_COMMAND

public static final String ENDDBGSVR_COMMAND
See Also:
Constant Field Values

DEFAULT_ROUTER_PORT

public static final int DEFAULT_ROUTER_PORT
See Also:
Constant Field Values

WRKSRVTBLE_COMMAND

public static final String WRKSRVTBLE_COMMAND
See Also:
Constant Field Values

SRVTABL_ENTRY

public static final String SRVTABL_ENTRY
See Also:
Constant Field Values

ROUTER_LOCATION

public static final String ROUTER_LOCATION
See Also:
Constant Field Values

ROUTER_NAME

public static final String ROUTER_NAME
See Also:
Constant Field Values

ROUTER_TYPE

public static final String ROUTER_TYPE
See Also:
Constant Field Values
Constructor Detail

QSYSRemoteServerDebugRouterAction

public QSYSRemoteServerDebugRouterAction(Shell shell)
Constructor.

Parameters:
shell - Shell of parent window, used as the parent for the dialog. Can be null, but be sure to call setParent before the action is used (ie, run).
Method Detail

getStartServerCommand

protected String getStartServerCommand()
Overridable parent method to return the SBMJOB command to be submitted to start this server

Specified by:
getStartServerCommand in class QSYSBaseRemoteServerAction

getStopServerCommand

protected String getStopServerCommand()
Overridable parent method to return the SBMJOB command to be submitted to start this server By default we return "ENDJOB JOB(" + getISeriesJob().getFullJobName() + ") OPTION(*IMMED)"

Overrides:
getStopServerCommand in class QSYSBaseRemoteServerAction

startServer

public boolean startServer()
Overridden parent method. Do not override! This remotely runs the command returned from getStartServerCommand().

Overrides:
startServer in class QSYSBaseRemoteServerAction
Returns:
true if the remote server was successfully started, false if not.

stopServer

public boolean stopServer()
Overridden parent method. Do not override! Callback from the com.ibm.etools.systems.core.ui.actions.SystemRemoteServerStartAction class that is called when the user selects to stop this remote server/daemon.

Overrides:
stopServer in class QSYSBaseRemoteServerAction
Returns:
true if the remote server was successfully stopped, false if not.

systemResourceChanged

public void systemResourceChanged(ISystemResourceChangeEvent event)
This is the method in your class that will be called when a system resource changes. Listen for run commands.

See Also:
ISystemResourceChangeEvent

getJobName

protected String getJobName()
Overridden from parent. Return the job name to test if active, in order to determine if the server is started or not. This is just the name, to which * will be appended for each of the job number and user ID. We return "RASTART".

Specified by:
getJobName in class QSYSBaseRemoteServerAction

getJobSubSystem

protected String getJobSubSystem()
Return the subsystem the job runs in, if you know it. Else return null. We return null

Specified by:
getJobSubSystem in class QSYSBaseRemoteServerAction

shouldEnable

protected boolean shouldEnable(IHost connection)
Parent method override.
This method is an opportunity to decide whether to enable this action or not. Sometimes we can determine if the connection is connected or not, in which case we want to disable this action if the connection is not connected.
We return true iff the connection is connected.

Overrides:
shouldEnable in class QSYSBaseRemoteServerAction

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.