public class CounterFilter extends MadaraJNI
Constructor and Description |
---|
CounterFilter()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRebroadcastFilterTo(QoSTransportSettings settings)
Adds the filter as a receive filter to transport settings
|
void |
addReceiveFilterTo(QoSTransportSettings settings)
Adds the filter as a receive filter to transport settings
|
void |
addSendFilterTo(QoSTransportSettings settings)
Adds the filter as a receive filter to transport settings
|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
long |
getCount()
Returns the number of packets filtered
|
long |
getElapsed()
Returns the number of packets filtered
|
double |
getThroughput()
Converts the value to a double
|
public double getThroughput()
public long getCount()
public long getElapsed()
public void addReceiveFilterTo(QoSTransportSettings settings)
settings
- the QoS Transport settings to add the filter topublic void addSendFilterTo(QoSTransportSettings settings)
settings
- the QoS Transport settings to add the filter topublic void addRebroadcastFilterTo(QoSTransportSettings settings)
settings
- the QoS Transport settings to add the filter topublic void free()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- necessary for override but unused