Package org.netxms.client
Class NotificationChannel
java.lang.Object
org.netxms.client.NotificationChannel
Represents NetXMS server's notification channel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate empty notification channel object.protectedNotificationChannel(NXCPMessage msg, long baseId) Create notification channel object from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with action's dataintbooleanintgetName()Get channel name.intbooleanisActive()voidsetConfiguration(String configuration) voidsetDescription(String description) voidsetDriverName(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
-