Class LocalUsage
java.lang.Object
org.dataone.bookkeeper.api.Usage
edu.ucsb.nceas.metacat.dataone.quota.LocalUsage
public class LocalUsage
extends org.dataone.bookkeeper.api.Usage
A child class of the Usage class of BookKeeper. It has a new field - local id which represents sequence id in the
local quota_usage table
- Author:
- tao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the local id associated with the local usageGet the quota type of the usageGet the requestor associated with the usageGet the subscriber of the usagevoid
setLocalId
(int localId) Set the local idvoid
setQuotaType
(String quotaType) Set the given quota type to the usagevoid
setRequestor
(String requestor) Set requestor for this usagevoid
setSubscriber
(String subscriber) Set the subscriber associated with the usageMethods inherited from class org.dataone.bookkeeper.api.Usage
equals, getId, getInstanceId, getNodeId, getObject, getQuantity, getQuotaId, getStatus, hashCode, setId, setInstanceId, setNodeId, setObject, setQuantity, setQuotaId, setStatus
-
Constructor Details
-
LocalUsage
public LocalUsage()
-
-
Method Details
-
getSubscriber
Get the subscriber of the usage- Returns:
- the subscriber
-
setSubscriber
Set the subscriber associated with the usage- Parameters:
subscriber
- the value will be set
-
getQuotaType
Get the quota type of the usage- Returns:
- the quota type
-
setQuotaType
Set the given quota type to the usage- Parameters:
quotaType
- the type will be set
-
getRequestor
Get the requestor associated with the usage- Returns:
- the requestor
-
setRequestor
Set requestor for this usage- Parameters:
requestor
- the value will be set
-
getLocalId
public int getLocalId()Get the local id associated with the local usage- Returns:
- the local id
-
setLocalId
public void setLocalId(int localId) Set the local id- Parameters:
localId
- the local id
-