Package com.tailf.notif
Class CallHomeInfoNotification
Object
com.tailf.notif.Notification
com.tailf.notif.CallHomeInfoNotification
Events generated for NETCONF Call Home connections.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDevice connected via NETCONF Call Home and recognized/configured.static final intPreviously connected Call Home device disconnected.static final intIncoming Call Home connection from an unknown/unconfigured device. - 
Constructor Summary
ConstructorsConstructorDescriptionCallHomeInfoNotification(int infoType, String device, InetAddress ip, ConfObject ipValue, int port, String key, String alg) Creates a notification describing a Call Home event. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the device name if known.intgetIP()Returns the remote IP address of the Call Home connection.Returns the ConfObject form of the IP addressintgetPort()Returns the TCP port used by the remote endpoint.Returns the SSH host key presented by the device.Returns the SSH host key algorithm presented by the device during the Call Home connection.toString()Builds a human readable representation of this notification.Methods inherited from class com.tailf.notif.Notification
getNotificationType 
- 
Field Details
- 
CALL_HOME_DEVICE_CONNECTED
public static final int CALL_HOME_DEVICE_CONNECTEDDevice connected via NETCONF Call Home and recognized/configured.- See Also:
 
 - 
CALL_HOME_UNKNOWN_DEVICE
public static final int CALL_HOME_UNKNOWN_DEVICEIncoming Call Home connection from an unknown/unconfigured device.- See Also:
 
 - 
CALL_HOME_DEVICE_DISCONNECTED
public static final int CALL_HOME_DEVICE_DISCONNECTEDPreviously 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 typedevice- device name (present for connected/disconnected events)ip- remote IP address of the connectionipValue- ConfObject representing the IP (supports both v4/v6)port- remote TCP portkey- SSH host key (fingerprint or textual representation)alg- SSH host key algorithm
 
 - 
 - 
Method Details
- 
toString
Builds a human readable representation of this notification.- Overrides:
 toStringin classNotification- Returns:
 - string form including event type and relevant attributes
 
 - 
getInfoType
public int getInfoType()- Returns:
 - info type constant
 
 - 
getDevice
Returns the device name if known.- Returns:
 - device name or null if unknown
 
 - 
getIP
Returns the remote IP address of the Call Home connection.- Returns:
 - remote IP address or null if not applicable
 
 - 
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
Returns the SSH host key presented by the device.- Returns:
 - SSH host key string or null if not available
 
 - 
getSSHKeyAlg
Returns the SSH host key algorithm presented by the device during the Call Home connection.- Returns:
 - the SSH key algorithm
 
 
 -