|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bsvrz.dav.daf.communication.lowLevel.LowLevelCommunication.ThroughputChecker
private class LowLevelCommunication.ThroughputChecker
Field Summary | |
---|---|
private int |
_buffersizeThreshold
Anzahl Bytes im Sendepuffer, ab dem die Durchsatzprüfung gestartet wird. |
private long |
_controlInterval
Die Zeit zwischen zwei Messungen der Durchsatzprüfung in Millisekunden |
private long |
_lastCheckedThroughput
|
private int |
_minimumThroughput
Minimaler Sendedurchsatz für die Durchsatzprüfung in Bytes pro Sekunde |
private int |
_numberOfBytesSent
|
(package private) LowLevelCommunication.ThroughputCheckerState |
_state
|
private long |
_stateChangeTime
|
Constructor Summary | |
---|---|
LowLevelCommunication.ThroughputChecker()
|
Method Summary | |
---|---|
long |
checkThroughput()
Prüft den Durchsatz und liefert die Zeit bis zur nächsten Prüfung zurück. |
String |
getSendBufferState()
Liefert einen beschreibenden Text mit dem Zustand des Sendepuffers |
void |
queuedTelegram()
|
void |
sentTelegram(int telegramSize)
|
private void |
setState(LowLevelCommunication.ThroughputCheckerState state)
|
void |
setThroughputParameters(float throughputControlSendBufferFactor,
long throughputControlInterval,
int minimumThroughput)
Diese Methode setzt die Parameter für die Durchsatzprüfung. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int _buffersizeThreshold
private long _controlInterval
private int _minimumThroughput
LowLevelCommunication.ThroughputCheckerState _state
private long _stateChangeTime
private int _numberOfBytesSent
private long _lastCheckedThroughput
Constructor Detail |
---|
public LowLevelCommunication.ThroughputChecker()
Method Detail |
---|
public final void setThroughputParameters(float throughputControlSendBufferFactor, long throughputControlInterval, int minimumThroughput)
throughputControlSendBufferFactor
- Füllungsgrad des Sendepuffers als Faktor zwischen 0 und 1, ab dem die Durchsatzprüfung anfängt zu arbeiten.throughputControlInterval
- Zeit zwischen zwei Durchsatzprüfungen in MillisekundenminimumThroughput
- Minimal zulässiger Verbindungsdurchsatz in Bytes pro Sekundeprivate void setState(LowLevelCommunication.ThroughputCheckerState state)
public void queuedTelegram()
public void sentTelegram(int telegramSize)
public long checkThroughput()
IllegalStateException
- wenn ein zu geringer Durchsatz festgestellt wurde.public String getSendBufferState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |