|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.mft.management.descriptors.MaxDownloadsServiceDescriptor
public class MaxDownloadsServiceDescriptor
Domain download service descriptor. The service described by this descriptor takes responsibility for limiting downloads count.
Field Summary | |
---|---|
static long |
DEFAULT_PERIOD
|
static long |
DEFAULT_VALUE
|
Constructor Summary | |
---|---|
MaxDownloadsServiceDescriptor()
This constructor is used by serialization sub-system and is not intended to use directly in client code. |
|
MaxDownloadsServiceDescriptor(long value,
long resetPeriod)
Creates a new descriptor instance. |
|
MaxDownloadsServiceDescriptor(long value,
long resetPeriod,
long transferredBytes,
long nextResetTime)
Creates a new service descriptor. |
Method Summary | |
---|---|
long |
getNextResetTime()
Retuns next reset time. |
long |
getResetPeriod()
Returns counter reset period. |
long |
getTransferredBytes()
Returns transferred bytes count. |
long |
getValue()
Returns max downloads. |
void |
setNextResetTime(long value)
Sets next reset time. |
void |
setResetPeriod(long value)
Sets counter reset period. |
void |
setTransferredBytes(long value)
Sets transferred bytes count. |
void |
setValue(long value)
Sets max downloads. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_VALUE
public static final long DEFAULT_PERIOD
Constructor Detail |
---|
public MaxDownloadsServiceDescriptor(long value, long resetPeriod, long transferredBytes, long nextResetTime)
value
- max downloads in bytesresetPeriod
- reset period in mstransferredBytes
- transferred bytes countnextResetTime
- next reset timepublic MaxDownloadsServiceDescriptor(long value, long resetPeriod)
value
- max downloads in bytesresetPeriod
- reset period in mspublic MaxDownloadsServiceDescriptor()
Method Detail |
---|
public long getValue()
public void setValue(long value)
value
- max downloads bytespublic long getResetPeriod()
public void setResetPeriod(long value)
value
- counter reset period in mspublic long getTransferredBytes()
public void setTransferredBytes(long value)
value
- transferred bytes countpublic long getNextResetTime()
public void setNextResetTime(long value)
value
- next reset timepublic java.lang.String toString()
toString
in class java.lang.Object
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |