|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceMonitor
The ServiceMonitor
is a facility that keeps registered services alive. It is bound to a ConfigurableCacheFactory
whilst alive and should allow for ConfigurableCacheFactory
s to be changed and reflected upon restart of the monitor.
Method Summary | |
---|---|
boolean |
isMonitoring() Returns true iff the ServiceMonitor is monitoring a number of services. |
void |
registerServices(java.util.Map mapServices) Adds a set of Service s to be monitored providing life support. |
void |
setConfigurableCacheFactory(ConfigurableCacheFactory ccf) Set the ConfigurableCacheFactory a ServiceMonitor can operate with. |
void |
stopMonitoring() Stop monitoring all registered services. |
void |
unregisterServices(java.util.Set setServices) Removes the supplied set of Service s from monitoring. |
Methods inherited from interface com.oracle.common.base.Disposable |
---|
dispose |
Method Detail |
---|
void registerServices(java.util.Map mapServices)
Service
s to be monitored providing life support. If any of the services are not running they are started either via the configured ConfigurableCacheFactory
iff provided or the provided Service
.mapServices
- a map of Service
s by service namevoid unregisterServices(java.util.Set setServices)
Service
s from monitoring. Note that the services are not being stopped; they are just removed from the list of Service
s that are being monitored.setServices
- the set of Service
s to be removed from monitoringvoid stopMonitoring()
Service
s that are being monitored.boolean isMonitoring()
void setConfigurableCacheFactory(ConfigurableCacheFactory ccf)
ConfigurableCacheFactory
a ServiceMonitor
can operate with. Setting the ConfigurableCacheFactory
should be performed prior to registering services or requires a stopMonitoring()
and registerServices(Map)
call.ccf
- the ConfigurableCacheFactory
used to start the service
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |