|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.acars.Bandwidth
public class Bandwidth
A bean to store ACARS bandwidth statistics.
| Constructor Summary | |
|---|---|
Bandwidth(Date dt)
Initializes the bean. |
|
| Method Summary | |
|---|---|
int |
compareTo(Bandwidth bw2)
Compares two beans by comparing their start dates and intervals. |
long |
getBytesIn()
Returns the number of inbound bytes during the window. |
long |
getBytesOut()
Returns the number of outbound bytes during the window. |
int |
getConnections()
Returns the number of connections during the window. |
Date |
getDate()
Returns the start date of the window. |
Date |
getEndDate()
Returns the end date of the window. |
int |
getErrors()
Returns the number of write errors during the window. |
int |
getInterval()
Returns the window size. |
long |
getMaxBytes()
Returns the maximum number of bytes transferred for the period. |
int |
getMaxConnections()
Returns the maximum number of connections for the period. |
int |
getMaxMsgs()
Returns the maximum number of messages for the period. |
int |
getMsgsIn()
Returns the number of inbound messages during the window. |
int |
getMsgsOut()
Returns the number of outbound messages during the window. |
int |
hashCode()
|
void |
setBytes(long bytesIn,
long bytesOut)
Updates the bandwidth during the window. |
void |
setConnections(int cons)
Updates the number of connections during the window. |
void |
setErrors(int errors)
Updates the number of errors during the window. |
void |
setInterval(int interval)
Sets the window size. |
void |
setMaxBytes(long bytes)
Updates the maximum number of bytes transferred for the period. |
void |
setMaxConnections(int cons)
Updates the maximum number of connections for the period. |
void |
setMaxMsgs(int msgs)
Updates the maximum number of messages for the period. |
void |
setMessages(int msgIn,
int msgOut)
Updates the number of messages during the window. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bandwidth(Date dt)
dt - the start/date of this window
NullPointerException - if dt is null| Method Detail |
|---|
public Date getDate()
public Date getEndDate()
public int getInterval()
public int getConnections()
public int getMsgsIn()
public int getMsgsOut()
public long getBytesIn()
public long getBytesOut()
public int getErrors()
public int getMaxConnections()
public int getMaxMsgs()
public long getMaxBytes()
public void setConnections(int cons)
cons - the number of connectionspublic void setErrors(int errors)
errors - the number of errors
public void setMessages(int msgIn,
int msgOut)
msgIn - the number of inbound messagesmsgOut - the number of outbound messages
public void setBytes(long bytesIn,
long bytesOut)
bytesIn - the number of bytes inbytesOut - the number of bytes outpublic void setMaxConnections(int cons)
cons - the maximum number of connectionspublic void setMaxMsgs(int msgs)
msgs - the maximum number of messagespublic void setMaxBytes(long bytes)
bytes - the maximum number of bytespublic void setInterval(int interval)
interval - the size in minutespublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Bandwidth bw2)
compareTo in interface Comparable<Bandwidth>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||