Package org.netxms.client.server
Class ServerJob
- java.lang.Object
-
- org.netxms.client.server.ServerJob
-
public class ServerJob extends Object
Represents server-side job
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetFailureMessage()longgetId()StringgetJobType()longgetNodeId()intgetProgress()intgetStatus()longgetUserId()
-
-
-
Field Detail
-
PENDING
public static final int PENDING
- See Also:
- Constant Field Values
-
ACTIVE
public static final int ACTIVE
- See Also:
- Constant Field Values
-
ON_HOLD
public static final int ON_HOLD
- See Also:
- Constant Field Values
-
COMPLETED
public static final int COMPLETED
- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
- See Also:
- Constant Field Values
-
CANCELLED
public static final int CANCELLED
- See Also:
- Constant Field Values
-
CANCEL_PENDING
public static final int CANCEL_PENDING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServerJob
public ServerJob(org.netxms.base.NXCPMessage msg, long baseVarId)Create job object from NXCP message- Parameters:
msg- NXCP messagebaseVarId- Base variable ID for job's data
-
ServerJob
public ServerJob(org.netxms.base.NXCPMessage msg)
Create job object from notification message- Parameters:
msg- NXCP message
-
-
Method Detail
-
getId
public long getId()
- Returns:
- the id
-
getNodeId
public long getNodeId()
- Returns:
- the nodeId
-
getJobType
public String getJobType()
- Returns:
- the jobType
-
getDescription
public String getDescription()
- Returns:
- the description
-
getStatus
public int getStatus()
- Returns:
- the status
-
getProgress
public int getProgress()
- Returns:
- the progress
-
getFailureMessage
public String getFailureMessage()
- Returns:
- the failureMessage
-
getUserId
public long getUserId()
- Returns:
- the userId
-
-