public class NotificationCfg extends Object
Constructor and Description |
---|
NotificationCfg()
Default constructor, all values has to be set using
the setter methods.
|
NotificationCfg(int heartbeatInterval,
int healthCheckInterval)
Creates a NotificationCfg instance with only the
heartbeatInterval and healthCheckInterval.
|
NotificationCfg(int heartbeatInterval,
int healthCheckInterval,
String streamName,
ConfValue startTime,
ConfValue stopTime,
String xpathFilter,
int usid)
Convenience constructor setting all values.
|
Modifier and Type | Method and Description |
---|---|
int |
getHealthCheckInterval()
Get configured Healtcheck interval
used by
NotificationType.NOTIF_HEALTH_CHECK
notifications
Time is in milliseconds |
int |
getHeartbeatInterval()
Get configured Heartbeat interval
used by
NotificationType.NOTIF_HEARTBEAT
notifications
Time is in milliseconds |
ConfValue |
getStartTime()
Get configured startTime
used by
NotificationType.NOTIF_STREAM_EVENT
notifications to define a replay start time
The value is either ConfDatetime or ConfNoExists |
ConfValue |
getStopTime()
Get configured stopTime
used by
NotificationType.NOTIF_STREAM_EVENT
notifications to define a replay stop time
The value is either ConfDatetime or ConfNoExists |
String |
getStreamName()
Get configured stream name
used by
NotificationType.NOTIF_STREAM_EVENT
notifications |
int |
getUsid()
Get configured User session id
used by
NotificationType.NOTIF_STREAM_EVENT
notifications |
String |
getXPathFilter()
Get configured XPathFilter
used by
NotificationType.NOTIF_STREAM_EVENT
notifications |
void |
setHealthCheckInterval(int healthCheckInterval)
Required if we wish to generate CONFD_NOTIF_HEALTH_CHECK events
The time is milli seconds
|
void |
setHeartbeatInterval(int heartbeatInterval)
Required if we wish to generate CONFD_NOTIF_HEARTBEAT events
The time is milli seconds
|
void |
setStartTime(ConfValue startTime)
Optional for CONFD_NOTIF_STREAM_EVENT
Set to request a replay.
|
void |
setStopTime(ConfValue stopTime)
Optional for CONFD_NOTIF_STREAM_EVENT
If startTime is set stopTime can also be set to
indicated the end of a replay.
|
void |
setStreamName(String streamName)
Required for CONFD_NOTIF_STREAM_EVENT
The stream name of the Notification Stream (required)
|
void |
setUsid(int usid)
Optional for CONFD_NOTIF_STREAM_EVENT
User session id for AAA restriction
Set to 0 for no AAA
|
void |
setXPathFilter(String xpathFilter)
Optional for CONFD_NOTIF_STREAM_EVENT
XPath filter for the stream.
|
public NotificationCfg()
public NotificationCfg(int heartbeatInterval, int healthCheckInterval)
Notif.Notif(java.net.Socket, java.util.EnumSet, int, int)
constructorheartbeatInterval
- healthCheckInterval
- public NotificationCfg(int heartbeatInterval, int healthCheckInterval, String streamName, ConfValue startTime, ConfValue stopTime, String xpathFilter, int usid)
heartbeatInterval
- default 0healthCheckInterval
- default 0streamName
- default nullstartTime
- default ConfNoExistsstopTime
- default ConfNoExistsxpathFilter
- default nullusid
- default 0public int getHealthCheckInterval()
NotificationType.NOTIF_HEALTH_CHECK
notifications
Time is in millisecondspublic int getHeartbeatInterval()
NotificationType.NOTIF_HEARTBEAT
notifications
Time is in millisecondspublic ConfValue getStartTime()
NotificationType.NOTIF_STREAM_EVENT
notifications to define a replay start time
The value is either ConfDatetime or ConfNoExistspublic ConfValue getStopTime()
NotificationType.NOTIF_STREAM_EVENT
notifications to define a replay stop time
The value is either ConfDatetime or ConfNoExistspublic String getStreamName()
NotificationType.NOTIF_STREAM_EVENT
notificationspublic int getUsid()
NotificationType.NOTIF_STREAM_EVENT
notificationspublic String getXPathFilter()
NotificationType.NOTIF_STREAM_EVENT
notificationspublic void setHealthCheckInterval(int healthCheckInterval)
healthCheckInterval
- public void setHeartbeatInterval(int heartbeatInterval)
heartbeatInterval
- public void setStartTime(ConfValue startTime)
startTime
- public void setStopTime(ConfValue stopTime)
stopTime
- public void setStreamName(String streamName)
streamName
- public void setUsid(int usid)
usid
- public void setXPathFilter(String xpathFilter)
xpathFilter
-