refs #200: Create accouting-lib library

https://support.d4science.org/issues/200
Fixing data model for backward compatibility

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@115379 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-06-15 10:00:55 +00:00
parent fc6d22b4e0
commit e199610172
3 changed files with 50 additions and 4 deletions

View File

@ -20,6 +20,7 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>

View File

@ -319,8 +319,13 @@ public class RawUsageRecord extends BasicUsageRecord {
* @return a Map containing the properties
*/
@Deprecated
public Map<String, Serializable> getResourceSpecificProperties() {
return getResourceProperties();
public Map<String, String> getResourceSpecificProperties() {
Map<String, String> ret = new HashMap<String, String>();
for(String key : this.resourceProperties.keySet()){
String value = this.resourceProperties.get(key).toString();
ret.put(key, value);
}
return ret;
}
/**
@ -339,8 +344,8 @@ public class RawUsageRecord extends BasicUsageRecord {
* @return the value of the given resource property
*/
@Deprecated
public Serializable getResourceSpecificProperty(String key) {
return getResourceProperty(key);
public String getResourceSpecificProperty(String key) {
return getResourceProperty(key).toString();
}
/**

View File

@ -0,0 +1,40 @@
package org.gcube.accounting.messaging;
@Deprecated
public class QueueCouple {
private String broker;
private String scope;
@Deprecated
public QueueCouple(String broker, String scope) {
super();
this.broker = broker;
this.scope = scope;
}
@Deprecated
public String getBroker() {
return broker;
}
@Deprecated
public void setBroker(String broker) {
this.broker = broker;
}
@Deprecated
public String getScope() {
return scope;
}
@Deprecated
public void setScope(String scope) {
this.scope = scope;
}
}