Package org.jppf.server
Class DriverInitializer
java.lang.Object
org.jppf.server.DriverInitializer
Handles various initializations for the driver.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringConstant for JPPF automatic connection discovery -
Constructor Summary
ConstructorsConstructorDescriptionDriverInitializer(JPPFDriver driver, org.jppf.utils.TypedProperties config) Instantiate this initializer with the specified driver. -
Method Summary
Modifier and TypeMethodDescriptionGet the soft cache of classes downloaded form the clients r from this driver's classpath.org.jppf.comm.discovery.JPPFConnectionInformationRead configuration for the host name and ports used to connect to this driver.Set<org.jppf.discovery.DriverConnectionInfo>Get the discovered peers connection information.org.jppf.management.JMXServergetJmxServer(boolean ssl) Get the jmx server used to manage and monitor this driver.Get the object that handles listeners to node connection events.Get the thread that performs the peer servers discovery.Get the object that collects debug information.voidInitialize and start the discovery service.booleanDetermine whether broadcasting is active.voidStop the discovery service if it is running.
-
Field Details
-
VALUE_JPPF_DISCOVERY
Constant for JPPF automatic connection discovery- See Also:
-
-
Constructor Details
-
DriverInitializer
Instantiate this initializer with the specified driver.- Parameters:
driver- the driver to initialize.config- the driver's configuration.
-
-
Method Details
-
getConnectionInformation
public org.jppf.comm.discovery.JPPFConnectionInformation getConnectionInformation()Read configuration for the host name and ports used to connect to this driver.- Returns:
- a
DriverConnectionInformationinstance.
-
initBroadcaster
public void initBroadcaster()Initialize and start the discovery service. -
stopBroadcaster
public void stopBroadcaster()Stop the discovery service if it is running. -
isBroadcasting
public boolean isBroadcasting()Determine whether broadcasting is active.- Returns:
trueif broadcast is active,falseotherwise.- Since:
- 4.2
-
getPeerDiscoveryThread
Get the thread that performs the peer servers discovery.- Returns:
- a
PeerDiscoveryThreadinstance.
-
getJmxServer
public org.jppf.management.JMXServer getJmxServer(boolean ssl) Get the jmx server used to manage and monitor this driver.- Parameters:
ssl- specifies whether to get the ssl-based connector server.- Returns:
- a
JMXServerImplinstance.
-
getServerDebug
Get the object that collects debug information.- Returns:
- a
ServerDebuginstance.
-
getNodeConnectionEventHandler
Get the object that handles listeners to node connection events.- Returns:
- a
NodeConnectionEventHandlerinstance.
-
getClassCache
Get the soft cache of classes downloaded form the clients r from this driver's classpath.- Returns:
- an instance of
ClassCache.
-
getDiscoveredPeers
Get the discovered peers connection information.- Returns:
- a set of
DriverConnectionInfoinstances.
-
getPeerConnectionPoolHandler
- Returns:
- the object that handles the pools of connections to remote peer drivers.
-