public class RMListenerProxy extends RMGroupEventListener
RMInitialState
state of the
remote resource manager.
You must init the proxy by calling the init(String, Credentials)
method
after having created itModifier and Type | Field and Description |
---|---|
protected AtomicLong |
counter |
protected Credentials |
credentials |
protected JMXClientHelper |
jmxClient |
protected org.apache.log4j.Logger |
logger |
static long |
MONITORING_INTERFACE_TIMEOUT |
protected JMXConnector |
nodeConnector |
protected String |
nodeConnectorUrl |
protected RMAuthentication |
rmAuth |
protected RMInitialState |
rmInitialState |
protected RMEventType |
RMstate |
protected ResourceManager |
target |
Constructor and Description |
---|
RMListenerProxy() |
Modifier and Type | Method and Description |
---|---|
org.objectweb.proactive.core.util.wrapper.BooleanWrapper |
disconnect() |
String |
getNodeMBeanHistory(String nodeJmxUrl,
String objectName,
List<String> attrs,
String range) |
Object |
getNodeMBeanInfo(String nodeJmxUrl,
String objectName,
List<String> attrs)
Retrieves attributes of the specified mbean.
|
Object |
getNodeMBeansHistory(String nodeJmxUrl,
String objectNames,
List<String> attrs,
String range) |
Object |
getNodeMBeansInfo(String nodeJmxUrl,
String objectNames,
List<String> attrs)
Retrieves attributes of the specified mbeans.
|
RMStateDelta |
getRMStateDelta(long filter) |
RMStateFull |
getRMStateFull() |
boolean |
init(String url,
CredData credData) |
boolean |
init(String url,
Credentials credentials) |
void |
nodeEvent(RMNodeEvent event)
new node available in RM.
|
void |
nodeSourceEvent(RMNodeSourceEvent event)
new node source available in RM.
|
void |
rmEvent(RMEvent event)
RM is shutting down
|
notify
protected org.apache.log4j.Logger logger
public static final long MONITORING_INTERFACE_TIMEOUT
protected RMAuthentication rmAuth
protected RMInitialState rmInitialState
protected RMEventType RMstate
protected Credentials credentials
protected ResourceManager target
protected JMXClientHelper jmxClient
protected JMXConnector nodeConnector
protected String nodeConnectorUrl
protected AtomicLong counter
public boolean init(String url, CredData credData) throws RMException, KeyException, LoginException
RMException
KeyException
LoginException
public boolean init(String url, Credentials credentials) throws RMException, KeyException, LoginException
RMException
KeyException
LoginException
public org.objectweb.proactive.core.util.wrapper.BooleanWrapper disconnect()
ResourceManager.disconnect()
public void rmEvent(RMEvent event)
RMEventListener
event
- object representing the event.RMEventListener.rmEvent(org.ow2.proactive.resourcemanager.common.event.RMEvent)
public void nodeSourceEvent(RMNodeSourceEvent event)
RMEventListener
event
- node source event containing new NodeSource
properties.RMEventListener.nodeSourceEvent(org.ow2.proactive.resourcemanager.common.event.RMNodeSourceEvent)
public void nodeEvent(RMNodeEvent event)
RMEventListener
event
- node event containing new RMNode
properties.RMEventListener.nodeEvent(org.ow2.proactive.resourcemanager.common.event.RMNodeEvent)
public RMStateDelta getRMStateDelta(long filter)
public RMStateFull getRMStateFull()
public Object getNodeMBeanInfo(String nodeJmxUrl, String objectName, List<String> attrs) throws IOException, InstanceNotFoundException, IntrospectionException, MalformedObjectNameException, ReflectionException, NullPointerException
nodeJmxUrl
- mbean server urlobjectName
- name of mbeanattrs
- set of mbean attributesIOException
InstanceNotFoundException
IntrospectionException
MalformedObjectNameException
ReflectionException
NullPointerException
public String getNodeMBeanHistory(String nodeJmxUrl, String objectName, List<String> attrs, String range) throws IOException, MalformedObjectNameException, IntrospectionException, InstanceNotFoundException, ReflectionException, MBeanException
public Object getNodeMBeansInfo(String nodeJmxUrl, String objectNames, List<String> attrs) throws IOException, InstanceNotFoundException, IntrospectionException, MalformedObjectNameException, ReflectionException, NullPointerException
objectNames
- mbean names (@see ObjectName format)nodeJmxUrl
- mbean server urlattrs
- set of mbean attributesIOException
InstanceNotFoundException
IntrospectionException
MalformedObjectNameException
ReflectionException
NullPointerException
public Object getNodeMBeansHistory(String nodeJmxUrl, String objectNames, List<String> attrs, String range) throws IOException, MalformedObjectNameException, IntrospectionException, InstanceNotFoundException, ReflectionException, MBeanException