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:
parent
fc6d22b4e0
commit
e199610172
|
@ -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"/>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue