|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.enterprise.admin.launcher.GFLauncher
public abstract class GFLauncher
This is the main Launcher class designed for external and internal usage. Each of the 3 kinds of server -- domain, node-agent and instance -- need to subclass this class.
| Method Summary | |
|---|---|
java.lang.String |
getAdminRealmKeyFile()
Returns the admin realm key file for the server, if the admin realm is a FileRealm. |
java.util.List<java.lang.String> |
getCommandLine()
|
int |
getDebugPort()
Return the port number of the debug port, or -1 if debugging is not enabled. |
int |
getExitValue()
Returns the exit value of the process. |
GFLauncherInfo |
getInfo()
|
java.util.List<java.lang.String> |
getJvmOptions()
|
java.lang.String |
getLogFilename()
Get the location of the server logfile |
java.lang.Process |
getProcess()
You don't want to call this before calling launch because it would not make sense. |
ProcessStreamDrainer |
getProcessStreamDrainer()
A ProcessStreamDrainer is always attached to every Process created here. |
boolean |
isDebugSuspend()
Return true if suspend=y AND debugging is on. |
boolean |
isSecureAdminEnabled()
Returns true if secure admin is enabled |
void |
launch()
Launches the server. |
void |
launchJVM(java.util.List<java.lang.String> cmdsIn)
|
boolean |
needsAutoUpgrade()
Does this domain need to be automatically upgraded before it can be started? |
boolean |
needsManualUpgrade()
Does this domain need to be manually upgraded before it can be started? |
void |
relaunch()
Launches the server - but forces the setup() to go through again. |
void |
setup()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final GFLauncherInfo getInfo()
public final void launch()
throws GFLauncherException
GFLauncherException
public final void relaunch()
throws GFLauncherException
GFLauncherException
public final void launchJVM(java.util.List<java.lang.String> cmdsIn)
throws GFLauncherException
GFLauncherException
public void setup()
throws GFLauncherException,
MiniXmlParserException
GFLauncherException
MiniXmlParserExceptionpublic java.lang.String getAdminRealmKeyFile()
public boolean isSecureAdminEnabled()
public final int getExitValue()
public final java.lang.Process getProcess()
throws GFLauncherException
GFLauncherException - if the Process has not been created yet - call launch()
before calling this method.
public final ProcessStreamDrainer getProcessStreamDrainer()
throws GFLauncherException
GFLauncherException - if the process has not launched yetProcessStreamDrainer
public java.lang.String getLogFilename()
throws GFLauncherException
GFLauncherException - if you call this method too earlypublic final int getDebugPort()
public final boolean isDebugSuspend()
public final boolean needsAutoUpgrade()
public final boolean needsManualUpgrade()
public final java.util.List<java.lang.String> getCommandLine()
public final java.util.List<java.lang.String> getJvmOptions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||