Class JmsDestination
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.jms.JmsDestination
-
- All Implemented Interfaces:
Serializable
,Destination
public class JmsDestination extends 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, String destination)
Instantiates a new JMS destination.JmsDestination(JmsDestination.DestinationType destinationType, 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.String
getJmsDestination()
Gets the JMS destination.String
getMessageFormat()
Gets the message format.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(Boolean firstOccurrenceOnly)
Sets the first occurrence only.void
setName(String destinationName)
Sets the name.
-
-
-
Constructor Detail
-
JmsDestination
public JmsDestination()
Instantiates a new JMS destination.
-
JmsDestination
public JmsDestination(JmsDestination.DestinationType destinationType, String destination)
Instantiates a new JMS destination.- Parameters:
destinationType
- the destination typedestination
- the destination
-
JmsDestination
public JmsDestination(JmsDestination.DestinationType destinationType, 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 String getName()
Description copied from interface:Destination
Gets the destination name.- Specified by:
getName
in interfaceDestination
- Returns:
- the destination name
-
setName
public void setName(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(Boolean firstOccurrenceOnly)
Sets the first occurrence only.- Parameters:
firstOccurrenceOnly
- the new first occurrence only
-
getJmsDestination
public 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 String getMessageFormat()
Gets the message format.- Returns:
- the message format
-
-