public abstract class AbstractTaskUsageRecord extends BasicUsageRecord
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
HOST |
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() |
String |
getRecordType() |
String |
getRefHostingNodeId() |
String |
getRefJobId() |
Calendar |
getTaskEndTime() |
String |
getTaskId() |
Calendar |
getTaskStartTime() |
long |
getWallDuration() |
void |
setHost(String host) |
void |
setRefHostingNodeId(String refHostingNodeId) |
void |
setRefJobId(String refJobId) |
void |
setTaskEndTime(Calendar endTime) |
void |
setTaskId(String taskId) |
void |
setTaskStartTime(Calendar startTime) |
void |
setWallDuration(Long duration) |
getConsumerId, getContextFromToken, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScopecleanExtraFields, compareTo, computeField, getAggregate, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, removeResourceProperty, setAggregate, setCreationTime, setEndTime, setId, setOperationCount, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComputedFields, getCreationTime, getId, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, 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 AbstractTaskUsageRecord()
public AbstractTaskUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic String getRecordType()
getRecordType in interface org.gcube.documentstore.records.RecordgetRecordType in class BasicUsageRecordpublic 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 void setWallDuration(Long duration) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2017. All Rights Reserved.