|
||||||||||
| 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)
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<ServiceRegistryBinding> |
getServices()
Return serviceID's for all services running in mm system. |
SystemState |
getSystemState()
Return the running state of the system. |
java.util.List<ProcessRegistryBinding> |
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 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)
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. |
| 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
RuntimeStateAdminAPI
stopPSCNow in interface RuntimeStateAdminAPIpscID - 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.
MultipleExceptionRuntimeStateAdminAPI.stopPSC(com.metamatrix.platform.admin.api.runtime.PscID)
public void stopPSC(PscID pscID)
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException,
MultipleException
RuntimeStateAdminAPI
stopPSC in interface RuntimeStateAdminAPIpscID - 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.
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
RuntimeStateAdminAPI
getServiceIDByName in interface RuntimeStateAdminAPIhostName - 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.com.metamatrix.platform.admin.apiimpl.RuntimeStateAdminAPI#getServiceIDByName(java.lang.String,
java.lang.String, java.lang.String)
public PscID getPscIDByName(java.lang.String hostName,
java.lang.String processName,
java.lang.String pscName)
throws ResourceNotBoundException,
AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
RuntimeStateAdminAPI
getPscIDByName in interface RuntimeStateAdminAPIhostName - name of the host process for the PSCprocessName - name of the process for the PSCpscName - name of the PSC
AuthorizationException
InvalidSessionException - if the callerSessionID is not valid or is expired.
MetaMatrixComponentException
ResourceNotBoundExceptioncom.metamatrix.platform.admin.apiimpl.RuntimeStateAdminAPI#getPscIDByName(
java.lang.String, java.lang.String, java.lang.String)
public java.util.List<ProcessRegistryBinding> getVMControllerBindings()
throws InvalidSessionException,
AuthorizationException,
MetaMatrixComponentException
RuntimeStateAdminAPI
getVMControllerBindings in interface RuntimeStateAdminAPIList of VMControllerBindings
InvalidSessionException - if the callerSessionID is not valid or is expired.
AuthorizationException
MetaMatrixComponentExceptioncom.metamatrix.platform.admin.apiimpl.RuntimeStateAdminAPI#getVMControllerBindings()
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
RuntimeStateAdminAPI
getLogEntries in interface RuntimeStateAdminAPIendTime - If null, will ignore this criterion.levels - List of Integers
AuthorizationException
InvalidSessionException
MetaMatrixComponentExceptionRuntimeStateAdminAPI.getLogEntries(java.util.Date, java.util.Date, java.util.List, java.util.List, int)
public SystemState getSystemState()
throws AuthorizationException,
InvalidSessionException,
MetaMatrixComponentException
RuntimeStateAdminAPI
getSystemState 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||