Package org.jppf.client.concurrent
Interface JobConfiguration
public interface JobConfiguration
This interface defines the properties that can be provided to a task submitted by a
JPPFExecutorService..
These properties include:
- the job's
SLA - the job's
metadata - the job's
persistence manager
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionaddJobListener(JobListener listener) Add a listener to the list of job listeners.Get all the job listeners added to this job configuration.Get all the class loaders added to this job configuration.org.jppf.node.protocol.JobClientSLAGet the service level agreement between the job and the client.org.jppf.node.protocol.DataProviderGet the job's data provider.org.jppf.node.protocol.JobMetadataGet the user-defined metadata associated with this job.<T> JobPersistence<T>Get the persistence manager that enables saving and restoring the state of this job.org.jppf.node.protocol.JobSLAgetSLA()Get the service level agreement between the job and the server.removeJobListener(JobListener listener) Remove a listener from the list of job listeners.setClientSLA(org.jppf.node.protocol.JobClientSLA jobClientSLA) Get the service level agreement between the job and the server.setDataProvider(org.jppf.node.protocol.DataProvider dataProvider) Set the job's data provider.<T> JobConfigurationsetPersistenceManager(JobPersistence<T> persistenceManager) Set the persistence manager that enables saving and restoring the state of this job.setSLA(org.jppf.node.protocol.JobSLA jobSLA) Get the service level agreement between the job and the server.
-
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
Get the service level agreement between the job and the server.- Parameters:
jobSLA- an instance ofJPPFJobSLA.- 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
Get the service level agreement between the job and the server.- Parameters:
jobClientSLA- an instance ofJPPFJobSLA.- 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
JobMetadatainstance.
-
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
JobPersistenceinstance.
-
setPersistenceManager
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- aJobPersistenceinstance.- Returns:
- this job configuration, for method chaining.
-
getDataProvider
org.jppf.node.protocol.DataProvider getDataProvider()Get the job's data provider.- Returns:
- a
DataProviderinstance.
-
setDataProvider
Set the job's data provider.- Parameters:
dataProvider- aDataProviderinstance.- Returns:
- this job configuration, for method chaining.
-
addJobListener
Add a listener to the list of job listeners.- Parameters:
listener- aJobListenerinstance.- Returns:
- this job configuration, for method chaining.
-
removeJobListener
Remove a listener from the list of job listeners.- Parameters:
listener- aJobListenerinstance.- 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
JobListenerinstances.
-
getClassLoaders
List<ClassLoader> getClassLoaders()Get all the class loaders added to this job configuration.- Returns:
- a list of
ClassLoaderinstances.
-