@PublicAPI
public interface RMMonitoring
RMEventListener
Modifier and Type | Method and Description |
---|---|
RMInitialState |
addRMEventListener(RMEventListener listener,
RMEventType... events)
Register a new Resource manager listener.
|
RMInitialState |
getState()
Gets the current snapshot of the resource manager state providing
detailed nodes and node source information.
|
boolean |
isAlive()
Deprecated.
|
void |
removeRMEventListener()
Removes a listener from RMMonitoring.
|
@Deprecated boolean isAlive()
RMInitialState addRMEventListener(RMEventListener listener, RMEventType... events)
listener
- a listener object which implements RMEventListener
interface.events
- list of wanted events that must be received.void removeRMEventListener() throws RMException
RMException
RMInitialState getState()
ResourceManager
.getState()