refs #200: Create accouting-lib library

https://support.d4science.org/issues/200
Implementing library

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@115296 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-06-10 13:23:12 +00:00
parent 3164a8e66c
commit 1378ba1bb3
2 changed files with 8 additions and 6 deletions

View File

@ -84,6 +84,7 @@ public class PortletUsageRecord extends RawUsageRecord implements SingleUsageRec
setResourceProperty(USER_ID, userId);
}
*/
public String getPortletId() {
return (String) this.resourceProperties.get(PORTLET_ID);

View File

@ -36,7 +36,7 @@ public class ServiceUsageRecord extends RawUsageRecord implements SingleUsageRec
@RequiredField @NotEmpty
public static final String REF_VM = "refVM";
@NotEmpty @DeprecatedWarning
public static final String DOMAIN = "domain";
protected static final String DOMAIN = "domain";
@ValidInteger @AggregatedField
protected static final String INVOCATION_COUNT = "invocationCount";
@ValidInteger @AggregatedField
@ -85,7 +85,7 @@ public class ServiceUsageRecord extends RawUsageRecord implements SingleUsageRec
public void setRefVM(String refVM) throws InvalidValueException {
setResourceProperty(REF_VM, refVM);
}
/*
protected String getDomain() {
return (String) this.resourceProperties.get(DOMAIN);
}
@ -109,6 +109,7 @@ public class ServiceUsageRecord extends RawUsageRecord implements SingleUsageRec
public void setAverageInvocationTime(String averageInvocationTime) throws InvalidValueException {
setResourceProperty(AVERAGE_INVOCATION_COUNT, averageInvocationTime);
}
*/
public String getServiceClass() {
return (String) this.resourceProperties.get(SERVICE_CLASS);