Class JobClass
java.lang.Object
QueueNet.JobClass
This class implements the description of a job class.
- Author:
- Francesco Radaelli, Stefano Omini
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Gets the id of this class.getName()Gets the name of this class.intdoubleintgetType()booleanbooleanvoidsetCachePairClass(JobClass jobClass) voidsetCacheReferece(String cachePairClassName, boolean isCacheHit) voidsetPriority(int priority) voidsetReferenceNodeName(String referenceNodeName) voidsetSoftDeadline(double softDeadline) voidsetType(int type)
-
Field Details
-
CLOSED_CLASS
public static final int CLOSED_CLASS- See Also:
-
OPEN_CLASS
public static final int OPEN_CLASS- See Also:
-
-
Constructor Details
-
JobClass
Creates a new instance of JobClass- Parameters:
Name- Symbolic name of the job class.
-
JobClass
-
-
Method Details
-
getId
public int getId()Gets the id of this class.- Returns:
- Value of property Id.
-
getName
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getType
public int getType() -
setType
public void setType(int type) -
getReferenceNodeName
-
setReferenceNodeName
-
setCacheReferece
-
isHasCachePair
public boolean isHasCachePair() -
isCacheHit
public boolean isCacheHit() -
getCachePairClassName
-
getCachePairClass
-
setCachePairClass
-
setSoftDeadline
public void setSoftDeadline(double softDeadline) -
getSoftDeadline
public double getSoftDeadline()
-