|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.admin.server.AbstractAdminImpl
com.metamatrix.admin.server.ServerRuntimeStateAdminImpl
public class ServerRuntimeStateAdminImpl
Field Summary |
---|
Constructor Summary | |
---|---|
ServerRuntimeStateAdminImpl(ServerAdminImpl parent,
ClusteredRegistryState registry)
|
Method Summary | |
---|---|
void |
bounceSystem(boolean waitUntilDone)
Stop and restart the entire system. |
void |
cancelRequest(java.lang.String identifier)
Cancel Request |
void |
cancelSourceRequest(java.lang.String identifier)
Cancel Source Request |
void |
changeVDBStatus(java.lang.String name,
java.lang.String version,
int newStatus)
Change the status of a Deployed VDB |
void |
clearCache(java.lang.String cacheIdentifier)
Clear the cache or caches specified by the cacheIdentifier. |
void |
restart()
Restart System |
void |
shutdown(int millisToWait)
Stop the MM Query. |
void |
startConnectorBinding(java.lang.String identifier)
Start Connector Binding |
void |
startHost(java.lang.String hostName,
boolean waitUntilDone)
Start the Host for this cluster |
void |
startProcess(java.lang.String identifier,
boolean waitUntilDone)
Start a Process in the system. |
void |
stopConnectorBinding(java.lang.String identifier,
boolean stopNow)
Stop Connector Binding |
void |
stopHost(java.lang.String hostName,
boolean stopNow,
boolean waitUntilDone)
Stop the Host for this cluster |
void |
stopProcess(java.lang.String identifier,
boolean stopNow,
boolean waitUntilDone)
Stop Process running in the system. |
void |
stopSystem()
Stop the entire system. |
void |
synchronizeSystem(boolean waitUntilDone)
Synchronize the entire system. |
void |
terminateSession(java.lang.String identifier)
Terminate the Session |
void |
terminateTransaction(java.lang.String transactionId,
java.lang.String sessionId)
Mark the given transaction as rollback only. |
void |
terminateTransaction(javax.transaction.xa.Xid transactionId)
Mark the given global transaction as rollback only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerRuntimeStateAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
Method Detail |
---|
public void cancelRequest(java.lang.String identifier) throws AdminException
RuntimeStateAdmin
cancelRequest
in interface RuntimeStateAdmin
identifier
- The request identifier defined by Request
No wild cards currently supported, must be explicit
AdminException
- if there's a system error.RuntimeStateAdmin.cancelRequest(java.lang.String)
public void cancelSourceRequest(java.lang.String identifier) throws AdminException
RuntimeStateAdmin
cancelSourceRequest
in interface RuntimeStateAdmin
identifier
- The request identifier defined by Request
No wild cards currently supported, must be explicit
AdminException
- if there's a system error.RuntimeStateAdmin.cancelSourceRequest(java.lang.String)
public void startConnectorBinding(java.lang.String identifier) throws AdminException
RuntimeStateAdmin
startConnectorBinding
in interface RuntimeStateAdmin
identifier
- identifier for ConnectorBinding
"*"
- for all connector bindings in the system
"name*"
- for all connector bindings that begin with given name
"name"
- for single connector binding by the given name
AdminException
- if there's a system error.RuntimeStateAdmin.startConnectorBinding(java.lang.String)
public void startHost(java.lang.String hostName, boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
startHost
in interface ServerRuntimeStateAdmin
hostName
- the unique identifier for for a Host
in the system.waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.startHost(java.lang.String, boolean)
public void startProcess(java.lang.String identifier, boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
startProcess
in interface ServerRuntimeStateAdmin
identifier
- the unique identifier for for a
ProcessObject
in the system.waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.startProcess(java.lang.String, boolean)
public void stopConnectorBinding(java.lang.String identifier, boolean stopNow) throws AdminException
RuntimeStateAdmin
stopConnectorBinding
in interface RuntimeStateAdmin
identifier
- identifier for ConnectorBinding
"*"
- for all connector bindings in the system
"name*"
- for all connector bindings that begin with given name
"name"
- for single connector binding by the given name
stopNow
- If true, stop the process forcefully. If false, wait until any pending work is done.
AdminException
- - if there's a system error.com.metamatrix.admin.api.server.ServerRuntimeStateAdmin#stopConnectorBinding(java.lang.String)
public void stopHost(java.lang.String hostName, boolean stopNow, boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
stopHost
in interface ServerRuntimeStateAdmin
hostName
- the unique identifier for for a Host
in the system.stopNow
- If true, stop the host forcefully. If false, wait until any pending work is done.waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.stopHost(java.lang.String, boolean, boolean)
public void stopProcess(java.lang.String identifier, boolean stopNow, boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
stopProcess
in interface ServerRuntimeStateAdmin
identifier
- the unique identifier for for a
ProcessObject
in the system.stopNow
- a boolean
value indicating whether to halt the process immediately
or let it finish processing first.waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.stopProcess(java.lang.String, boolean, boolean)
public void stopSystem() throws AdminException
ServerRuntimeStateAdmin
stopSystem
in interface ServerRuntimeStateAdmin
AdminException
- if there's a system error.ServerRuntimeStateAdmin.stopSystem()
public void restart() throws AdminException
RuntimeStateAdmin
restart
in interface RuntimeStateAdmin
waitUntilDone
- Ignored: the waiting for this method is done in ServerAdminClientInterceptor on the client-side.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.bounceSystem(boolean)
public void synchronizeSystem(boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
synchronizeSystem
in interface ServerRuntimeStateAdmin
waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
AdminException
- if there's a system error.ServerRuntimeStateAdmin.synchronizeSystem(boolean)
public void clearCache(java.lang.String cacheIdentifier) throws AdminException
RuntimeStateAdmin
clearCache
in interface RuntimeStateAdmin
cacheIdentifier
- Cache name identifier Cache
.
No wild cards currently supported, must be explicit
AdminException
- if there's a system error.RuntimeStateAdmin.clearCache(java.lang.String)
public void terminateSession(java.lang.String identifier) throws AdminException
RuntimeStateAdmin
terminateSession
in interface RuntimeStateAdmin
identifier
- Session Identifier Session
.
No wild cards currently supported, must be explicit
AdminException
- if there's a system error.RuntimeStateAdmin.terminateSession(java.lang.String)
public void changeVDBStatus(java.lang.String name, java.lang.String version, int newStatus) throws AdminException
RuntimeStateAdmin
changeVDBStatus
in interface RuntimeStateAdmin
name
- Name of the Virtual Databaseversion
- Version of the Virtual DatabasenewStatus
- Active, InActive, Delete
AdminException
- if there's a system error.RuntimeStateAdmin.changeVDBStatus(java.lang.String, java.lang.String, int)
public void terminateTransaction(java.lang.String transactionId, java.lang.String sessionId) throws AdminException
RuntimeStateAdmin
terminateTransaction
in interface RuntimeStateAdmin
AdminException
public void terminateTransaction(javax.transaction.xa.Xid transactionId) throws AdminException
RuntimeStateAdmin
terminateTransaction
in interface RuntimeStateAdmin
AdminException
public void bounceSystem(boolean waitUntilDone) throws AdminException
ServerRuntimeStateAdmin
bounceSystem
in interface ServerRuntimeStateAdmin
waitUntilDone
- If true, this method waits until the operation is finished before returning.
This may take a long time to complete. If false, this method returns immediately, even though the operation
may not be finished.
NOTE: If waitUntilDone
is true, this method will wait until the server is able to connect to,
but it may not wait until non-essential services are available.
AdminException
- if there's a system error.public void shutdown(int millisToWait) throws AdminException
RuntimeStateAdmin
shutdown
in interface RuntimeStateAdmin
millisToWait
- Milliseconds to wait (if >0) or <=0 for no wait before stopping
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |