public class NotificationEventImpl extends EventImpl implements NotificationEvent
mComponentName, mComponentProjectPathName, mComponentType, mDeploymentName, mEnvironmentName, mLogicalHostName, mPhysicalHostName, mServerName, mServerType, mTimeStampEVENT_TYPE_ALERT, EVENT_TYPE_EVENT, EVENT_TYPE_TCA, OBSERVATIONAL_STATE_DELETED, OBSERVATIONAL_STATE_OBSERVED, OBSERVATIONAL_STATE_RESOLVED, OBSERVATIONAL_STATE_UNOBSERVED, OPERATIONAL_STATE_RUNNING, OPERATIONAL_STATE_STARTED, OPERATIONAL_STATE_STARTING, OPERATIONAL_STATE_STOPPED, OPERATIONAL_STATE_STOPPING, OPERATIONAL_STATE_SUSPENDED, OPERATIONAL_STATE_SUSPENDING, OPERATIONAL_STATE_UNKNOWN, SEVERITY_TYPE_CRITICAL, SEVERITY_TYPE_FATAL, SEVERITY_TYPE_INFO, SEVERITY_TYPE_MAJOR, SEVERITY_TYPE_MINOR, SEVERITY_TYPE_WARNINGCOMPONENT_TYPE_BPEL, COMPONENT_TYPE_COLLABORATION, COMPONENT_TYPE_EWAY, COMPONENT_TYPE_STCMS, SERVER_TYPE_INTEGRATION, SERVER_TYPE_MESSAGE| Constructor and Description |
|---|
NotificationEventImpl()
NotificationEvent Constructor.
|
NotificationEventImpl(String componentType,
String componentProjectPathName,
String componentName,
long timeStamp) |
NotificationEventImpl(String physicalHostName,
String environmentName,
String logicalHostName,
String serverType,
String serverName,
String componentType,
String componentProjectPathName,
String componentName,
String type,
int severity,
int operationalState,
String messageCode,
String[] messageCodeArgs,
String messageDetails)
NotificationEvent Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createQuery(String notificationType,
String environmentName,
String logicalHostName,
String serverType,
String serverName,
String componentType,
String componentProjectPathName,
String componentName,
Integer observationalState)
Create a query for Notifications
|
String |
createQuery2(String notificationType,
String environmentName,
String logicalHostName,
String serverType,
String serverName,
String componentType,
String componentProjectPathName,
String componentName,
Integer observationalState,
String dateFrom,
String dateTo,
Integer severity,
Integer operationalState,
String messageDetail)
Create a query for Notifications
|
String |
createQuery2(String notificationType,
String deploymentName,
String environmentName,
String logicalHostName,
String serverType,
String serverName,
String componentType,
String componentProjectPathName,
String componentName,
Integer observationalState,
String dateFrom,
String dateTo,
Integer severity,
Integer operationalState,
String messageDetail)
Create a query for Notifications
|
boolean |
equals(Object o)
Compare two notification event objects.
|
long |
getId()
The notification event id
|
boolean |
getListenersNotified()
The getter method for whether the listeners interested in the
notifications event have been notified.
|
String |
getMessageCode()
The getter method for the message code which is a unique integer that
is used to identify the root cause of the notification events as
specifically as possible.
|
String[] |
getMessageCodeArgs()
The getter method for the message code arguments.
|
String |
getMessageDetails()
The getter method for the details about a notification event.
|
int |
getObservationalState()
The getter method to retrieve the observational state.
|
String |
getObStateString(int obState)
Convert a code into String representation
|
int |
getOperationalState()
The getter method for the operational state
|
String |
getOpStateString(int opState)
Convert a code into String representation
|
int |
getSeverity()
The getter method for the severity.
|
String |
getSeverityString(int severity)
Convert a code into String representation
|
String |
getType()
The getter method for the notification event type.
|
int |
hashCode()
Generate a hashcode for the notification event.
|
void |
setId(long id)
Set the id.
|
void |
setListenersNotified(boolean listenersNotified)
The setter method for whether the listeners interested in the
notification events have been notified.
|
void |
setMessageCode(String messageCode)
The setter method for the message code.
|
void |
setMessageCodeArgs(String[] messageCodeArgs)
The setter method for the message code arguments.
|
void |
setMessageDetails(String messageDetails)
The setter method for the details about a notification event.
|
void |
setObservationalState(int observationalState)
Set the observational state.
|
void |
setOperationalState(int operationalState)
The setter method for the operational state.
|
void |
setSeverity(int severity)
The setter method for the severity.
|
void |
setType(String type)
The setter method for the notification event type.
|
String |
toString()
Generate a string representation of the notification event.
|
getComponentName, getComponentProjectPathName, getComponentType, getDeploymentName, getEnvironmentName, getLogicalHostName, getPhysicalHostName, getServerName, getServerType, getTimeStamp, setComponentName, setComponentProjectPathName, setComponentType, setDeploymentName, setEnvironmentName, setLogicalHostName, setPhysicalHostName, setServerName, setServerType, setTimeStamp, setTimeStampclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComponentName, getComponentProjectPathName, getComponentType, getDeploymentName, getEnvironmentName, getLogicalHostName, getPhysicalHostName, getServerName, getServerType, getTimeStamp, setComponentName, setComponentProjectPathName, setComponentType, setDeploymentName, setEnvironmentName, setLogicalHostName, setPhysicalHostName, setServerName, setServerType, setTimeStamp, setTimeStamppublic NotificationEventImpl()
public NotificationEventImpl(String componentType, String componentProjectPathName, String componentName, long timeStamp)
public NotificationEventImpl(String physicalHostName, String environmentName, String logicalHostName, String serverType, String serverName, String componentType, String componentProjectPathName, String componentName, String type, int severity, int operationalState, String messageCode, String[] messageCodeArgs, String messageDetails)
physicalHostName - the name of the physical hostenvironmentName - the name of the environmentlogicalHostName - the name of the logical hostserverType - the type of the server (INTEGRATION, MESSAGE)serverName - the name of the servercomponentType - the type of the component (COLLABORATION_COMPONENT)componentProjectPathName - full path name of the project in
which the component is in. Note the names
of the project and its sub-projects, if
any, are separated by '/'.componentName - the name of the component
.
.
.
.
.public long getId()
public void setId(long id)
setId in interface NotificationEventsetId in class EventImplid - the idpublic String getType()
getType in interface NotificationEventpublic void setType(String type)
setType in interface NotificationEventtype - the notification event type:
EVENT_TYPE_ALERT
EVENT_TYPE_TCA
EVENT_TYPE_EVENTpublic int getSeverity()
getSeverity in interface NotificationEventpublic String getSeverityString(int severity)
NotificationEventgetSeverityString in interface NotificationEventseverity - the codepublic void setSeverity(int severity)
setSeverity in interface NotificationEventseverity - the severity:
SEVERITY_TYPE_FATAL
SEVERITY_TYPE_CRITICAL
SEVERITY_TYPE_MAJOR
SEVERITY_TYPE_MINOR
SEVERITY_TYPE_WARNING
SEVERITY_TYPE_INFOpublic String getMessageDetails()
getMessageDetails in interface NotificationEventpublic void setMessageDetails(String messageDetails)
setMessageDetails in interface NotificationEventmessageDetails - the details about a notification eventpublic int getOperationalState()
getOperationalState in interface NotificationEventpublic String getOpStateString(int opState)
NotificationEventgetOpStateString in interface NotificationEventopState - the codepublic void setOperationalState(int operationalState)
setOperationalState in interface NotificationEventoperationalState - the operational state:
OPERATIONAL_STATE_UNKNOWN
OPERATIONAL_STATE_STARTING
OPERATIONAL_STATE_SUSPENDING
OPERATIONAL_STATE_SUSPENDED
OPERATIONAL_STATE_STOPPING
OPERATIONAL_STATE_STOPPED
OPERATIONAL_STATE_RUNNINGpublic int getObservationalState()
getObservationalState in interface NotificationEventpublic String getObStateString(int obState)
NotificationEventgetObStateString in interface NotificationEventobState - the codepublic void setObservationalState(int observationalState)
setObservationalState in interface NotificationEventobservationalState - the observational state:
OBSERVATIONAL_STATE_UNOBSERVED
OBSERVATIONAL_STATE_OBSERVED
OBSERVATIONAL_STATE_RESOLVEDpublic boolean getListenersNotified()
getListenersNotified in interface NotificationEventtrue if all the listeners have been notified and
false if they may have not been notifiedpublic void setListenersNotified(boolean listenersNotified)
setListenersNotified in interface NotificationEventlistenersNotified - true if all the listeners have
been notified and false if they may have not been notifiedpublic String getMessageCode()
getMessageCode in interface NotificationEventpublic void setMessageCode(String messageCode)
setMessageCode in interface NotificationEventmessageCode - the message codepublic String[] getMessageCodeArgs()
getMessageCodeArgs in interface NotificationEventpublic void setMessageCodeArgs(String[] messageCodeArgs)
setMessageCodeArgs in interface NotificationEventmessageCodeArgs - the arguments to the message template specified
by the message code. These strings will not be internationalized.public boolean equals(Object o)
public int hashCode()
public String toString()
public String createQuery(String notificationType, String environmentName, String logicalHostName, String serverType, String serverName, String componentType, String componentProjectPathName, String componentName, Integer observationalState)
createQuery in interface NotificationEventnotificationType - the type of notification to query forenvironmentName - the domainHostName to retrieve
notifications for. Pass null
if this may be any value.logicalHostName - the logicalHostName to retrieve
nofitications for. Pass null
if this may be any value.serverType - the type of server to retrieve
notifications for. Pass null
if this may be any value.serverName - the type of server type to retrieve
notifications for. Pass null
if this may be any value.componentType - the componentType to retrieve
nofitications for. Pass null
if this may be any value.componentProjectPathName - the full project path name. the full path
name of the project in which the
component is in. Note the names of the
project and its sub-projects, if any, are
separated by '/'.componentName - the componentName to retrieve
nofitications for. Pass null
if this may be any value.observationalState - the acknowledged state to retrieve
nofitications for. Pass null
if this may be any value.public String createQuery2(String notificationType, String deploymentName, String environmentName, String logicalHostName, String serverType, String serverName, String componentType, String componentProjectPathName, String componentName, Integer observationalState, String dateFrom, String dateTo, Integer severity, Integer operationalState, String messageDetail)
createQuery2 in interface NotificationEventnotificationType - the type of notification to query fordeploymentName - the deploymentName to retrieve
notifications for. Pass null
if this may be any value.environmentName - the environmentName to retrieve
notifications for. Pass null
if this may be any value.logicalHostName - the logicalHostName to retrieve
nofitications for. Pass null
if this may be any value.serverType - the type of server to retrieve
notifications for. Pass null
if this may be any value.serverName - the type of server type to retrieve
notifications for. Pass null
if this may be any value.componentType - the componentType to retrieve
nofitications for. Pass null
if this may be any value.componentProjectPathName - the full project path name. the full path
name of the project in which the
component is in. Note the names of the
project and its sub-projects, if any, are
separated by '/'.componentName - the componentName to retrieve
nofitications for. Pass null
if this may be any value.observationalState - the acknowledged state to retrieve
nofitications for. Pass null
if this may be any value.dateFrom - include events starting from this datedateTo - include events ending with this dateseverity - severity - CRITICAL, MAJOR, MINOR, WARN, INFOoperationalState - status - UNKNOWN, STOPPED, RUNNINGmessageDetail - the devil is in the detailspublic String createQuery2(String notificationType, String environmentName, String logicalHostName, String serverType, String serverName, String componentType, String componentProjectPathName, String componentName, Integer observationalState, String dateFrom, String dateTo, Integer severity, Integer operationalState, String messageDetail)
createQuery2 in interface NotificationEventnotificationType - the type of notification to query forenvironmentName - the domainHostName to retrieve
notifications for. Pass null
if this may be any value.logicalHostName - the logicalHostName to retrieve
nofitications for. Pass null
if this may be any value.serverType - the type of server to retrieve
notifications for. Pass null
if this may be any value.serverName - the type of server type to retrieve
notifications for. Pass null
if this may be any value.componentType - the componentType to retrieve
nofitications for. Pass null
if this may be any value.componentProjectPathName - the full project path name. the full path
name of the project in which the
component is in. Note the names of the
project and its sub-projects, if any, are
separated by '/'.componentName - the componentName to retrieve
nofitications for. Pass null
if this may be any value.observationalState - the acknowledged state to retrieve
nofitications for. Pass null
if this may be any value.dateFrom - include events starting from this datedateTo - include events ending with this dateseverity - severity - CRITICAL, MAJOR, MINOR, WARN, INFOoperationalState - status - UNKNOWN, STOPPED, RUNNINGmessageDetail - the devil is in the detailsCopyright © 2011-2016 OpenESB Community. All Rights Reserved.