com.cafesoft.cams.service
Interface CamsServiceMonitor

All Superinterfaces:
Destroyable

public interface CamsServiceMonitor
extends Destroyable

Interface for a CamsServiceMonitor. This object is used to monitor CamsServices that are available on Cams Policy Servers. In otherwords, this monitor object is used to monitor the CamsPolicyServer and not clients.

Since:
12/11/03

Field Summary
static int MAX_NUMBER_OF_MONITORS
          The maximum number of monitors the CamsServiceMonitor will monitor at a given time.
 
Method Summary
 void dump(Logger logger)
          Dump the state of all registered CamsService's being monitored.
 CamsServiceState getState(String serviceName)
          Get the state of the Service with the given serviceName.
 void setState(String serviceName, CamsServiceState state)
          Set the state for Service with the given serviceName to that of the state.
 
Methods inherited from interface com.cafesoft.core.util.Destroyable
destroy
 

Field Detail

MAX_NUMBER_OF_MONITORS

public static final int MAX_NUMBER_OF_MONITORS
The maximum number of monitors the CamsServiceMonitor will monitor at a given time.

See Also:
Constant Field Values
Method Detail

getState

public CamsServiceState getState(String serviceName)
Get the state of the Service with the given serviceName.

Parameters:
serviceName - the name of the Service to get the state for.
Returns:
the CamsServiceState of the Service.

setState

public void setState(String serviceName,
                     CamsServiceState state)
Set the state for Service with the given serviceName to that of the state.

Parameters:
serviceName - the name of the Service to set the state for.
state - the new CamsServiceState.

dump

public void dump(Logger logger)
Dump the state of all registered CamsService's being monitored.

Parameters:
logger - the logger where all information regarding service's state is dumped to.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.