|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.admin.apiimpl.SubSystemAdminAPIImpl
com.metamatrix.platform.admin.apiimpl.RuntimeStateAdminAPIImpl
public class RuntimeStateAdminAPIImpl
| Field Summary | |
|---|---|
protected java.util.Set |
listeners
|
| Method Summary | |
|---|---|
void |
bounceServer()
Shutdown server and restart. |
java.util.List<java.lang.String> |
getHosts()
Return all hosts running in mm system. |
static RuntimeStateAdminAPIImpl |
getInstance(ClusteredRegistryState registry,
HostManagement hostManagement)
|
java.util.List |
getLogEntries(java.util.Date startTime,
java.util.Date endTime,
java.util.List levels,
java.util.List contexts,
int maxRows)
|
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)
|
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)
|
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<ServiceRegistryBinding> |
getServices()
Return serviceID's for all services running in mm system. |
SystemState |
getSystemState()
|
java.util.List<ProcessRegistryBinding> |
getVMControllerBindings()
|
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 Host and all processes/services for host. |
void |
startProcess(java.lang.String host,
java.lang.String process)
Start Process and all services for process. |
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)
|
void |
stopPSCNow(PscID pscID)
|
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. |
| Methods inherited from class com.metamatrix.platform.admin.apiimpl.SubSystemAdminAPIImpl |
|---|
getSessionID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set listeners
| Method Detail |
|---|
public static RuntimeStateAdminAPIImpl getInstance(ClusteredRegistryState registry,
HostManagement hostManagement)
throws MetaMatrixComponentException
MetaMatrixComponentException
public boolean isSystemStarted()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
isSystemStarted in interface RuntimeStateAdminAPIAuthorizationException - 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.
public java.util.List<ServiceRegistryBinding> getServices()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getServices in interface RuntimeStateAdminAPIAuthorizationException - 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.
public java.util.List<java.lang.String> getHosts()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getHosts in interface RuntimeStateAdminAPIAuthorizationException - 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.
public void stopService(ServiceID serviceID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
stopService in interface RuntimeStateAdminAPIserviceID - 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.
public void stopServiceNow(ServiceID serviceID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
stopServiceNow in interface RuntimeStateAdminAPIserviceID - 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.
public void stopHost(java.lang.String host)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
stopHost in interface RuntimeStateAdminAPIhost - 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
public void stopHostNow(java.lang.String host)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
stopHostNow in interface RuntimeStateAdminAPIhost - 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
public void stopProcess(java.lang.String hostName,
java.lang.String processName,
boolean now)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
stopProcess in interface RuntimeStateAdminAPIprocessID - 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.
public void shutdownServer()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
shutdownServer in interface RuntimeStateAdminAPIAuthorizationException - 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.
public void bounceServer()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
bounceServer in interface RuntimeStateAdminAPIAuthorizationException - 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.
public void restartService(ServiceID serviceID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
restartService in interface RuntimeStateAdminAPIserviceID - 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.
public void startHost(java.lang.String host)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
startHost in interface RuntimeStateAdminAPIhost - Name of 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.
public void startProcess(java.lang.String host,
java.lang.String process)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
startProcess in interface RuntimeStateAdminAPIhost - Host processes belongs to.process - Name of process 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.
public void startPSC(PscID pscID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
startPSC in interface RuntimeStateAdminAPIpscID - 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
public void stopPSCNow(PscID pscID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
stopPSCNow in interface RuntimeStateAdminAPIAuthorizationException
InvalidSessionException
MetaMatrixComponentException
MultipleExceptionRuntimeStateAdminAPI.stopPSC(com.metamatrix.platform.admin.api.runtime.PscID)
public void stopPSC(PscID pscID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
stopPSC in interface RuntimeStateAdminAPIAuthorizationException
InvalidSessionException
MetaMatrixComponentException
MultipleExceptionRuntimeStateAdminAPI.stopPSCNow(com.metamatrix.platform.admin.api.runtime.PscID)
public void synchronizeServer()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
synchronizeServer in interface RuntimeStateAdminAPIAuthorizationException - 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.
a - MultipleException if an error occurs
MultipleException
public java.util.Date getServerStartTime()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getServerStartTime in interface RuntimeStateAdminAPIAuthorizationException - 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.
public 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.
setLoggingConfiguration in interface RuntimeStateAdminAPIconfig - 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.
public 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. If
null>/code> is passed in for vmID, set log config on the
App Server VM - the MetaMatrix registry does not have a handle for that VM.
- Specified by:
setLoggingConfiguration in interface RuntimeStateAdminAPI
- Parameters:
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. If null, set the
App Server VM's log config.
- Throws:
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.
public java.util.Collection getServiceQueueStatistics(ServiceID serviceID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getServiceQueueStatistics in interface RuntimeStateAdminAPIserviceID - 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.
public WorkerPoolStats getServiceQueueStatistics(ServiceID serviceID,
java.lang.String queueName)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getServiceQueueStatistics in interface RuntimeStateAdminAPIserviceID - 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.
public ProcessStatistics getProcessStatistics(java.lang.String hostName,
java.lang.String processName)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getProcessStatistics in interface RuntimeStateAdminAPIVMControllerID - 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.
public ServiceID getServiceIDByName(java.lang.String hostName,
java.lang.String processName,
java.lang.String serviceName)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getServiceIDByName in interface RuntimeStateAdminAPIAuthorizationException
InvalidSessionException
MetaMatrixComponentExceptionRuntimeStateAdminAPI
public PscID getPscIDByName(java.lang.String hostName,
java.lang.String processName,
java.lang.String pscName)
throws ResourceNotBoundException,
AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getPscIDByName in interface RuntimeStateAdminAPIResourceNotBoundException
AuthorizationException
InvalidSessionException
MetaMatrixComponentExceptionRuntimeStateAdminAPI
public java.util.List<ProcessRegistryBinding> getVMControllerBindings()
throws InvalidSessionException,
AuthorizationException,
MetaMatrixComponentException
getVMControllerBindings in interface RuntimeStateAdminAPIInvalidSessionException
AuthorizationException
MetaMatrixComponentExceptionRuntimeStateAdminAPI
public 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
getLogEntries in interface RuntimeStateAdminAPIAuthorizationException
InvalidSessionException
MetaMatrixComponentExceptionRuntimeStateAdminAPI.getLogEntries(java.util.Date, java.util.Date, java.util.List, java.util.List, int)
public SystemState getSystemState()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
getSystemState in interface RuntimeStateAdminAPIAuthorizationException
InvalidSessionException
MetaMatrixComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||