public abstract class AbstractTaskUsageRecord extends BasicUsageRecord
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
HOST |
static String |
INPUT_PARAMETERS |
static String |
REF_HOSTING_NODE_ID |
static String |
REF_JOB_ID |
static String |
TASK_END_TIME |
static String |
TASK_ID |
static String |
TASK_START_TIME |
static String |
WALL_DURATION |
CONSUMER_ID, OPERATION_RESULT, SCOPE| Constructor and Description |
|---|
AbstractTaskUsageRecord() |
AbstractTaskUsageRecord(Map<String,? extends Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateWallDuration() |
String |
getHost() |
Map<String,Serializable> |
getInputParameters() |
String |
getRefHostingNodeId() |
String |
getRefJobId() |
Calendar |
getTaskEndTime() |
String |
getTaskId() |
Calendar |
getTaskStartTime() |
long |
getWallDuration() |
protected String |
giveMeRecordType() |
void |
setHost(String host) |
void |
setInputParameters(HashMap<String,Serializable> inputParameters) |
void |
setRefHostingNodeId(String refHostingNodeId) |
void |
setRefJobId(String refJobId) |
void |
setTaskEndTime(Calendar endTime) |
void |
setTaskId(String taskId) |
void |
setTaskStartTime(Calendar startTime) |
getConsumerId, getOperationResult, getScope, init, setConsumerId, setOperationResult, setScopecleanExtraFields, compareTo, computeField, getAllFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, setCreationTime, setEndTime, setId, setOperationCount, setRecordType, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreationTime, getId, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTopublic static final String TASK_ID
public static final String REF_JOB_ID
public static final String HOST
public static final String REF_HOSTING_NODE_ID
public static final String TASK_START_TIME
public static final String TASK_END_TIME
public static final String WALL_DURATION
public static final String INPUT_PARAMETERS
public AbstractTaskUsageRecord()
public AbstractTaskUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionprotected String giveMeRecordType()
giveMeRecordType in class org.gcube.documentstore.records.implementation.AbstractRecordpublic String getTaskId()
public void setTaskId(String taskId) throws org.gcube.documentstore.exception.InvalidValueException
taskId - Task Idorg.gcube.documentstore.exception.InvalidValueException - if failspublic String getRefJobId()
public void setRefJobId(String refJobId) throws org.gcube.documentstore.exception.InvalidValueException
refJobId - Referenced Job Idorg.gcube.documentstore.exception.InvalidValueException - if failspublic String getHost()
public void setHost(String host) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic String getRefHostingNodeId()
public void setRefHostingNodeId(String refHostingNodeId) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getTaskStartTime()
public void setTaskStartTime(Calendar startTime) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getTaskEndTime()
public void setTaskEndTime(Calendar endTime) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionprotected long calculateWallDuration()
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic long getWallDuration()
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Map<String,Serializable> getInputParameters()
public void setInputParameters(HashMap<String,Serializable> inputParameters) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2016. All Rights Reserved.