org.gcube.accounting.datamodel
Class NetworkUsageRecord

java.lang.Object
  extended by org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
      extended by org.gcube.accounting.datamodel.NetworkUsageRecord
All Implemented Interfaces:
UsageRecord

public class NetworkUsageRecord
extends AbstractDelegateUsageRecord


Field Summary
static String TYPE_NETWORK
           
 
Fields inherited from class org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
ur
 
Constructor Summary
NetworkUsageRecord()
           
NetworkUsageRecord(UsageRecord ur)
           
 
Method Summary
 String getOverallNetworkIn()
          Return the overall amount of bytes sent in the VM lifetime
 String getOverallNetworkOut()
          Return the overall amount of bytes sent in the VM lifetime
 String getPeriodNetworkIn()
          Return the amount of bytes received in the period covered by this record
 String getPeriodNetworkOut()
          Return the amount of bytes sent in the period covered by this record
 String getRefVM()
          Return a reference to the VM generating network traffic
 void setOverallNetworkIn(Long netIn)
          Set the overall amount of bytes sent in the VM lifetime
 void setOverallNetworkOut(Long netOut)
          Set the overall amount of bytes sent in the VM lifetime
 void setPeriodNetworkIn(Long netIn)
          Set the amount of bytes received in the period covered by this record
 void setPeriodNetworkOut(Long netOut)
          Set the amount of bytes sent in the period covered by this record
 void setRefVM(String refVM)
          Set a reference to the VM generating network traffic
 void validate()
           
 
Methods inherited from class org.gcube.accounting.datamodel.AbstractDelegateUsageRecord
getAggregatedId, getConsumerId, getCreateTime, getCreatorId, getCustomProperties, getCustomProperty, getDelegateUR, getEndTime, getFullyQualifiedConsumerId, getId, getModifyTime, getResourceOwner, getResourceSpecificProperties, getResourceSpecificProperty, getResourceType, getStartTime, setAggregatedId, setConsumerId, setCreateTime, setCreatorId, setCustomProperties, setCustomProperty, setEndTime, setFullyQualifiedConsumerId, setId, setModifyTime, setResourceOwner, setResourceSpecificProperties, setResourceSpecificProperty, setResourceType, setStartTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NETWORK

public static final String TYPE_NETWORK
See Also:
Constant Field Values
Constructor Detail

NetworkUsageRecord

public NetworkUsageRecord(UsageRecord ur)

NetworkUsageRecord

public NetworkUsageRecord()
Method Detail

getPeriodNetworkIn

public String getPeriodNetworkIn()
Return the amount of bytes received in the period covered by this record

Returns:

setPeriodNetworkIn

public void setPeriodNetworkIn(Long netIn)
                        throws InvalidValueException
Set the amount of bytes received in the period covered by this record

Throws:
InvalidValueException

setPeriodNetworkOut

public void setPeriodNetworkOut(Long netOut)
                         throws InvalidValueException
Set the amount of bytes sent in the period covered by this record

Throws:
InvalidValueException

getPeriodNetworkOut

public String getPeriodNetworkOut()
Return the amount of bytes sent in the period covered by this record

Returns:

setOverallNetworkIn

public void setOverallNetworkIn(Long netIn)
                         throws InvalidValueException
Set the overall amount of bytes sent in the VM lifetime

Throws:
InvalidValueException

getOverallNetworkIn

public String getOverallNetworkIn()
Return the overall amount of bytes sent in the VM lifetime

Returns:

setOverallNetworkOut

public void setOverallNetworkOut(Long netOut)
                          throws InvalidValueException
Set the overall amount of bytes sent in the VM lifetime

Throws:
InvalidValueException

getOverallNetworkOut

public String getOverallNetworkOut()
Return the overall amount of bytes sent in the VM lifetime

Returns:

getRefVM

public String getRefVM()
Return a reference to the VM generating network traffic

Returns:

setRefVM

public void setRefVM(String refVM)
Set a reference to the VM generating network traffic


validate

public void validate()
              throws InvalidValueException
Specified by:
validate in interface UsageRecord
Overrides:
validate in class AbstractDelegateUsageRecord
Throws:
InvalidValueException


Copyright © 2013. All Rights Reserved.