Class JPPFNodeProvisioningMBeanForwarder
java.lang.Object
org.jppf.management.forwarding.AbstractMBeanForwarder
org.jppf.management.forwarding.generated.JPPFNodeProvisioningMBeanForwarder
Forwarding proxy for the
JPPFNodeProvisioningMBean MBean.
MBean description: interface for provisioning, managing and monitoring slave nodes.
This Mbean emits notification of type Notification:
- notification that a slave node has started or stopped.
- user data type: JPPFProvisioningInfo.
- Since:
- 6.2
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize this proxy. -
Method Summary
Modifier and TypeMethodDescriptiongetNbSlaves(NodeSelector selector) Get the value of theNbSlavesattribute for all selected nodes (the number of slave nodes started by this MBean).provisionSlaveNodes(NodeSelector selector, int slaves) Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).provisionSlaveNodes(NodeSelector selector, int slaves, boolean interruptIfRunning) Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).provisionSlaveNodes(NodeSelector selector, int slaves, boolean interrupt, TypedProperties configgOverrides) Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).provisionSlaveNodes(NodeSelector selector, int slaves, TypedProperties configOverrides) Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).Methods inherited from class org.jppf.management.forwarding.AbstractMBeanForwarder
addNotificationListener, addNotificationListener, getAttribute, invoke, invoke, removeAllNotificationListeners, removeNotificationListener, setAttribute
-
Constructor Details
-
JPPFNodeProvisioningMBeanForwarder
Initialize this proxy.- Parameters:
jmx- aJMXDriverConnectionWrapperinstance.- Throws:
Exception- if any error occurs..
-
-
Method Details
-
getNbSlaves
Get the value of theNbSlavesattribute for all selected nodes (the number of slave nodes started by this MBean).- Parameters:
selector- aNodeSelectorinstance.- Returns:
- a mapping of node uuids to
Integerinstances. - Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
public ResultsMap<String,Void> provisionSlaveNodes(NodeSelector selector, int slaves, boolean interrupt, TypedProperties configgOverrides) throws Exception Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).- Parameters:
selector- aNodeSelectorinstance.slaves- aInteger.interrupt- aBoolean.configgOverrides- aTypedPropertiesinstance.- Returns:
- a mapping of node uuids to objects that wrap either
nullor an exeption. - Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
public ResultsMap<String,Void> provisionSlaveNodes(NodeSelector selector, int slaves, TypedProperties configOverrides) throws Exception Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).- Parameters:
selector- aNodeSelectorinstance.slaves- aInteger.configOverrides- aTypedPropertiesinstance.- Returns:
- a mapping of node uuids to objects that wrap either
nullor an exeption. - Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
public ResultsMap<String,Void> provisionSlaveNodes(NodeSelector selector, int slaves, boolean interruptIfRunning) throws Exception Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).- Parameters:
selector- aNodeSelectorinstance.slaves- aInteger.interruptIfRunning- aBoolean.- Returns:
- a mapping of node uuids to objects that wrap either
nullor an exeption. - Throws:
Exception- if any error occurs.
-
provisionSlaveNodes
public ResultsMap<String,Void> provisionSlaveNodes(NodeSelector selector, int slaves) throws Exception Invoke theprovisionSlaveNodesoperation for all selected nodes (provision the specified number of slave nodes, starting new ones or stopping existing ones as needed).- Parameters:
selector- aNodeSelectorinstance.slaves- aInteger.- Returns:
- a mapping of node uuids to objects that wrap either
nullor an exeption. - Throws:
Exception- if any error occurs.
-