Class AbstractServiceUsageRecord
java.lang.Object
org.gcube.documentstore.records.implementation.AbstractRecord
org.gcube.accounting.datamodel.BasicUsageRecord
org.gcube.accounting.datamodel.basetypes.AbstractServiceUsageRecord
- All Implemented Interfaces:
Serializable,Comparable<org.gcube.documentstore.records.Record>,UsageRecord,org.gcube.documentstore.records.Record
- Direct Known Subclasses:
AggregatedServiceUsageRecord,ServiceUsageRecord
- 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 : Called Methodstatic final StringKEY for : hostname:port of the Hosting Node made the service callstatic final StringKEY for : callerQualifierstatic final StringKEY for : Durationstatic final StringKEY for : hostname:port of the Hosting Node receiving the service callstatic final StringKEY for : Service Classstatic final StringKEY for : Service Namestatic final StringFields 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()voidsetCalledMethod(String calledMethod) voidsetCallerHost(String callerHost) voidsetCallerQualifier(String callerQualifier) voidsetDuration(Long duration) voidvoidsetServiceClass(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
-
CALLER_HOST
KEY for : hostname:port of the Hosting Node made the service call- See Also:
-
HOST
KEY for : hostname:port of the Hosting Node receiving the service call- See Also:
-
SERVICE_CLASS
KEY for : Service Class- See Also:
-
SERVICE_NAME
KEY for : Service Name- See Also:
-
CALLED_METHOD
KEY for : Called Method- See Also:
-
DURATION
KEY for : Duration- See Also:
-
CALLER_QUALIFIER
KEY for : callerQualifier- See Also:
-
UNKNOWN
- See Also:
-
-
Constructor Details
-
AbstractServiceUsageRecord
public AbstractServiceUsageRecord() -
AbstractServiceUsageRecord
public AbstractServiceUsageRecord(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
-
getCallerHost
-
setCallerHost
public void setCallerHost(String callerHost) 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
-
getCalledMethod
-
setCalledMethod
public void setCalledMethod(String calledMethod) 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
-