|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.ThreadSynchronization
org.jppf.node.AbstractMonitoredNode
org.jppf.server.node.JPPFNode
public abstract class JPPFNode
Instances of this class encapsulate execution nodes.
| Field Summary | |
|---|---|
protected AbstractClassLoaderManager |
classLoaderManager
Manages the class loaders and how they are used. |
protected NodeExecutionManagerImpl |
executionManager
The task execution manager for this node. |
protected NodeIO |
nodeIO
The object responsible for this node's I/O. |
| Fields inherited from class org.jppf.node.AbstractMonitoredNode |
|---|
executingCount, helper, listeners, notifying, serializer, socketClient, socketInitializer, uuid |
| Fields inherited from class org.jppf.utils.ThreadSynchronization |
|---|
stopped |
| Constructor Summary | |
|---|---|
JPPFNode()
Default constructor. |
|
| Method Summary | |
|---|---|
protected abstract void |
closeDataChannel()
Initialize this node's data channel. |
AbstractJPPFClassLoader |
getClassLoader()
Get the main classloader for the node. |
JPPFContainer |
getContainer(List<String> uuidPath)
Get a reference to the JPPF container associated with an application uuid. |
NodeExecutionManagerImpl |
getExecutionManager()
Get the task execution manager for this node. |
JMXServerImpl |
getJmxServer()
Get the jmx server that handles administration and monitoring functions for this node. |
LifeCycleEventHandler |
getLifeCycleEventHandler()
Get the object that handles the firing of node life cycle events and the listeners that subscribe to these events. |
JPPFNodeAdmin |
getNodeAdmin()
Get the administration and monitoring MBean for this node. |
protected abstract void |
initDataChannel()
Initialize this node's data channel. |
void |
initHelper()
Get the main classloader for the node. |
void |
perform()
Perform the main execution loop for this node. |
void |
run()
Main processing loop of this node. |
void |
setClassLoader(JPPFClassLoader cl)
Set the main classloader for the node. |
void |
setExitAction(Runnable exitAction)
Set the action executed when the node exits the main loop. |
void |
setNodeAdmin(JPPFNodeAdmin nodeAdmin)
Set the administration and monitoring MBean for this node. |
void |
shutdown(boolean restart)
Shutdown and evenetually restart the node. |
void |
stopNode(boolean closeSocket)
Stop this node and release the resources it is using. |
| Methods inherited from class org.jppf.node.AbstractMonitoredNode |
|---|
addNodeListener, decrementExecutingCount, fireNodeEvent, fireNodeEvent, getHelper, getSocketWrapper, getTaskCount, incrementExecutingCount, isNotifying, removeNodeListener, setSocketWrapper, setTaskCount |
| Methods inherited from class org.jppf.utils.ThreadSynchronization |
|---|
goToSleep, goToSleep, goToSleep, isStopped, setStopped, wakeUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NodeExecutionManagerImpl executionManager
protected NodeIO nodeIO
protected AbstractClassLoaderManager classLoaderManager
| Constructor Detail |
|---|
public JPPFNode()
| Method Detail |
|---|
public void run()
Runnable.run()
public void perform()
throws Exception
Exception - if an error was raised from the underlying socket connection or the class loader.
protected abstract void initDataChannel()
throws Exception
Exception - if an error is raised during initialization.
protected abstract void closeDataChannel()
throws Exception
Exception - if an error is raised during initialization.public AbstractJPPFClassLoader getClassLoader()
ClassLoader used for loading the classes of the framework.public void setClassLoader(JPPFClassLoader cl)
cl - the class loader to set.
public void initHelper()
throws Exception
Exception - if an error occcurs while instantiating the class loader.
public JPPFContainer getContainer(List<String> uuidPath)
throws Exception
uuidPath - the uuid path containing the key to the container.
JPPFContainer instance.
Exception - if an error occcurs while getting the container.public JPPFNodeAdmin getNodeAdmin()
JPPFNodeAdminm instance.public void setNodeAdmin(JPPFNodeAdmin nodeAdmin)
nodeAdmin - a JPPFNodeAdminm instance.public NodeExecutionManagerImpl getExecutionManager()
NodeExecutionManager instance.public void stopNode(boolean closeSocket)
stopNode in interface MonitoredNodestopNode in class AbstractMonitoredNodecloseSocket - determines whether the underlying socket should be closed.MonitoredNode.stopNode(boolean)public void shutdown(boolean restart)
restart - determines whether this node should be restarted by the node launcher.public void setExitAction(Runnable exitAction)
exitAction - the action to execute.
public JMXServerImpl getJmxServer()
throws Exception
JMXServerImpl instance.
Exception - if any error occurs.public LifeCycleEventHandler getLifeCycleEventHandler()
LifeCycleEventHandler.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||