OpenNMS API 1.2.3

org.opennms.netmgt.poller.monitors
Class IcmpMonitor.Ping

java.lang.Object
  extended byorg.opennms.netmgt.poller.monitors.IcmpMonitor.Ping
Enclosing class:
IcmpMonitor

private static final class IcmpMonitor.Ping
extends java.lang.Object

This class is used to encapsulate a ping request. A request consist of the pingable address and a signaled state.


Field Summary
private  java.net.InetAddress m_addr
          The address being pinged
private  Packet m_packet
          The ping packet (contains sent/received time stamps)
private  boolean m_signaled
          The state of the ping
 
Constructor Summary
(package private) IcmpMonitor.Ping(java.net.InetAddress addr)
          Constructs a new ping object
 
Method Summary
(package private)  Packet getPacket()
           
(package private)  boolean isSignaled()
          Returns true if signaled.
(package private)  boolean isTarget(java.net.InetAddress addr)
          Returns true if the passed address is the target of the ping.
(package private)  void setPacket(Packet packet)
           
(package private)  void signal()
          Sets the signaled state and awakes the blocked threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_addr

private final java.net.InetAddress m_addr
The address being pinged


m_signaled

private boolean m_signaled
The state of the ping


m_packet

private Packet m_packet
The ping packet (contains sent/received time stamps)

Constructor Detail

IcmpMonitor.Ping

IcmpMonitor.Ping(java.net.InetAddress addr)
Constructs a new ping object

Method Detail

isSignaled

boolean isSignaled()
Returns true if signaled.


signal

void signal()
Sets the signaled state and awakes the blocked threads.


isTarget

boolean isTarget(java.net.InetAddress addr)
Returns true if the passed address is the target of the ping.


setPacket

void setPacket(Packet packet)

getPacket

Packet getPacket()

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.