Class ManagedJobDescriptor
- java.lang.Object
-
- org.neotropic.kuwaiba.core.services.threading.ManagedJobDescriptor
-
public class ManagedJobDescriptor extends Object
A class containing metadata information about a job, such as its creation/end- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATE_CREATED
The job is stopped.static int
STATE_END_ERROR
The job ended with error.static int
STATE_END_KILLED
The job stopped killed by the user.static int
STATE_END_SUCCESS
The job ended successfully.static int
STATE_RUNNING
The job is in progress.static int
STATE_SCHEDULED
The job has been scheduled to start later.
-
Constructor Summary
Constructors Constructor Description ManagedJobDescriptor(UserProfileLight user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getCreationTime()
String
getDescription()
long
getEndTime()
String
getId()
float
getProgress()
int
getState()
UserProfileLight
getUser()
int
hashCode()
void
setCreationTime(long creationTime)
void
setDescription(String description)
void
setEndTime(long endTime)
void
setProgress(float progress)
void
setState(int state)
void
setUser(UserProfileLight user)
String
toString()
-
-
-
Field Detail
-
STATE_CREATED
public static final int STATE_CREATED
The job is stopped.- See Also:
- Constant Field Values
-
STATE_RUNNING
public static final int STATE_RUNNING
The job is in progress.- See Also:
- Constant Field Values
-
STATE_SCHEDULED
public static final int STATE_SCHEDULED
The job has been scheduled to start later.- See Also:
- Constant Field Values
-
STATE_END_SUCCESS
public static final int STATE_END_SUCCESS
The job ended successfully.- See Also:
- Constant Field Values
-
STATE_END_ERROR
public static final int STATE_END_ERROR
The job ended with error.- See Also:
- Constant Field Values
-
STATE_END_KILLED
public static final int STATE_END_KILLED
The job stopped killed by the user.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ManagedJobDescriptor
public ManagedJobDescriptor(UserProfileLight user)
-
-
Method Detail
-
getId
public String getId()
-
getCreationTime
public long getCreationTime()
-
setCreationTime
public void setCreationTime(long creationTime)
-
getEndTime
public long getEndTime()
-
setEndTime
public void setEndTime(long endTime)
-
getUser
public UserProfileLight getUser()
-
setUser
public void setUser(UserProfileLight user)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getState
public int getState()
-
setState
public void setState(int state)
-
getProgress
public float getProgress()
-
setProgress
public void setProgress(float progress)
-
-