Class CallHomeInfoNotification

Object
com.tailf.notif.Notification
com.tailf.notif.CallHomeInfoNotification

public class CallHomeInfoNotification extends Notification
Events generated for NETCONF Call Home connections.
  • Field Details

    • CALL_HOME_DEVICE_CONNECTED

      public static final int CALL_HOME_DEVICE_CONNECTED
      Device connected via NETCONF Call Home and recognized/configured.
      See Also:
    • CALL_HOME_UNKNOWN_DEVICE

      public static final int CALL_HOME_UNKNOWN_DEVICE
      Incoming Call Home connection from an unknown/unconfigured device.
      See Also:
    • CALL_HOME_DEVICE_DISCONNECTED

      public static final int CALL_HOME_DEVICE_DISCONNECTED
      Previously connected Call Home device disconnected.
      See Also:
  • Constructor Details

    • CallHomeInfoNotification

      public CallHomeInfoNotification(int infoType, String device, InetAddress ip, ConfObject ipValue, int port, String key, String alg)
      Creates a notification describing a Call Home event.
      Parameters:
      infoType - one of the CALL_HOME_* constants indicating the event type
      device - device name (present for connected/disconnected events)
      ip - remote IP address of the connection
      ipValue - ConfObject representing the IP (supports both v4/v6)
      port - remote TCP port
      key - SSH host key (fingerprint or textual representation)
      alg - SSH host key algorithm
  • Method Details

    • toString

      public String toString()
      Builds a human readable representation of this notification.
      Overrides:
      toString in class Notification
      Returns:
      string form including event type and relevant attributes
    • getInfoType

      public int getInfoType()
      Returns:
      info type constant
    • getDevice

      public String getDevice()
      Returns the device name if known.
      Returns:
      device name or null if unknown
    • getIP

      public InetAddress getIP()
      Returns the remote IP address of the Call Home connection.
      Returns:
      remote IP address or null if not applicable
    • getIPValue

      public ConfObject getIPValue()
      Returns the ConfObject form of the IP address
      Returns:
      ConfObject for the IP address or null if not applicable
    • getPort

      public int getPort()
      Returns the TCP port used by the remote endpoint.
      Returns:
      remote port number or 0 if not set
    • getSSHHostKey

      public String getSSHHostKey()
      Returns the SSH host key presented by the device.
      Returns:
      SSH host key string or null if not available
    • getSSHKeyAlg

      public String getSSHKeyAlg()
      Returns the SSH host key algorithm presented by the device during the Call Home connection.
      Returns:
      the SSH key algorithm