|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSystemCascadingRemoteServerBaseAction
com.ibm.etools.iseries.rse.ui.actions.QSYSBaseRemoteServerAction
public abstract class QSYSBaseRemoteServerAction
This is a base class for all actions for starting/stopping remote iSeries servers, within the Remote Servers cascading action. It handles common stuff, like testing if the connection is connected.
| Field Summary | |
|---|---|
static String |
copyright
|
protected IQSYSJob |
job
|
protected Object[] |
returnedMessages
|
protected static String |
SBMJOB
|
protected IBMiConnection |
selectedConnection
|
| Constructor Summary | |
|---|---|
QSYSBaseRemoteServerAction(String label,
String tooltip,
Shell shell)
Constructor. |
|
| Method Summary | |
|---|---|
protected IBMiConnection |
getISeriesConnection()
Helper method to return the currently selected iSeries connection. |
protected IQSYSJob |
getISeriesJob()
Return the iSeries system job representing this remote server. |
protected abstract String |
getJobName()
Overridable. |
protected abstract String |
getJobSubSystem()
Overridable. |
Object[] |
getMessages()
Return the messages resulting from the last call to startServer or stopServer. |
protected abstract String |
getStartServerCommand()
Overridable method to return the SBMJOB command to be run 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 |
isServerStarted(IBMiConnection iSeriesConnection)
Overridable method to test if this remote server is started already or not. |
protected boolean |
isServerStarted(IHost connection)
Overridden parent method to compute if this remote server/daemon is currently running or not. |
protected boolean |
shouldEnable(IHost connection)
Parent method override. |
boolean |
startServer()
Overridden parent method. |
boolean |
stopServer()
Overridden parent method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String copyright
protected static final String SBMJOB
protected IBMiConnection selectedConnection
protected Object[] returnedMessages
protected IQSYSJob job
| Constructor Detail |
|---|
public QSYSBaseRemoteServerAction(String label,
String tooltip,
Shell shell)
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 |
|---|
protected abstract String getStartServerCommand()
protected String getStopServerCommand()
protected IBMiConnection getISeriesConnection()
protected boolean isServerStarted(IBMiConnection iSeriesConnection)
getJobName(),
is active in the system, returning true if it is. If this behaviour is sufficient,
you need not override this.
Called from #enable(SystemConnection).
protected IQSYSJob getISeriesJob()
protected abstract String getJobName()
protected abstract String getJobSubSystem()
protected boolean isServerStarted(IHost connection)
isServerStarted(IBMiConnection), which this
method calls.
public boolean startServer()
getStartServerCommand().
public Object[] getMessages()
public boolean stopServer()
com.ibm.etools.systems.core.ui.actions.SystemRemoteServerStartAction class
that is called when the user selects to stop this remote server/daemon.
protected boolean shouldEnable(IHost connection)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||