|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.server.protocol.JPPFJobSLA
public class JPPFJobSLA
This class represents the Service Level Agreement Between a JPPF job and a server. It determines the state, conditions and order in which a job will be executed.
| Constructor Summary | |
|---|---|
JPPFJobSLA()
Default constructor. |
|
JPPFJobSLA(ExecutionPolicy policy)
Initialize this job SLA with the specified execution policy. |
|
JPPFJobSLA(ExecutionPolicy policy,
int priority)
Initialize this job SLA with the specified execution policy and priority. |
|
JPPFJobSLA(ExecutionPolicy policy,
int priority,
int maxNodes,
boolean suspended)
Initialize this job SLA with the specified execution policy, priority, max number of nodes and suspended indicator. |
|
| Method Summary | |
|---|---|
JPPFJobSLA |
copy()
Create a copy of this job SLA. |
ExecutionPolicy |
getExecutionPolicy()
Get the tasks execution policy. |
JPPFSchedule |
getJobExpirationSchedule()
Get the job expiration schedule configuration. |
JPPFSchedule |
getJobSchedule()
Get the job schedule. |
int |
getMaxNodes()
Get the maximum number of nodes this job can run on. |
int |
getPriority()
Get the priority of this job. |
boolean |
isBroadcastJob()
Determine whether the job is a broadcast job. |
boolean |
isSuspended()
Determine whether this job is initially suspended. |
void |
setBroadcastJob(boolean broadcastJob)
Specify whether the job is a broadcast job. |
void |
setExecutionPolicy(ExecutionPolicy executionPolicy)
Set the tasks execution policy. |
void |
setJobExpirationSchedule(JPPFSchedule jobExpirationSchedule)
Set the job expiration schedule configuration. |
void |
setJobSchedule(JPPFSchedule jobSchedule)
Set the job schedule. |
void |
setMaxNodes(int maxNodes)
Set the maximum number of nodes this job can run on. |
void |
setPriority(int priority)
Set the priority of this job. |
void |
setSuspended(boolean suspended)
Specify whether this job is initially suspended. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFJobSLA()
public JPPFJobSLA(ExecutionPolicy policy)
policy - the tasks execution policy.
public JPPFJobSLA(ExecutionPolicy policy,
int priority)
policy - the tasks execution policy.priority - the priority of this job.
public JPPFJobSLA(ExecutionPolicy policy,
int priority,
int maxNodes,
boolean suspended)
policy - the tasks execution policy.priority - the priority of this job.maxNodes - the maximum number of nodes this job can run on. A value <= 0 means no limit on the number of nodes.suspended - determines whether this job is initially suspended.| Method Detail |
|---|
public ExecutionPolicy getExecutionPolicy()
ExecutionPolicy instance.public void setExecutionPolicy(ExecutionPolicy executionPolicy)
executionPolicy - an ExecutionPolicy instance.public int getPriority()
public void setPriority(int priority)
priority - the priority as an int.public int getMaxNodes()
public void setMaxNodes(int maxNodes)
maxNodes - the number of nodes as an int value. A value <= 0 means no limit on the number of nodes.public boolean isSuspended()
public void setSuspended(boolean suspended)
suspended - true if the job is suspended, false otherwise.public JPPFSchedule getJobSchedule()
JPPFSchedule instance.public void setJobSchedule(JPPFSchedule jobSchedule)
jobSchedule - a JPPFSchedule instance.public JPPFSchedule getJobExpirationSchedule()
JPPFSchedule instance.public void setJobExpirationSchedule(JPPFSchedule jobExpirationSchedule)
jobExpirationSchedule - a JPPFSchedule instance.public boolean isBroadcastJob()
public void setBroadcastJob(boolean broadcastJob)
broadcastJob - true for a broadcast job, false otherwise.public JPPFJobSLA copy()
JPPFJobSLA instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||