Package org.jppf.node.provisioning
Interface JPPFNodeProvisioningMBean
- All Superinterfaces:
NotificationBroadcaster,NotificationEmitter,Serializable
@MBeanNotif(description="notification that a slave node has started or stopped",
userDataType=JPPFProvisioningInfo.class)
public interface JPPFNodeProvisioningMBean
extends Serializable, NotificationEmitter
Provides an interface for "master" nodes, giving them the ability to start, stop and monitor "slave" nodes on the same machine.
- Since:
- 4.1
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of slave nodes started by this MBean.voidprovisionSlaveNodes(int nbNodes) Start or stop the required number of slaves to reach the specified number.voidprovisionSlaveNodes(int nbNodes, boolean interruptIfRunning) Start or stop the required number of slaves to reach the specified number.voidprovisionSlaveNodes(int nbNodes, boolean interruptIfRunning, TypedProperties configOverrides) Start or stop the required number of slaves to reach the specified number, using the specified config overrides.voidprovisionSlaveNodes(int nbNodes, TypedProperties configOverrides) Start or stop the required number of slaves to reach the specified number, using the specified config overrides.Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
MBEAN_NAME
The object name of this MBean.- See Also:
-
SLAVE_STARTED_NOTIFICATION_TYPE
The type constant for notifications that a slave node has started.- Since:
- 6.1
- See Also:
-
SLAVE_STOPPED_NOTIFICATION_TYPE
The type constant for notifications that a slave node has stopped.- Since:
- 6.1
- See Also:
-
-
Method Details
-
getNbSlaves
int getNbSlaves()Get the number of slave nodes started by this MBean.- Returns:
- the number of slave nodes as an integer value.
-
provisionSlaveNodes
void provisionSlaveNodes(int nbNodes) Start or stop the required number of slaves to reach the specified number. This is equivalent to callingprovisionSlaveNodes(nbNodes, null).- Parameters:
nbNodes- the number of slave nodes to reach.
-
provisionSlaveNodes
void provisionSlaveNodes(int nbNodes, boolean interruptIfRunning) Start or stop the required number of slaves to reach the specified number. This is equivalent to callingprovisionSlaveNodes(nbNodes, null).- Parameters:
nbNodes- the number of slave nodes to reach.interruptIfRunning- if true then nodes can only be stopped once they are idle.
-
provisionSlaveNodes
Start or stop the required number of slaves to reach the specified number, using the specified config overrides.If
configOverridesis null, then previous overrides are applied, and already running slave nodes do not need to be stopped.- Parameters:
nbNodes- the number of slave nodes to reach.configOverrides- the configuration overrides to apply.
-
provisionSlaveNodes
Start or stop the required number of slaves to reach the specified number, using the specified config overrides.If
configOverridesis null, then previous overrides are applied, and already running slave nodes do not need to be stopped.- Parameters:
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.
-