|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.JPPFDriver
public class JPPFDriver
This class serves as an initializer for the entire JPPF server. It follows the singleton pattern and provides access, accross the JVM, to the tasks execution queue.
It also holds a server for incoming client connections, a server for incoming node connections, along with a class server to handle requests to and from remote class loaders.
| Field Summary | |
|---|---|
static boolean |
JPPF_DEBUG
Flag indicating whether collection of debug information is available via JMX. |
| Constructor Summary | |
|---|---|
protected |
JPPFDriver()
Initialize this JPPFDriver. |
| Method Summary | |
|---|---|
ClassNioServer |
getClassServer()
Get the JPPF class server. |
DriverInitializer |
getInitializer()
Get this driver's initializer. |
static JPPFDriver |
getInstance()
Get the singleton instance of the JPPFDriver. |
JPPFJobManager |
getJobManager()
Get the object that manages and monitors the jobs thoughout their processing within this driver. |
NodeInformationHandler |
getNodeHandler()
Get the object that manages information about the nodes. |
NodeNioServer |
getNodeNioServer()
Get the JPPF nodes server. |
static JPPFQueue |
getQueue()
Get the queue that handles the tasks to execute. |
JPPFDriverStatsManager |
getStatsManager()
Get a reference to the object that generates the statistics events of which all related listeners are notified. |
JPPFDriverStatsUpdater |
getStatsUpdater()
Get the listener that gathers the statistics published through the management interface. |
String |
getUuid()
Get this driver's unique identifier. |
void |
initiateShutdownRestart(long shutdownDelay,
boolean restart,
long restartDelay)
Initialize this task with the specified parameters. |
boolean |
isShuttingDown()
Determines whether this server has initiated a shutdown, in which case it does not accept connections anymore. |
static void |
main(String... args)
Start the JPPF server. |
void |
run()
Initialize and start this driver. |
void |
shutdown()
Shutdown this server and all its components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean JPPF_DEBUG
| Constructor Detail |
|---|
protected JPPFDriver()
| Method Detail |
|---|
public void run()
throws Exception
Exception - if the initialization fails.public static JPPFDriver getInstance()
JPPFDriver instance.public static JPPFQueue getQueue()
public ClassNioServer getClassServer()
ClassNioServer instance.public NodeNioServer getNodeNioServer()
NodeNioServer instance.public boolean isShuttingDown()
public String getUuid()
public void initiateShutdownRestart(long shutdownDelay,
boolean restart,
long restartDelay)
shutdownDelay - delay, in milliseconds, after which the server shutdown is initiated. A value of 0 or less
means an immediate shutdown.restart - determines whether the server should restart after shutdown is complete.
If set to false, then the JVM will exit.restartDelay - delay, starting from shutdown completion, after which the server is restarted.
A value of 0 or less means the server is restarted immediately after the shutdown is complete.public void shutdown()
public JPPFDriverStatsUpdater getStatsUpdater()
JPPFStatsUpdater instance.public JPPFDriverStatsManager getStatsManager()
JPPFDriverStatsManager instance.public JPPFJobManager getJobManager()
JPPFJobManager.public DriverInitializer getInitializer()
DriverInitializer instance.public NodeInformationHandler getNodeHandler()
NodeInformationHandler instance.public static void main(String... args)
args - not used.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||