public class ProjectScriptDiagnostic
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_HANDLER |
static int |
SHUTDOWN |
static int |
STARTUP |
static int |
TAG_CHANGE |
static int |
TIMER |
Constructor and Description |
---|
ProjectScriptDiagnostic(int type,
java.lang.String name,
java.lang.String projectName,
boolean enabled,
ScriptExecutionReport executionReport) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String key)
Get some useful information about the script, depending on its type.
|
java.util.Map<java.lang.String,java.lang.String> |
getDetails() |
java.lang.Long |
getDuration()
The duration of the last execution of this script, in ms.
|
java.lang.String |
getErrorMessage()
The last error message produced when this script was executed.
|
java.lang.Long |
getLastExecution()
The timestamp when this script last executed, in ms.
|
java.lang.String |
getName() |
java.lang.String |
getProjectName() |
int |
getType() |
boolean |
isEnabled() |
void |
put(java.lang.String key,
java.lang.String value) |
public static final int STARTUP
public static final int SHUTDOWN
public static final int TIMER
public static final int TAG_CHANGE
public static final int MESSAGE_HANDLER
public ProjectScriptDiagnostic(int type, java.lang.String name, java.lang.String projectName, boolean enabled, ScriptExecutionReport executionReport)
public int getType()
public java.lang.String getName()
public java.lang.String get(java.lang.String key)
public java.util.Map<java.lang.String,java.lang.String> getDetails()
public void put(java.lang.String key, java.lang.String value)
public java.lang.String getProjectName()
public java.lang.Long getLastExecution()
public java.lang.Long getDuration()
public java.lang.String getErrorMessage()
public boolean isEnabled()