Interface JobConfiguration


public interface JobConfiguration
This interface defines the properties that can be provided to a task submitted by a JPPFExecutorService.. These properties include:
Author:
Laurent Cohen
  • Method Details

    • getSLA

      org.jppf.node.protocol.JobSLA getSLA()
      Get the service level agreement between the job and the server.
      Returns:
      an instance of JobSLA.
    • setSLA

      JobConfiguration setSLA(org.jppf.node.protocol.JobSLA jobSLA)
      Get the service level agreement between the job and the server.
      Parameters:
      jobSLA - an instance of JPPFJobSLA.
      Returns:
      this job configuration, for method chaining.
    • getClientSLA

      org.jppf.node.protocol.JobClientSLA getClientSLA()
      Get the service level agreement between the job and the client.
      Returns:
      an instance of JobClientSLA.
    • setClientSLA

      JobConfiguration setClientSLA(org.jppf.node.protocol.JobClientSLA jobClientSLA)
      Get the service level agreement between the job and the server.
      Parameters:
      jobClientSLA - an instance of JPPFJobSLA.
      Returns:
      this job configuration, for method chaining.
    • getMetadata

      org.jppf.node.protocol.JobMetadata getMetadata()
      Get the user-defined metadata associated with this job.
      Returns:
      a JobMetadata instance.
    • getPersistenceManager

      <T> JobPersistence<T> getPersistenceManager()
      Get the persistence manager that enables saving and restoring the state of this job.
      Type Parameters:
      T - the type of the keys used by the persistence manager.
      Returns:
      a JobPersistence instance.
    • setPersistenceManager

      <T> JobConfiguration setPersistenceManager(JobPersistence<T> persistenceManager)
      Set the persistence manager that enables saving and restoring the state of this job.
      Type Parameters:
      T - the type of the keys used by the persistence manager.
      Parameters:
      persistenceManager - a JobPersistence instance.
      Returns:
      this job configuration, for method chaining.
    • getDataProvider

      org.jppf.node.protocol.DataProvider getDataProvider()
      Get the job's data provider.
      Returns:
      a DataProvider instance.
    • setDataProvider

      JobConfiguration setDataProvider(org.jppf.node.protocol.DataProvider dataProvider)
      Set the job's data provider.
      Parameters:
      dataProvider - a DataProvider instance.
      Returns:
      this job configuration, for method chaining.
    • addJobListener

      JobConfiguration addJobListener(JobListener listener)
      Add a listener to the list of job listeners.
      Parameters:
      listener - a JobListener instance.
      Returns:
      this job configuration, for method chaining.
    • removeJobListener

      JobConfiguration removeJobListener(JobListener listener)
      Remove a listener from the list of job listeners.
      Parameters:
      listener - a JobListener instance.
      Returns:
      this job configuration, for method chaining.
    • getAllJobListeners

      List<JobListener> getAllJobListeners()
      Get all the job listeners added to this job configuration.
      Returns:
      a list of JobListener instances.
    • getClassLoaders

      List<ClassLoader> getClassLoaders()
      Get all the class loaders added to this job configuration.
      Returns:
      a list of ClassLoader instances.