Package org.netxms.client
Class NotificationChannel
java.lang.Object
org.netxms.client.NotificationChannel
Represents NetXMS server's notification channel
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCreate empty notification channel object.protectedNotificationChannel(NXCPMessage msg, long baseId) Create notification channel object from NXCP message
- 
Method SummaryModifier 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_UNKNOWNpublic static final int SEND_STATUS_UNKNOWN- See Also:
 
- 
SEND_STATUS_SUCCESSpublic static final int SEND_STATUS_SUCCESS- See Also:
 
- 
SEND_STATUS_FAILUREpublic static final int SEND_STATUS_FAILURE- See Also:
 
 
- 
- 
Constructor Details- 
NotificationChannelCreate notification channel object from NXCP message- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
NotificationChannelpublic NotificationChannel()Create empty notification channel object.
 
- 
- 
Method Details- 
fillMessageFill NXCP message with action's data- Parameters:
- msg- NXCP message
 
- 
getNameGet 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
 
- 
isActivepublic boolean isActive()- Returns:
- the isActive
 
- 
getErrorMessage- Returns:
- the errorMessage
 
- 
getSendStatuspublic int getSendStatus()- Returns:
- the lastStatus
 
- 
getHealthCheckStatuspublic boolean getHealthCheckStatus()- Returns:
- the healthCheckStatus
 
- 
getLastMessageTimestamp- Returns:
- the lastMessageTimestamp
 
- 
getMessageCountpublic int getMessageCount()- Returns:
- the messageCount
 
- 
getFailureCountpublic int getFailureCount()- Returns:
- the failureCount
 
 
-