Package org.opennms.netmgt.icmp
Interface PingerFactory
-
- All Known Implementing Classes:
AbstractPingerFactory
,BestMatchPingerFactory
,JnaPingerFactory
,Jni6PingerFactory
,JniPingerFactory
,PingerFactoryImpl
public interface PingerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static int
FRAG_FALSE
static int
FRAG_TRUE
static int
MAX_DSCP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pinger
getInstance()
Returns an implementation of the defaultPinger
classPinger
getInstance(int tc, boolean allowFragmentation)
Returns an implementation of thePinger
class associated with the socket configured for the given traffic control and fragmentation bits.
-
-
-
Field Detail
-
MAX_DSCP
static final int MAX_DSCP
- See Also:
- Constant Field Values
-
FRAG_FALSE
static final int FRAG_FALSE
- See Also:
- Constant Field Values
-
FRAG_TRUE
static final int FRAG_TRUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
Pinger getInstance()
Returns an implementation of the defaultPinger
class- Parameters:
tc
- the traffic control value to set, use "0" for noneallowFragmentation
- whether to allow fragmentation- Returns:
- a
Pinger
object.
-
getInstance
Pinger getInstance(int tc, boolean allowFragmentation)
Returns an implementation of thePinger
class associated with the socket configured for the given traffic control and fragmentation bits.- Parameters:
tc
- the traffic control value to set, use "0" for noneallowFragmentation
- whether to allow fragmentation- Returns:
- a
Pinger
object.
-
-