Methods Summary |
---|
public int | getDebugPort()Returns the port on which JPDA port in admin-server JVM listens.
Returns -1 in case the debug flag is not enabled.
return ( mDebugPort );
|
public boolean | isDebug()Returns true if the instance is set to run in debug mode,
false otherwise.
return mDebug;
|
public boolean | isNotRunning()Returns true if the status code is set to kInstanceNotRunning, false
otherwise.
return (mStatusCode == Status.kInstanceNotRunningCode);
|
public boolean | isRunning()
return (mStatusCode == Status.kInstanceRunningCode);
|
public boolean | isStarting()Returns true if the status code is set to kInstanceStartingCode,
false otherwise.
return (mStatusCode == kInstanceStartingCode);
|
public boolean | isStopping()Returns true if the status code is set to kInstanceStoppingCode,
false otherwise.
return (mStatusCode == kInstanceStoppingCode);
|
public void | setDebug(boolean debug)
mDebug = debug;
|
public void | setDebugPort(int port)Sets the JPDA debugger port. This is the port to which the debuggers can
connect in case the JVM is to be debugged.
mDebugPort = port;
|
public void | setNotRunning()Convenience method for setting the current status code
to not running.
mStatusCode = kInstanceNotRunningCode;
mStatusString = kInstanceNotRunningMsg;
|
public void | setRunning()Convenience method for setting the current status code
to running.
mStatusCode = kInstanceRunningCode;
mStatusString = kInstanceRunningMsg;
|
public void | setStarting()Convenience method for setting the current status code
to starting.
mStatusCode = kInstanceStartingCode;
mStatusString = kInstanceStartingMsg;
|
private void | setStatusCodeAndStr(int statusCode)Set status code and string to appropriate values using specified status
code. An IllegalArgumentException is thrown if status code is invalid
for server instance.
switch (statusCode) {
case Status.kInstanceStartingCode:
this.mStatusCode = statusCode;
this.mStatusString = Status.kInstanceStartingMsg;
break;
case Status.kInstanceRunningCode:
this.mStatusCode = statusCode;
this.mStatusString = Status.kInstanceRunningMsg;
break;
case Status.kInstanceStoppingCode:
this.mStatusCode = statusCode;
this.mStatusString = Status.kInstanceStoppingMsg;
break;
case Status.kInstanceNotRunningCode:
this.mStatusCode = statusCode;
this.mStatusString = Status.kInstanceNotRunningMsg;
break;
default:
String msg = localizedStrMgr.getString( "admin.common.invalid_server_instance_status_code", new String( statusCode + "" ) );
throw new IllegalArgumentException( msg );
}
|
public void | setStopping()Convenience method for setting the current status code
to stopping.
mStatusCode = kInstanceStoppingCode;
mStatusString = kInstanceStoppingMsg;
|