org.jppf.ui.monitoring.job
Class JobData

java.lang.Object
  extended by org.jppf.ui.monitoring.job.JobData

public class JobData
extends Object

Instances of this class hold the information related to each node in the job data tree table.

Author:
Laurent Cohen

Constructor Summary
protected JobData(JobDataType type)
          Initialize this job data with the specified type.
  JobData(JobInformation jobInformation)
          Initialize this job data as a holding information about a job submitted to a driver.
  JobData(JobInformation jobInformation, JPPFManagementInfo nodeInformation)
          Initialize this job data as a holding information about a sub-job dispatched to a node.
  JobData(JPPFClientConnection clientConnection)
          Initialize this job data as a driver related object.
 
Method Summary
 void changeNotificationListener(NotificationListener listener)
          Set the MBean notification listener.
 JPPFClientConnection getClientConnection()
          Get a reference to the driver connection.
 JMXDriverConnectionWrapper getJmxWrapper()
          Get the wrapper holding the connection to the JMX server on a driver.
 JobInformation getJobInformation()
          Get the information on the job or sub-job in a JPPF driver or node.
 JPPFManagementInfo getNodeInformation()
          Get the information on the JPPF node in which part of a job is executing.
 NotificationListener getNotificationListener()
          Get the MBean notification listener.
 DriverJobManagementMBean getProxy()
          Get a reference to the procy to the job management mbean.
 JobDataType getType()
          Get the type of this job data object.
 void setJmxWrapper(JMXDriverConnectionWrapper jmxWrapper)
          Set the wrapper holding the connection to the JMX server on a driver.
 String toString()
          Get a string representaiton of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobData

protected JobData(JobDataType type)
Initialize this job data with the specified type.

Parameters:
type - - the type of this job data object as a JobDataType enum value.

JobData

public JobData(JPPFClientConnection clientConnection)
Initialize this job data as a driver related object.

Parameters:
clientConnection - - a reference to the driver connection.

JobData

public JobData(JobInformation jobInformation)
Initialize this job data as a holding information about a job submitted to a driver.

Parameters:
jobInformation - - information on the job in a JPPF driver.

JobData

public JobData(JobInformation jobInformation,
               JPPFManagementInfo nodeInformation)
Initialize this job data as a holding information about a sub-job dispatched to a node.

Parameters:
jobInformation - - information on the job in a JPPF driver.
nodeInformation - - information on the JPPF node in which part of a job is executing.
Method Detail

getType

public JobDataType getType()
Get the type of this job data object.

Returns:
a JobDataType enum value.

getJmxWrapper

public JMXDriverConnectionWrapper getJmxWrapper()
Get the wrapper holding the connection to the JMX server on a driver.

Returns:
a JMXDriverConnectionWrapper instance.

setJmxWrapper

public void setJmxWrapper(JMXDriverConnectionWrapper jmxWrapper)
Set the wrapper holding the connection to the JMX server on a driver.

Parameters:
jmxWrapper - a JMXDriverConnectionWrapper instance.

getJobInformation

public JobInformation getJobInformation()
Get the information on the job or sub-job in a JPPF driver or node.

Returns:
a JobInformation instance,

getNodeInformation

public JPPFManagementInfo getNodeInformation()
Get the information on the JPPF node in which part of a job is executing.

Returns:
a NodeManagementInfo instance.

getProxy

public DriverJobManagementMBean getProxy()
Get a reference to the procy to the job management mbean.

Returns:
a DriverJobManagementMBean instance.

toString

public String toString()
Get a string representaiton of this object.

Overrides:
toString in class Object
Returns:
a string representing this object.
See Also:
Object.toString()

getNotificationListener

public NotificationListener getNotificationListener()
Get the MBean notification listener.

Returns:
a NotificationListener instance.

changeNotificationListener

public void changeNotificationListener(NotificationListener listener)
                                throws Exception
Set the MBean notification listener.

Parameters:
listener - a NotificationListener instance.
Throws:
Exception - if any error occurs.

getClientConnection

public JPPFClientConnection getClientConnection()
Get a reference to the driver connection.

Returns:
a JPPFClientConnection instance.


Copyright © 2005-2010 JPPF Team.