Class JmsDestination
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.jms.JmsDestination
-
- All Implemented Interfaces:
java.io.Serializable
,Destination
public class JmsDestination extends java.lang.Object implements Destination
The Class JmsDestination.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JmsDestination.DestinationType
The Enumeration DestinationType.
-
Constructor Summary
Constructors Constructor Description JmsDestination()
Instantiates a new JMS destination.JmsDestination(JmsDestination.DestinationType destinationType, java.lang.String destination)
Instantiates a new JMS destination.JmsDestination(JmsDestination.DestinationType destinationType, java.lang.String destination, boolean firstOccurrenceOnly, boolean sendAsObjectMessage)
Instantiates a new JMS destination.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsDestination.DestinationType
getDestinationType()
Gets the destination type.java.lang.String
getJmsDestination()
Gets the JMS destination.java.lang.String
getMessageFormat()
Gets the message format.java.lang.String
getName()
Gets the destination name.boolean
isFirstOccurrenceOnly()
Checks if is first occurrence only.boolean
isSendAsObjectMessageEnabled()
Checks if is send as object message enabled.void
setDestinationType(JmsDestination.DestinationType destinationType)
Sets the destination type.void
setFirstOccurrenceOnly(java.lang.Boolean firstOccurrenceOnly)
Sets the first occurrence only.void
setName(java.lang.String destinationName)
Sets the name.
-
-
-
Constructor Detail
-
JmsDestination
public JmsDestination()
Instantiates a new JMS destination.
-
JmsDestination
public JmsDestination(JmsDestination.DestinationType destinationType, java.lang.String destination)
Instantiates a new JMS destination.- Parameters:
destinationType
- the destination typedestination
- the destination
-
JmsDestination
public JmsDestination(JmsDestination.DestinationType destinationType, java.lang.String destination, boolean firstOccurrenceOnly, boolean sendAsObjectMessage)
Instantiates a new JMS destination.- Parameters:
destinationType
- the destination typedestination
- the destinationfirstOccurrenceOnly
- the first occurrence onlysendAsObjectMessage
- the send as object message
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Destination
Gets the destination name.- Specified by:
getName
in interfaceDestination
- Returns:
- the destination name
-
setName
public void setName(java.lang.String destinationName)
Sets the name.- Parameters:
destinationName
- the new name
-
isFirstOccurrenceOnly
public boolean isFirstOccurrenceOnly()
Description copied from interface:Destination
Checks if is first occurrence only.- Specified by:
isFirstOccurrenceOnly
in interfaceDestination
- Returns:
- true, if is first occurrence only
-
setFirstOccurrenceOnly
public void setFirstOccurrenceOnly(java.lang.Boolean firstOccurrenceOnly)
Sets the first occurrence only.- Parameters:
firstOccurrenceOnly
- the new first occurrence only
-
getJmsDestination
public java.lang.String getJmsDestination()
Gets the JMS destination.- Returns:
- the JMS destination
-
isSendAsObjectMessageEnabled
public boolean isSendAsObjectMessageEnabled()
Checks if is send as object message enabled.- Returns:
- true, if is send as object message enabled
-
getDestinationType
public JmsDestination.DestinationType getDestinationType()
Gets the destination type.- Returns:
- the destination type
-
setDestinationType
public void setDestinationType(JmsDestination.DestinationType destinationType)
Sets the destination type.- Parameters:
destinationType
- the new destination type
-
getMessageFormat
public java.lang.String getMessageFormat()
Gets the message format.- Returns:
- the message format
-
-