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
public abstract class AbstractServiceUsageRecord extends BasicUsageRecord
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.accounting.datamodel.UsageRecord
UsageRecord.OperationResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringCALLED_METHODKEY for : Called Methodstatic StringCALLER_HOSTKEY for : hostname:port of the Hosting Node made the service callstatic StringCALLER_QUALIFIERKEY for : callerQualifierstatic StringDURATIONKEY for : Durationstatic StringHOSTKEY for : hostname:port of the Hosting Node receiving the service callstatic StringSERVICE_CLASSKEY for : Service Classstatic StringSERVICE_NAMEKEY for : Service Namestatic StringUNKNOWN-
Fields inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
CONSUMER_ID, OPERATION_RESULT, SCOPE
-
-
Constructor Summary
Constructors Constructor Description AbstractServiceUsageRecord()AbstractServiceUsageRecord(Map<String,? extends Serializable> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCalledMethod()StringgetCallerHost()StringgetCallerQualifier()LonggetDuration()StringgetHost()StringgetRecordType()StringgetServiceClass()StringgetServiceName()voidsetCalledMethod(String calledMethod)voidsetCallerHost(String callerHost)voidsetCallerQualifier(String callerQualifier)voidsetDuration(Long duration)voidsetHost(String host)voidsetServiceClass(String serviceClass)voidsetServiceName(String serviceName)-
Methods inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
getConsumerId, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScope
-
Methods 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, validateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
CALLER_HOST
public static final String CALLER_HOST
KEY for : hostname:port of the Hosting Node made the service call- See Also:
- Constant Field Values
-
HOST
public static final String HOST
KEY for : hostname:port of the Hosting Node receiving the service call- See Also:
- Constant Field Values
-
SERVICE_CLASS
public static final String SERVICE_CLASS
KEY for : Service Class- See Also:
- Constant Field Values
-
SERVICE_NAME
public static final String SERVICE_NAME
KEY for : Service Name- See Also:
- Constant Field Values
-
CALLED_METHOD
public static final String CALLED_METHOD
KEY for : Called Method- See Also:
- Constant Field Values
-
DURATION
public static final String DURATION
KEY for : Duration- See Also:
- Constant Field Values
-
CALLER_QUALIFIER
public static final String CALLER_QUALIFIER
KEY for : callerQualifier- See Also:
- Constant Field Values
-
UNKNOWN
public static final String UNKNOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractServiceUsageRecord
public AbstractServiceUsageRecord()
-
AbstractServiceUsageRecord
public AbstractServiceUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-
Method Detail
-
getRecordType
public String getRecordType()
- Specified by:
getRecordTypein interfaceorg.gcube.documentstore.records.Record- Overrides:
getRecordTypein classBasicUsageRecord
-
getCallerHost
public String getCallerHost()
-
setCallerHost
public void setCallerHost(String callerHost) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getHost
public String getHost()
-
setHost
public void setHost(String host) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getServiceClass
public String getServiceClass()
-
setServiceClass
public void setServiceClass(String serviceClass) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getServiceName
public String getServiceName()
-
setServiceName
public void setServiceName(String serviceName) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getCalledMethod
public String getCalledMethod()
-
setCalledMethod
public void setCalledMethod(String calledMethod) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getDuration
public Long getDuration()
-
setDuration
public void setDuration(Long duration) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getCallerQualifier
public String getCallerQualifier()
-
setCallerQualifier
public void setCallerQualifier(String callerQualifier) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-