Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net
Interface ServiceMonitor

All Superinterfaces:
com.oracle.common.base.Disposable
All Known Implementing Classes:
SimpleServiceMonitor

public interface ServiceMonitor
extends com.oracle.common.base.Disposable

The ServiceMonitor is a facility that keeps registered services alive. It is bound to a ConfigurableCacheFactory whilst alive and should allow for ConfigurableCacheFactorys to be changed and reflected upon restart of the monitor.

Since:
Coherence 12.1.2
Author:
cf 2011.05.24, hr 2012.06.28

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 Services 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 Services from monitoring.

 

Methods inherited from interface com.oracle.common.base.Disposable
dispose

 

Method Detail

registerServices

void registerServices(java.util.Map mapServices)
Adds a set of Services 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.
Parameters:
mapServices - a map of Services by service name

unregisterServices

void unregisterServices(java.util.Set setServices)
Removes the supplied set of Services from monitoring. Note that the services are not being stopped; they are just removed from the list of Services that are being monitored.
Parameters:
setServices - the set of Services to be removed from monitoring

stopMonitoring

void stopMonitoring()
Stop monitoring all registered services. Note that the services are not being stopped; they are just removed from the list of Services that are being monitored.

isMonitoring

boolean isMonitoring()
Returns true iff the ServiceMonitor is monitoring a number of services.
Returns:
returns true iff the ServiceMonitor is monitoring a number of services

setConfigurableCacheFactory

void setConfigurableCacheFactory(ConfigurableCacheFactory ccf)
Set the ConfigurableCacheFactory a ServiceMonitor can operate with. Setting the ConfigurableCacheFactory should be performed prior to registering services or requires a stopMonitoring() and registerServices(Map) call.
Parameters:
ccf - the ConfigurableCacheFactory used to start the service

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.