public class RMMonitoringImpl extends Object implements RMMonitoring, RMEventListener, org.objectweb.proactive.InitActive, org.objectweb.proactive.RunActive
RMCore
to all its monitors.RMEventListener
Modifier and Type | Field and Description |
---|---|
static RMStatistics |
rmStatistics
Resource Manager's statistics
|
Constructor and Description |
---|
RMMonitoringImpl()
ProActive empty constructor
|
RMMonitoringImpl(RMCore rmcore)
Creates the RMMonitoring active object.
|
Modifier and Type | Method and Description |
---|---|
RMInitialState |
addRMEventListener(RMEventListener stub,
RMEventType... events)
Register a new Resource manager listener.
|
org.apache.log4j.Logger |
getLogger() |
int |
getNeededNodes() |
RMInitialState |
getState()
Gets the current snapshot of the resource manager state providing
detailed nodes and node source information.
|
void |
initActivity(org.objectweb.proactive.Body body) |
boolean |
isAlive()
Deprecated.
|
void |
nodeEvent(RMNodeEvent event)
new node available in RM.
|
void |
nodeEventOnlyForStatistic(RMNodeEvent event) |
void |
nodeSourceEvent(RMNodeSourceEvent event)
new node source available in RM.
|
void |
queueEvent(RMEvent event) |
void |
removeRMEventListener()
Removes a listener from RMMonitoring.
|
boolean |
removeRMEventListener(org.objectweb.proactive.core.UniqueID id) |
void |
rmEvent(RMEvent event)
RM is shutting down
|
void |
runActivity(org.objectweb.proactive.Body body)
Method controls the execution of every request.
|
void |
setNeededNodes(int neededNodes) |
org.objectweb.proactive.core.util.wrapper.BooleanWrapper |
shutdown()
Stop and remove monitoring active object
|
public static final RMStatistics rmStatistics
public RMMonitoringImpl()
public RMMonitoringImpl(RMCore rmcore)
rmcore
- Stub of the RMCore active object.public void initActivity(org.objectweb.proactive.Body body)
initActivity
in interface org.objectweb.proactive.InitActive
InitActive.initActivity(org.objectweb.proactive.Body)
public void runActivity(org.objectweb.proactive.Body body)
runActivity
in interface org.objectweb.proactive.RunActive
public RMInitialState addRMEventListener(RMEventListener stub, RMEventType... events)
addRMEventListener
in interface RMMonitoring
stub
- a listener object which implements RMEventListener
interface.events
- list of wanted events that must be received.public void removeRMEventListener()
removeRMEventListener
in interface RMMonitoring
public boolean removeRMEventListener(org.objectweb.proactive.core.UniqueID id)
@Deprecated public boolean isAlive()
RMMonitoring
isAlive
in interface RMMonitoring
public void queueEvent(RMEvent event)
public void nodeEventOnlyForStatistic(RMNodeEvent event)
public void nodeEvent(RMNodeEvent event)
RMEventListener
nodeEvent
in interface RMEventListener
event
- node event containing new RMNode
properties.RMEventListener.nodeEvent(org.ow2.proactive.resourcemanager.common.event.RMNodeEvent)
public void setNeededNodes(int neededNodes)
public int getNeededNodes()
getNeededNodes
in interface RMMonitoring
public void nodeSourceEvent(RMNodeSourceEvent event)
RMEventListener
nodeSourceEvent
in interface RMEventListener
event
- node source event containing new NodeSource
properties.RMEventListener.nodeSourceEvent(org.ow2.proactive.resourcemanager.common.event.RMNodeSourceEvent)
public void rmEvent(RMEvent event)
RMEventListener
rmEvent
in interface RMEventListener
event
- object representing the event.RMEventListener.rmEvent(org.ow2.proactive.resourcemanager.common.event.RMEvent)
public org.objectweb.proactive.core.util.wrapper.BooleanWrapper shutdown()
public org.apache.log4j.Logger getLogger()
public RMInitialState getState()
ResourceManager
.getState()getState
in interface RMMonitoring