Package com.tibco.tibjms.admin
Class DestinationBridgeInfo
- java.lang.Object
-
- com.tibco.tibjms.admin.DestinationBridgeInfo
-
public class DestinationBridgeInfo extends java.lang.ObjectThis class replaces the old BridgeInfo class to represent bridges between destinations. DestinationBridgeInfo objects can be created and then passed to a TibjmsAdmin object to create or update the bridge on the EMS server. DestinationBridgeInfo objects represent a bridge between a single source and a single target unlike the old BridgeInfo objects which had one source but could have multuple targets. To modify a DestinationBridgeInfo object it is necessary to delete the old bridge and create a new one.- Since:
- EMS 4.2
-
-
Constructor Summary
Constructors Constructor Description DestinationBridgeInfo(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName, java.lang.String selector)Create a DestinationBridgeInfo object that will bridge between two destinations with an optional selector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSelector()Get the selector used by this bridge.java.lang.StringgetSourceName()Get the name of the destination that is the source for this bridge.intgetSourceType()Get the type of the destination that is the source for this bridge.java.lang.StringgetTargetName()Get the name of the destination that is the target for this bridge.intgetTargetType()Get the type of the destination that is the target for this bridge.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DestinationBridgeInfo
public DestinationBridgeInfo(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName, java.lang.String selector)Create a DestinationBridgeInfo object that will bridge between two destinations with an optional selector. The bridge is not created on the server until the object is passed to TibjmsAdmin.createDestinationBridge().- Parameters:
sourceType- the type of the source destination, eitherDestinationInfo.QUEUE_TYPEorDestinationInfo.TOPIC_TYPEsourceName- the name of the source destinationtargetType- the type of the target destination eitherDestinationInfo.QUEUE_TYPEorDestinationInfo.TOPIC_TYPEtargetName- the name of the target destinationselector- the selector (can be null)
-
-
Method Detail
-
getSourceType
public int getSourceType()
Get the type of the destination that is the source for this bridge.- Returns:
- the source's type, either
DestinationInfo.QUEUE_TYPEorDestinationInfo.TOPIC_TYPE
-
getSourceName
public java.lang.String getSourceName()
Get the name of the destination that is the source for this bridge.- Returns:
- the source's name
-
getTargetType
public int getTargetType()
Get the type of the destination that is the target for this bridge.- Returns:
- the target's type, either
DestinationInfo.QUEUE_TYPEorDestinationInfo.TOPIC_TYPE
-
getTargetName
public java.lang.String getTargetName()
Get the name of the destination that is the target for this bridge.- Returns:
- the target's name
-
getSelector
public java.lang.String getSelector()
Get the selector used by this bridge. Only messages that pass this selector will be bridged from the source destination to the target destination.- Returns:
- the selector or null if one is not set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-