|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeStateAdminAPI
Method Summary | |
---|---|
void |
bounceServer()
Shutdown server and restart. |
java.util.List |
getHosts()
Return all hosts running in mm system. |
java.util.List |
getLogEntries(java.util.Date startTime,
java.util.Date endTime,
java.util.List levels,
java.util.List contexts,
int maxRows)
Get the log entries that match the specified criteria. |
ProcessStatistics |
getProcessStatistics(java.lang.String hostName,
java.lang.String processName)
Return VMStatistics object for Process. |
PscID |
getPscIDByName(java.lang.String hostName,
java.lang.String processName,
java.lang.String pscName)
Return the PscID by Name |
java.util.Date |
getServerStartTime()
Returns a Date object representing the time the server was started. |
ServiceID |
getServiceIDByName(java.lang.String hostName,
java.lang.String processName,
java.lang.String serviceName)
Return the ServiceID by Name |
java.util.Collection |
getServiceQueueStatistics(ServiceID serviceID)
Return Collection of QueueStats for service. |
WorkerPoolStats |
getServiceQueueStatistics(ServiceID serviceID,
java.lang.String queueName)
Return QueueStats object for queue. |
java.util.List |
getServices()
Return all services running in mm system. |
SystemState |
getSystemState()
Return the running state of the system. |
java.util.List |
getVMControllerBindings()
Returns a list that contains all of the VMControllerBindings for all the VMControllers running in the MetaMatrix system. |
boolean |
isSystemStarted()
Return TRUE if the system is started; i.e. |
void |
restartService(ServiceID serviceID)
Restart a failed or stopped service. |
void |
setLoggingConfiguration(Configuration config,
LogConfiguration logConfig,
java.util.List actions)
Sets the LogConfiguration on the given Configuration . |
void |
setLoggingConfiguration(LogConfiguration logConfig,
java.lang.String hostName,
java.lang.String processName)
Sets the LogConfiguration on the LogManager running in the given VM. |
void |
shutdownServer()
Gracefully shutdown server waiting for work to complete. |
void |
startHost(java.lang.String host)
Start up all processes and services for the host. |
void |
startProcess(java.lang.String host,
java.lang.String process)
Start up all process and services. |
void |
startPSC(PscID pscID)
Start up all services in psc. |
void |
stopHost(java.lang.String host)
Stop host processes/services once work is complete. |
void |
stopHostNow(java.lang.String host)
Stop host processes/services now. |
void |
stopProcess(java.lang.String hostname,
java.lang.String processName,
boolean now)
Stop process once work is complete. |
void |
stopPSC(PscID pscID)
Stop up all services in psc, waiting for work to complete. |
void |
stopPSCNow(PscID pscID)
Stop up all services in psc now. |
void |
stopService(ServiceID serviceID)
Stop service once work is complete. |
void |
stopServiceNow(ServiceID serviceID)
Stop service now. |
void |
synchronizeServer()
Synchronize running services with runtime configuration. |
Method Detail |
---|
boolean isSystemStarted() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.java.util.List getServices() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.java.util.List getHosts() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void stopService(ServiceID serviceID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.serviceID
- ID of service instance.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void stopServiceNow(ServiceID serviceID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.serviceID
- ID of service instance.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void stopProcess(java.lang.String hostname, java.lang.String processName, boolean now) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.processID
- VMControllerID
.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void shutdownServer() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void bounceServer() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
callerSessionID
- ID of the caller's current session.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.SystemState getSystemState() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void restartService(ServiceID serviceID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
serviceID
- ID of service instance.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void startHost(java.lang.String host) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
host
- Host to start
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void startProcess(java.lang.String host, java.lang.String process) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
host
- Host processes belongs to.process
- Processes to start
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void stopHost(java.lang.String host) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
host
- Name of host.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
void stopHostNow(java.lang.String host) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
host
- Name of host.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
void startPSC(PscID pscID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
pscID
- PSC to start.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
void stopPSC(PscID pscID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
pscID
- PSC to stop.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
void stopPSCNow(PscID pscID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
pscID
- PSC to stop.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
void synchronizeServer() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException, MultipleException
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.
MultipleException
java.util.Date getServerStartTime() throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void setLoggingConfiguration(Configuration config, LogConfiguration logConfig, java.util.List actions) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
LogConfiguration
on the given Configuration
. If the configuration is
operational
, then the log configuration is set on the Logmanager
running in each VM.
config
- The configuration for which to set the log configuration.logConfig
- The log configuration with which to affect the log properties.actions
- The Actions
from the ConfigurationObjectEditor
used to affect the configuration
database.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.void setLoggingConfiguration(LogConfiguration logConfig, java.lang.String hostName, java.lang.String processName) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
LogConfiguration
on the LogManager
running in the given VM.
logConfig
- The log configuration with which to affect the log properties.vmID
- The ID of the VM for which to set log configuration used to affect the configuration database.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.java.util.Collection getServiceQueueStatistics(ServiceID serviceID) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
serviceID
- ID of the service.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.WorkerPoolStats getServiceQueueStatistics(ServiceID serviceID, java.lang.String queueName) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
serviceID
- ID of the service.queueName
- Name of queue.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.ProcessStatistics getProcessStatistics(java.lang.String hostName, java.lang.String processName) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
VMControllerID
- ID of the process.
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.PscID getPscIDByName(java.lang.String hostName, java.lang.String processName, java.lang.String pscName) throws InvalidSessionException, AuthorizationException, MetaMatrixComponentException
hostName
- name of the host process for the PSCprocessName
- name of the process for the PSCpscName
- name of the PSC
ServiceNotBoundException
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
AuthorizationException
MetaMatrixComponentException
ServiceID getServiceIDByName(java.lang.String hostName, java.lang.String processName, java.lang.String serviceName) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
hostName
- name of the host to that the service is configuredprocessName
- process name of the service is configuredserviceName
- name of the service to be retrieved
ServiceID
AuthorizationException
- if caller is not authorized to perform this method.
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
MetaMatrixComponentException
- if an error occurred in communicating with a component.java.util.List getVMControllerBindings() throws InvalidSessionException, AuthorizationException, MetaMatrixComponentException
List
of VMControllerBinding
s
InvalidSessionException
- if the callerSessionID
is not valid or is expired.
AuthorizationException
MetaMatrixComponentException
java.util.List getLogEntries(java.util.Date startTime, java.util.Date endTime, java.util.List levels, java.util.List contexts, int maxRows) throws AuthorizationException, InvalidSessionException, MetaMatrixComponentException
startTime
- endTime
- If null, will ignore this criterion.levels
- List of Integerslevels
- List of Strings. If null, will ignore this criterion and return entries with any context.maxRows
-
AuthorizationException
InvalidSessionException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |