Package org.jppf.management.forwarding
Interface JPPFNodeForwardingMBean
- All Superinterfaces:
ForwardingNotficationEmitter,NotificationBroadcaster,NotificationEmitter,Serializable
@MBeanNotif(description="notifications emitted by this MBean wrap actual notifications received from the nodes, then are forwarded to the JMX notification listeners whose node selector matches the emitting nodes",
notifClass=JPPFNodeForwardingNotification.class)
public interface JPPFNodeForwardingMBean
extends Serializable, NotificationEmitter, ForwardingNotficationEmitter
Deprecated.
MBean interface for forwarding node management requests and monitoring notfications via the driver.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Name of the driver's admin MBean. -
Method Summary
Modifier and TypeMethodDescriptioncancelJob(NodeSelector selector, String jobId, Boolean requeue) Deprecated.Cancel the job with the specified id in the specified nodes.forwardGetAttribute(NodeSelector selector, String name, String attribute) Deprecated.Get the value of an attribute of the specified MBean for each specified node.forwardInvoke(NodeSelector selector, String name, String methodName) Deprecated.Convenience method to invoke an MBean method that has no parameter.forwardInvoke(NodeSelector selector, String name, String methodName, Object[] params, String[] signature) Deprecated.Invoke a method on the specified MBean of the selected nodes attached to the driver.forwardSetAttribute(NodeSelector selector, String name, String attribute, Object value) Deprecated.Set the value of an attribute of the specified MBean on the specified nodes attached to the driver.gc(NodeSelector selector) Deprecated.InvokeSystem.gc()on the specified nodes.getDelegationModel(NodeSelector selector) Deprecated.Get the current class loader delegation model for the specified nodes.getNbSlaves(NodeSelector selector) Deprecated.Get the number of provisioned slave nodes for the selected nodes.healthSnapshot(NodeSelector selector) Deprecated.Get the JVM health snapshot for the specified nodes.heapDump(NodeSelector selector) Deprecated.Trigger a heap dump on the specified nodes.provisionSlaveNodes(NodeSelector selector, int nbNodes) Deprecated.Start or stop the required number of slaves to reach the specified number on the selected nodes.provisionSlaveNodes(NodeSelector selector, int nbNodes, boolean interruptIfRunning) Deprecated.Start or stop the required number of slaves to reach the specified number on the selected nodes.provisionSlaveNodes(NodeSelector selector, int nbNodes, boolean interruptIfRunning, TypedProperties configOverrides) Deprecated.Start or stop the required number of slaves to reach the specified number, using the specified config overrides, on the selected nodes.provisionSlaveNodes(NodeSelector selector, int nbNodes, TypedProperties configOverrides) Deprecated.Start or stop the required number of slaves to reach the specified number, using the specified config overrides, on the selected nodes.resetTaskCounter(NodeSelector selector) Deprecated.Reset the specified nodes' executed tasks counter to zero.restart(NodeSelector selector) Deprecated.Restart the specified nodes.restart(NodeSelector selector, Boolean interruptIfRunning) Deprecated.Restart the specified nodes.setDelegationModel(NodeSelector selector, DelegationModel model) Deprecated.Set the current class loader delegation model for the specified nodes.setTaskCounter(NodeSelector selector, Integer n) Deprecated.Reset the specified nodes' executed tasks counter to the specified value.shutdown(NodeSelector selector) Deprecated.Shutdown the specified nodes.shutdown(NodeSelector selector, Boolean interruptIfRunning) Deprecated.Shutdown the specified nodes.state(NodeSelector selector) Deprecated.Get the latest state information from the node.systemInformation(NodeSelector selector) Deprecated.Get the system information for the specified nodes.threadDump(NodeSelector selector) Deprecated.Get a JVM thread dump for the specified nodes.updateConfiguration(NodeSelector selector, Map<Object, Object> configOverrides, Boolean restart) Deprecated.Update the configuration properties of the specified nodes.updateConfiguration(NodeSelector selector, Map<Object, Object> configOverrides, Boolean restart, Boolean interruptIfRunning) Deprecated.Update the configuration properties of the specified nodes.updateThreadPoolSize(NodeSelector selector, Integer size) Deprecated.Set the size of the specified nodes' thread pool.updateThreadsPriority(NodeSelector selector, Integer newPriority) Deprecated.Update the priority of all execution threads for the specified nodes.Methods inherited from interface org.jppf.management.forwarding.ForwardingNotficationEmitter
registerForwardingNotificationListener, unregisterForwardingNotificationListenerMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
MBEAN_NAME
Deprecated.Name of the driver's admin MBean.- See Also:
-
-
Method Details
-
forwardInvoke
Map<String,Object> forwardInvoke(NodeSelector selector, String name, String methodName, Object[] params, String[] signature) throws Exception Deprecated.Invoke a method on the specified MBean of the selected nodes attached to the driver.- Parameters:
selector- a filter on the nodes attached tot he driver, determines the nodes to which this method applies.name- the name of the MBean.methodName- the name of the method to invoke.params- the method parameter values.signature- the types of the method parameters.- Returns:
- a mapping of node uuids to the result of invoking the MBean method on the corresponding node. Each result may be an exception.
Additionally, each result may benull, in particular if the invoked method has avoidreturn type. - Throws:
Exception- if the invocation failed.
-
forwardInvoke
Map<String,Object> forwardInvoke(NodeSelector selector, String name, String methodName) throws Exception Deprecated.Convenience method to invoke an MBean method that has no parameter.
This is equivalent to callingforwardInvoke(selector, name, methodName, (Object[]) null, (String[]) null).- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.name- the name of the node MBean to invoke.methodName- the name of the method to invoke.- Returns:
- a mapping of node uuids to the result of invoking the MBean method on the corresponding node. Each result may be an exception.
Additionally, each result may benull, in particular if the invoked method has avoidreturn type. - Throws:
Exception- if the invocation failed.
-
forwardGetAttribute
Map<String,Object> forwardGetAttribute(NodeSelector selector, String name, String attribute) throws Exception Deprecated.Get the value of an attribute of the specified MBean for each specified node.- Parameters:
selector- a filter on the nodes attached tot he driver, determines the nodes to which this method applies.name- the name of the MBean to invoke for each node.attribute- the name of the MBean attribute to read.- Returns:
- a mapping of node uuids to the result of getting the MBean attribute on the corresponding node. Each result may be an exception.
- Throws:
Exception- if the invocation failed.
-
forwardSetAttribute
Map<String,Object> forwardSetAttribute(NodeSelector selector, String name, String attribute, Object value) throws Exception Deprecated.Set the value of an attribute of the specified MBean on the specified nodes attached to the driver.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.name- the name of the MBean to invoke for each node.attribute- the name of the MBean attribute to set.value- the value to set on the attribute.- Returns:
- a mapping of node uuids to an eventual exception resulting from setting the MBean attribute on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if the invocation failed.
-
state
Deprecated.Get the latest state information from the node.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to the result of invoking the MBean method on the corresponding node.
Each result may be either a
JPPFNodeStateobject, or an exception if the invocation failed for the corresponding node. - Throws:
Exception- if any error occurs.
-
updateThreadPoolSize
Deprecated.Set the size of the specified nodes' thread pool.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.size- the size as an int.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
updateThreadsPriority
Map<String,Object> updateThreadsPriority(NodeSelector selector, Integer newPriority) throws Exception Deprecated.Update the priority of all execution threads for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.newPriority- the new priority to set.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if an error is raised when invoking the node mbean.
-
restart
Deprecated.Restart the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
restart
Deprecated.Restart the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.interruptIfRunning- whether to restart immediately or wait until each node is idle.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
shutdown
Deprecated.Shutdown the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
shutdown
Deprecated.Shutdown the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.interruptIfRunning- whether to shutdown immediately or wait until each node is idle.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
resetTaskCounter
Deprecated.Reset the specified nodes' executed tasks counter to zero.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
setTaskCounter
Deprecated.Reset the specified nodes' executed tasks counter to the specified value.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.n- the number to set the task counter to.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
updateConfiguration
Map<String,Object> updateConfiguration(NodeSelector selector, Map<Object, Object> configOverrides, Boolean restart, Boolean interruptIfRunning) throws ExceptionDeprecated.Update the configuration properties of the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.configOverrides- the set of properties to update.restart- specifies whether the node should be restarted after updating the properties.interruptIfRunning- whentrue, then restart the node even if it is executing tasks, whenfalse, then only shutdown the node when it is no longer executing. This parameter only applies when therestartparameter istrue.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.- Since:
- 5.2
-
updateConfiguration
Map<String,Object> updateConfiguration(NodeSelector selector, Map<Object, Object> configOverrides, Boolean restart) throws ExceptionDeprecated.Update the configuration properties of the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.configOverrides- the set of properties to update.restart- specifies whether the node should be restarted after updating the properties.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
cancelJob
Deprecated.Cancel the job with the specified id in the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.jobId- the id of the job to cancel.requeue- true if the job should be requeued on the server side, false otherwise.- Returns:
- a mapping of node uuids to an eventual exception resulting invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
getDelegationModel
Deprecated.Get the current class loader delegation model for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to the result of invoking the MBean method on the corresponding node.
Each result may be either a
DelegationModelenum value, or an exception if the invocation failed for the corresponding node. - Throws:
Exception- if any error occurs.- See Also:
-
AbstractJPPFClassLoader.getDelegationModel()
-
setDelegationModel
Map<String,Object> setDelegationModel(NodeSelector selector, DelegationModel model) throws Exception Deprecated.Set the current class loader delegation model for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.model- either eitherPARENT_FIRSTorURL_FIRST. If any other value is specified then this method has no effect.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.- See Also:
-
AbstractJPPFClassLoader.setDelegationModel(org.jppf.classloader.DelegationModel)
-
systemInformation
Deprecated.Get the system information for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
healthSnapshot
Deprecated.Get the JVM health snapshot for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
gc
Deprecated.InvokeSystem.gc()on the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
heapDump
Deprecated.Trigger a heap dump on the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
threadDump
Deprecated.Get a JVM thread dump for the specified nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
getNbSlaves
Deprecated.Get the number of provisioned slave nodes for the selected nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.- Returns:
- a mapping of node uuids to either an
intcorresponding tot he number of slaves provisioned by the node, or an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised. - Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
Deprecated.Start or stop the required number of slaves to reach the specified number on the selected nodes. This is equivalent to callingprovisionSlaveNodes(nbNodes, null).- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.nbNodes- the number of slave nodes to reach.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
Map<String,Object> provisionSlaveNodes(NodeSelector selector, int nbNodes, boolean interruptIfRunning) throws Exception Deprecated.Start or stop the required number of slaves to reach the specified number on the selected nodes.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.nbNodes- the number of slave nodes to reach.interruptIfRunning- if true then nodes can only be stopped once they are idle.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
Map<String,Object> provisionSlaveNodes(NodeSelector selector, int nbNodes, TypedProperties configOverrides) throws Exception Deprecated.Start or stop the required number of slaves to reach the specified number, using the specified config overrides, on the selected nodes.If
configOverridesis null, then previous overrides are applied, and already running slave nodes do not need to be stopped.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.nbNodes- the number of slave nodes to reach.configOverrides- the configuration overrides to apply.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
Map<String,Object> provisionSlaveNodes(NodeSelector selector, int nbNodes, boolean interruptIfRunning, TypedProperties configOverrides) throws Exception Deprecated.Start or stop the required number of slaves to reach the specified number, using the specified config overrides, on the selected nodes.If
configOverridesis null, then previous overrides are applied, and already running slave nodes do not need to be stopped.- Parameters:
selector- a filter on the nodes attached to the driver, determines the nodes to which this method applies.nbNodes- the number of slave nodes to reach.interruptIfRunning- if true then nodes can only be stopped once they are idle.configOverrides- the configuration overrides to apply.- Returns:
- a mapping of node uuids to an eventual exception resulting from invoking this method on the corresponding node. This map may be empty if no exception was raised.
- Throws:
Exception- if any error occurs.
-
NodeForwardingMBeaninsead.