Class AbstractJobUsageRecord
java.lang.Object
org.gcube.documentstore.records.implementation.AbstractRecord
org.gcube.accounting.datamodel.BasicUsageRecord
org.gcube.accounting.datamodel.basetypes.AbstractJobUsageRecord
- All Implemented Interfaces:
Serializable,Comparable<org.gcube.documentstore.records.Record>,UsageRecord,org.gcube.documentstore.records.Record
- Direct Known Subclasses:
AggregatedJobUsageRecord,JobUsageRecord
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gcube.accounting.datamodel.UsageRecord
UsageRecord.OperationResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKEY for : callerQualifierstatic final StringKEY for : Durationstatic final StringKEY for : hostname:port of the Hosting Node receiving the service callstatic final StringKEY for : Job Namestatic final StringKEY for : Service Classstatic final StringKEY for : Service ClassFields inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
CONSUMER_ID, OPERATION_RESULT, SCOPEFields inherited from class org.gcube.documentstore.records.implementation.AbstractRecord
aggregatedFields, computation, computedFields, CREATION_TIME, ID, requiredFields, resourceProperties, validationFields inherited from interface org.gcube.documentstore.records.Record
CREATION_TIME, ID, RECORD_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()voidsetCallerQualifier(String callerQualifier) voidsetDuration(Long duration) voidvoidsetJobName(String jobName) voidsetServiceClass(String serviceClass) voidsetServiceName(String serviceName) Methods inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
getConsumerId, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScopeMethods inherited from class org.gcube.documentstore.records.implementation.AbstractRecord
cleanExtraFields, compareTo, computeField, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, isAggregated, removeResourceProperty, setAggregated, setCreationTime, setEndTime, setId, setOperationCount, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gcube.documentstore.records.Record
getComputedFields, getCreationTime, getId, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validate
-
Field Details
-
HOST
KEY for : hostname:port of the Hosting Node receiving the service call- See Also:
-
DURATION
KEY for : Duration- See Also:
-
SERVICE_CLASS
KEY for : Service Class- See Also:
-
SERVICE_NAME
KEY for : Service Class- See Also:
-
JOB_NAME
KEY for : Job Name- See Also:
-
CALLER_QUALIFIER
KEY for : callerQualifier- See Also:
-
-
Constructor Details
-
AbstractJobUsageRecord
public AbstractJobUsageRecord() -
AbstractJobUsageRecord
public AbstractJobUsageRecord(Map<String, ? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-
Method Details
-
getRecordType
- Specified by:
getRecordTypein interfaceorg.gcube.documentstore.records.Record- Overrides:
getRecordTypein classBasicUsageRecord
-
getJobName
-
setJobName
public void setJobName(String jobName) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getHost
-
setHost
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getServiceClass
-
setServiceClass
public void setServiceClass(String serviceClass) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getServiceName
-
setServiceName
public void setServiceName(String serviceName) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDuration
-
setDuration
public void setDuration(Long duration) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getCallerQualifier
-
setCallerQualifier
public void setCallerQualifier(String callerQualifier) throws org.gcube.documentstore.exception.InvalidValueException - Throws:
org.gcube.documentstore.exception.InvalidValueException
-