Package org.netxms.client
Class NotificationChannel
java.lang.Object
org.netxms.client.NotificationChannel
Represents NetXMS server's notification channel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ModifierConstructorDescriptionCreate empty notification channel object.protected
NotificationChannel
(NXCPMessage msg, long baseId) Create notification channel object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with action's dataint
boolean
int
getName()
Get channel name.int
boolean
isActive()
void
setConfiguration
(String configuration) void
setDescription
(String description) void
setDriverName
(String driverName) void
-
Field Details
-
SEND_STATUS_UNKNOWN
public static final int SEND_STATUS_UNKNOWN- See Also:
-
SEND_STATUS_SUCCESS
public static final int SEND_STATUS_SUCCESS- See Also:
-
SEND_STATUS_FAILURE
public static final int SEND_STATUS_FAILURE- See Also:
-
-
Constructor Details
-
NotificationChannel
Create notification channel object from NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
NotificationChannel
public NotificationChannel()Create empty notification channel object.
-
-
Method Details
-
fillMessage
Fill NXCP message with action's data- Parameters:
msg
- NXCP message
-
getName
Get channel name.- Returns:
- channel name
-
setName
- Parameters:
name
- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getDriverName
- Returns:
- the driverName
-
setDriverName
- Parameters:
driverName
- the driverName to set
-
getConfiguration
- Returns:
- the configuration
-
setConfiguration
- Parameters:
configuration
- the configuration to set
-
getConfigurationTemplate
- Returns:
- the configurationTemplate
-
isActive
public boolean isActive()- Returns:
- the isActive
-
getErrorMessage
- Returns:
- the errorMessage
-
getSendStatus
public int getSendStatus()- Returns:
- the lastStatus
-
getHealthCheckStatus
public boolean getHealthCheckStatus()- Returns:
- the healthCheckStatus
-
getLastMessageTimestamp
- Returns:
- the lastMessageTimestamp
-
getMessageCount
public int getMessageCount()- Returns:
- the messageCount
-
getFailureCount
public int getFailureCount()- Returns:
- the failureCount
-