Class ClusterSystemStatisticsEventHandler
- java.lang.Object
-
- org.apache.karaf.cellar.core.CellarSupport
-
- org.apache.unomi.services.impl.cluster.ClusterSystemStatisticsEventHandler
-
- All Implemented Interfaces:
org.apache.karaf.cellar.core.event.EventHandler<ClusterSystemStatisticsEvent>
,org.apache.karaf.cellar.core.Handler<ClusterSystemStatisticsEvent>
public class ClusterSystemStatisticsEventHandler extends org.apache.karaf.cellar.core.CellarSupport implements org.apache.karaf.cellar.core.event.EventHandler<ClusterSystemStatisticsEvent>
A Karaf Cellar event handler to process incoming events that contain system statistics updates from nodes.
-
-
Constructor Summary
Constructors Constructor Description ClusterSystemStatisticsEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
org.apache.karaf.cellar.core.control.Switch
getSwitch()
Get the cluster configuration event handler switch.Class<ClusterSystemStatisticsEvent>
getType()
void
handle(ClusterSystemStatisticsEvent event)
void
init()
void
setClusterServiceImpl(ClusterServiceImpl clusterServiceImpl)
-
-
-
Field Detail
-
SWITCH_ID
public static final String SWITCH_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setClusterServiceImpl
public void setClusterServiceImpl(ClusterServiceImpl clusterServiceImpl)
-
init
public void init()
-
destroy
public void destroy()
-
handle
public void handle(ClusterSystemStatisticsEvent event)
- Specified by:
handle
in interfaceorg.apache.karaf.cellar.core.event.EventHandler<ClusterSystemStatisticsEvent>
-
getType
public Class<ClusterSystemStatisticsEvent> getType()
- Specified by:
getType
in interfaceorg.apache.karaf.cellar.core.Handler<ClusterSystemStatisticsEvent>
-
getSwitch
public org.apache.karaf.cellar.core.control.Switch getSwitch()
Get the cluster configuration event handler switch.- Specified by:
getSwitch
in interfaceorg.apache.karaf.cellar.core.Handler<ClusterSystemStatisticsEvent>
- Returns:
- the cluster configuration event handler switch.
-
-