public abstract class StartServer extends Object
OptionalDeploymentManagerFactory
Constructor and Description |
---|
StartServer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canStopDeploymentManagerSilently()
|
abstract ServerDebugInfo |
getDebugInfo(javax.enterprise.deploy.spi.Target target)
Returns the host/port necessary for connecting to the server's debug information.
|
abstract boolean |
isAlsoTargetServer(javax.enterprise.deploy.spi.Target target)
Returns true if the admin server is also the given target server (share the same vm).
|
abstract boolean |
isDebuggable(javax.enterprise.deploy.spi.Target target)
Returns true if the given target is in debug mode.
|
abstract boolean |
isRunning()
Returns true if this admin server is running.
|
boolean |
isRunning(javax.enterprise.deploy.spi.Target target)
Returns the running state of a specific target.
|
boolean |
needsRestart(javax.enterprise.deploy.spi.Target target)
Returns true if target server needs a restart for last configuration changes to
take effect.
|
abstract boolean |
needsStartForAdminConfig()
Returns true if the admin server should be started before admininistrative configuration.
|
abstract boolean |
needsStartForConfigure()
Returns true if the admin server should be started before server deployment configuration.
|
abstract boolean |
needsStartForTargetList()
Returns true if the admin server should be started before asking for
target list.
|
abstract javax.enterprise.deploy.spi.status.ProgressObject |
startDebugging(javax.enterprise.deploy.spi.Target target)
Start or restart the target in debug mode.
|
abstract javax.enterprise.deploy.spi.status.ProgressObject |
startDeploymentManager()
Starts the admin server.
|
javax.enterprise.deploy.spi.status.ProgressObject |
startProfiling(javax.enterprise.deploy.spi.Target target)
Start the target in profile mode, null target implies the admin server.
|
javax.enterprise.deploy.spi.status.ProgressObject |
startTarget(javax.enterprise.deploy.spi.Target target)
Starts the target server asynchronously and reports the status
through the returned
ProgressObject . |
abstract javax.enterprise.deploy.spi.status.ProgressObject |
stopDeploymentManager()
Stops the admin server.
|
void |
stopDeploymentManagerSilently()
Optional method.
|
javax.enterprise.deploy.spi.status.ProgressObject |
stopTarget(javax.enterprise.deploy.spi.Target target)
Stops the target server asynchronously and reports the status
through the returned
ProgressObject . |
boolean |
supportsStartDebugging(javax.enterprise.deploy.spi.Target target)
Can be the specified target server started in the debug mode? If the
target is also an admin server can be the admin server started in the
debug mode?
|
abstract boolean |
supportsStartDeploymentManager()
Returns true if the admin server can be started through this spi.
|
boolean |
supportsStartProfiling(javax.enterprise.deploy.spi.Target target)
Can be the specified target server started in profile mode? If the
target is also an admin server can be the admin server started in
profile mode?
|
boolean |
supportsStartTarget(javax.enterprise.deploy.spi.Target target)
Returns if the plugin can start/stop single target servers.
|
public abstract boolean isAlsoTargetServer(javax.enterprise.deploy.spi.Target target)
target
- the target server in question; could be null.public abstract boolean supportsStartDeploymentManager()
public boolean supportsStartTarget(javax.enterprise.deploy.spi.Target target)
target
- the target server in question, could be null in which
case the answer should probably be false.public boolean supportsStartDebugging(javax.enterprise.deploy.spi.Target target)
target
- the target server in question, null implies the case where
target is also an admin server.public boolean supportsStartProfiling(javax.enterprise.deploy.spi.Target target)
target
- the target server in question, null implies the case where
target is also an admin server.public abstract javax.enterprise.deploy.spi.status.ProgressObject startDeploymentManager()
public abstract javax.enterprise.deploy.spi.status.ProgressObject stopDeploymentManager()
public void stopDeploymentManagerSilently()
public boolean canStopDeploymentManagerSilently()
public abstract boolean needsStartForConfigure()
public abstract boolean needsStartForTargetList()
public abstract boolean needsStartForAdminConfig()
public abstract boolean isRunning()
public boolean isRunning(javax.enterprise.deploy.spi.Target target)
target
- the target server in question; null value implies
the query is against the admin server.public abstract boolean isDebuggable(javax.enterprise.deploy.spi.Target target)
public javax.enterprise.deploy.spi.status.ProgressObject startTarget(javax.enterprise.deploy.spi.Target target)
ProgressObject
. This should be
overwritten by plugins which support the state management of
different target servers.target
- a non-null target server to be startedpublic javax.enterprise.deploy.spi.status.ProgressObject stopTarget(javax.enterprise.deploy.spi.Target target)
ProgressObject
. This should be
overwritten by plugins which support the state management of
different target servers.target
- a non-null target server to be stoppedpublic abstract javax.enterprise.deploy.spi.status.ProgressObject startDebugging(javax.enterprise.deploy.spi.Target target)
target
- the target serverpublic javax.enterprise.deploy.spi.status.ProgressObject startProfiling(javax.enterprise.deploy.spi.Target target)
target
- the target server in question, null target implies
the admin server.public abstract ServerDebugInfo getDebugInfo(javax.enterprise.deploy.spi.Target target)
public boolean needsRestart(javax.enterprise.deploy.spi.Target target)
target
- target server; null implies the case where target is also admin server.