public abstract class AbstractJobUsageRecord extends BasicUsageRecord
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
DURATION |
static String |
JOB_END_TIME |
static String |
JOB_ID |
static String |
JOB_NAME |
static String |
JOB_QUALIFIER |
static String |
JOB_START_TIME |
CONSUMER_ID, OPERATION_RESULT, SCOPE| Constructor and Description |
|---|
AbstractJobUsageRecord() |
AbstractJobUsageRecord(Map<String,? extends Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateDuration() |
long |
getDuration() |
Calendar |
getJobEndTime() |
String |
getJobId() |
String |
getJobName() |
String |
getJobQualifier() |
Calendar |
getJobStartTime() |
SortedSet<String> |
getQuerableKeys() |
String |
getRecordType() |
void |
setDuration(Long duration) |
void |
setJobEndTime(Calendar jobEndTime) |
void |
setJobId(String jobId) |
void |
setJobName(String jobName) |
void |
setJobQualifier(String jobQualifier) |
void |
setJobStartTime(Calendar jobStartTime) |
getConsumerId, getContextFromToken, getOperationResult, 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 JOB_ID
public static final String JOB_NAME
public static final String JOB_QUALIFIER
public static final String JOB_START_TIME
public static final String JOB_END_TIME
public static final String DURATION
public AbstractJobUsageRecord()
public AbstractJobUsageRecord(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 SortedSet<String> getQuerableKeys() throws Exception
getQuerableKeys in interface org.gcube.documentstore.records.RecordgetQuerableKeys in class BasicUsageRecordExceptionpublic String getJobId()
public void setJobId(String jobId) throws org.gcube.documentstore.exception.InvalidValueException
jobId - Job Idorg.gcube.documentstore.exception.InvalidValueException - if failspublic String getJobQualifier()
public void setJobQualifier(String jobQualifier) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic String getJobName()
public void setJobName(String jobName) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getJobStartTime()
public void setJobStartTime(Calendar jobStartTime) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic Calendar getJobEndTime()
public void setJobEndTime(Calendar jobEndTime) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionprotected long calculateDuration()
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic long getDuration()
throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic void setDuration(Long duration) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2017. All Rights Reserved.