Package com.axemble.vdoc.sdk.interfaces
Interface IAgent
- All Superinterfaces:
IElement
,IProtocolSupport
,ISecuritySupport
,Serializable
This class allows to manipulate scheduled tasks.
- Since:
- 1.0, 24/03/2009
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
All execution states. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the class associated with the agent.Gets the last execution date of the agent.int
Gets last result statusGets the date of the last failure of the agent.byte[]
Gets the last report of the agentGets the date of the last success of the agent.getName()
Gets the name of the agent.Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()Gets the name of the agent.- Returns:
- a String object.
-
getClassName
String getClassName()Gets the name of the class associated with the agent.- Returns:
- a String object.
-
getLastExecutionStatus
int getLastExecutionStatus()Gets last result status- Returns:
- the last execution status, one of
ExecutionStatus.NEVER_RUN
orExecutionStatus.RUNNING
orExecutionStatus.SUCCESS
orExecutionStatus.WARNING
orExecutionStatus.FAILURE
-
getLastExecutionDate
Date getLastExecutionDate()Gets the last execution date of the agent.- Returns:
- the last execution date.
-
getLastReport
byte[] getLastReport()Gets the last report of the agent- Returns:
- the last report as an array of bytes.
-
getLastSuccessDate
Date getLastSuccessDate()Gets the date of the last success of the agent.- Returns:
- the last success date.
-
getLastFailureDate
Date getLastFailureDate()Gets the date of the last failure of the agent.- Returns:
- the last failure date.
-