Core API 7.14

net.juniper.smgt.sae.portal
Class Usage

java.lang.Object
  extended by net.juniper.smgt.sae.portal.Usage

public class Usage
extends java.lang.Object

Usage objects contain statistics that describe the network traffic between a user and a network resource that is controlled by an SAE service.

See Also:
Subscription.getUsage()

Method Summary
 long getBytesFromUser()
          The number of bytes sent across the network from the user to the service (i.e.
 long getBytesToUser()
          The number of bytes sent across the network from the service (i.e.
 java.util.Date getCollectionTime()
          The time and date at which these usage statistics were collected from the network.
 long getCollectionTimestamp()
          The time at which these usage statistics were collected from the network in milliseconds since 1970-01-01T00:00:00 UTC.
 long getPacketsFromUser()
          The number of IP packets sent across the network from the user to the service (i.e.
 long getPacketsToUser()
          The number of IP packets sent across the network from the service (i.e.
 boolean isOperational()
           
 void setOperational(boolean b)
           
 java.lang.String toString()
          For debugging only.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCollectionTime

public java.util.Date getCollectionTime()
The time and date at which these usage statistics were collected from the network.


getCollectionTimestamp

public long getCollectionTimestamp()
The time at which these usage statistics were collected from the network in milliseconds since 1970-01-01T00:00:00 UTC.

Since:
6.0

getBytesFromUser

public long getBytesFromUser()
The number of bytes sent across the network from the user to the service (i.e. to the network resource controlled by the subscribed service), as defined by the service's network policies.


getBytesToUser

public long getBytesToUser()
The number of bytes sent across the network from the service (i.e. from the network resource controlled by the subscribed service) to the user, as defined by the service's network policies.


getPacketsFromUser

public long getPacketsFromUser()
The number of IP packets sent across the network from the user to the service (i.e. to the network resource controlled by the subscribed service), as defined by the service's network policies.


getPacketsToUser

public long getPacketsToUser()
The number of IP packets sent across the network from the service (i.e. from the network resource controlled by the subscribed service) to the user, as defined by the service's network policies.


isOperational

public boolean isOperational()
Returns:
whether the service is currently operational.

setOperational

public void setOperational(boolean b)

toString

public java.lang.String toString()
For debugging only. Returns a description of this Usage object.

Overrides:
toString in class java.lang.Object

Core API 7.14