com.jscape.inet.vfs
Class Quota

java.lang.Object
  extended by com.jscape.inet.vfs.Quota

public class Quota
extends java.lang.Object

Defines bandwidth quota for an account.


Constructor Summary
Quota()
          Creates a new Quota instance.
Quota(long bytes, long resetPeriod)
          Creates a new Quota instance.
Quota(Quota that)
          Creates a new Quota instance.
 
Method Summary
 long getBytes()
          Gets number of bytes that may be transferred during period.
 long getResetPeriod()
          Gets reset period in days.
 void setBytes(long value)
          Sets number of bytes that may be transferred during period.
 void setResetPeriod(long value)
          Sets reset period in days.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quota

public Quota(long bytes,
             long resetPeriod)
Creates a new Quota instance.

Parameters:
bytes - the number of bytes that may be transferred during period
resetPeriod - the reset period in days

Quota

public Quota(Quota that)
Creates a new Quota instance.

Parameters:
that - instance to copy from

Quota

public Quota()
Creates a new Quota instance.

Method Detail

getBytes

public long getBytes()
Gets number of bytes that may be transferred during period.

Returns:
number of bytes

setBytes

public void setBytes(long value)
Sets number of bytes that may be transferred during period.

Parameters:
value - number of bytes

getResetPeriod

public long getResetPeriod()
Gets reset period in days.

Returns:
reset period in days

setResetPeriod

public void setResetPeriod(long value)
Sets reset period in days.

Parameters:
value - reset period in days

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 JSCAPE Corp. All Rights Reserved.