|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.admin.apiimpl.RuntimeStateAdminAPIImpl
@RolesAllowed(value="Admin.ReadOnlyAdmin") public class RuntimeStateAdminAPIImpl
| Method Summary | |
|---|---|
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. |
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 |
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 |
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 |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RuntimeStateAdminAPIImpl getInstance(ClusteredRegistryState registry,
HostManagement hostManagement)
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
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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
@RolesAllowed(value="Admin.ProductAdmin")
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
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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.
@RolesAllowed(value="Admin.ProductAdmin")
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 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 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 | |||||||||