Package org.netxms.client.server
Class ServerJob
java.lang.Object
org.netxms.client.server.ServerJob
Represents server-side job
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServerJob
(NXCPMessage msg) Create job object from notification messageServerJob
(NXCPMessage msg, long baseVarId) Create job object from NXCP message -
Method Summary
-
Field Details
-
PENDING
public static final int PENDING- See Also:
-
ACTIVE
public static final int ACTIVE- See Also:
-
ON_HOLD
public static final int ON_HOLD- See Also:
-
COMPLETED
public static final int COMPLETED- See Also:
-
FAILED
public static final int FAILED- See Also:
-
CANCELLED
public static final int CANCELLED- See Also:
-
CANCEL_PENDING
public static final int CANCEL_PENDING- See Also:
-
-
Constructor Details
-
ServerJob
Create job object from NXCP message- Parameters:
msg
- NXCP messagebaseVarId
- Base variable ID for job's data
-
ServerJob
Create job object from notification message- Parameters:
msg
- NXCP message
-
-
Method Details
-
getId
public long getId()- Returns:
- the id
-
getNodeId
public long getNodeId()- Returns:
- the nodeId
-
getJobType
- Returns:
- the jobType
-
getDescription
- Returns:
- the description
-
getStatus
public int getStatus()- Returns:
- the status
-
getProgress
public int getProgress()- Returns:
- the progress
-
getFailureMessage
- Returns:
- the failureMessage
-
getUserId
public int getUserId()- Returns:
- the userId
-