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 intFRAG_FALSEstatic intFRAG_TRUEstatic intMAX_DSCP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PingergetInstance()Returns an implementation of the defaultPingerclassPingergetInstance(int tc, boolean allowFragmentation)Returns an implementation of thePingerclass 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 defaultPingerclass- Parameters:
tc- the traffic control value to set, use "0" for noneallowFragmentation- whether to allow fragmentation- Returns:
- a
Pingerobject.
-
getInstance
Pinger getInstance(int tc, boolean allowFragmentation)
Returns an implementation of thePingerclass 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
Pingerobject.
-
-