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 classJmsDestination.DestinationTypeThe 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.DestinationTypegetDestinationType()Gets the destination type.StringgetJmsDestination()Gets the JMS destination.StringgetMessageFormat()Gets the message format.StringgetName()Gets the destination name.booleanisFirstOccurrenceOnly()Checks if is first occurrence only.booleanisSendAsObjectMessageEnabled()Checks if is send as object message enabled.voidsetDestinationType(JmsDestination.DestinationType destinationType)Sets the destination type.voidsetFirstOccurrenceOnly(Boolean firstOccurrenceOnly)Sets the first occurrence only.voidsetName(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:DestinationGets the destination name.- Specified by:
getNamein 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:DestinationChecks if is first occurrence only.- Specified by:
isFirstOccurrenceOnlyin 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
-
-