public abstract class AbstractPingerFactory extends Object implements PingerFactory
PingerFactory class.
Modifier and Type | Field and Description |
---|---|
protected static com.google.common.cache.Cache<Integer,Pinger> |
m_pingers |
FRAG_FALSE, FRAG_TRUE, MAX_DSCP
Constructor and Description |
---|
AbstractPingerFactory() |
Modifier and Type | Method and Description |
---|---|
Pinger |
getInstance()
Returns an implementation of the default
Pinger class |
Pinger |
getInstance(int tc,
boolean allowFragmentation)
Returns an implementation of the
Pinger class associated with the
socket configured for the given traffic control and fragmentation bits. |
abstract Class<? extends Pinger> |
getPingerClass() |
void |
reset() |
void |
setInstance(int tc,
boolean allowFragmentation,
Pinger pinger) |
public Pinger getInstance()
PingerFactory
Pinger
classgetInstance
in interface PingerFactory
Pinger
object.public Pinger getInstance(int tc, boolean allowFragmentation)
PingerFactory
Pinger
class associated with the
socket configured for the given traffic control and fragmentation bits.getInstance
in interface PingerFactory
tc
- the traffic control value to set, use "0" for noneallowFragmentation
- whether to allow fragmentationPinger
object.public void setInstance(int tc, boolean allowFragmentation, Pinger pinger)
public void reset()
Copyright © 2021. All rights reserved.