public class LocalBrokerConnectionParameters extends java.lang.Object implements BrokerConnectionParameters
Use the class in the following way:
BrokerConnectionParameters bcp = new LocalBrokerConnectionParameters("MYBROKER"); BrokerProxy.getInstance(bcp);
You might want to consider using the
BrokerProxy.getLocalInstance
method, which
provides a way of defining the LocalBrokerConnectionParameters object
and connecting to the broker in a single method call.
class
com.ibm.broker.config.proxy.LocalBrokerConnectionParameters
implements
com.ibm.broker.config.proxy.BrokerConnectionParameters
|
|
Responsibilities | Represents a set of connection parameters to a locally defined broker. |
Collaborators | IntegrationNodeConnectionParameters |
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ 51619.19 2009-03-05 HDMPL v7 Release
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
copyright
IBM Copyright
|
protected static java.lang.String |
sccsid
Version information
|
Constructor and Description |
---|
LocalBrokerConnectionParameters(java.lang.String brokerName)
Constructs a new instance that refers to connection properties
to the locally defined broker with the supplied name.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.broker.config.proxy.CommsMessageSerializer |
getProtocol()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
com.ibm.broker.config.proxy.Receiver |
getReceiver()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
com.ibm.broker.config.proxy.Sender |
getSender()
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
java.lang.String |
getSessionIDString()
Returns a String representation of the Session ID for this
connection.
|
java.lang.String |
getUserID()
Returns the userid that will be used to authorize this
application with the broker.
|
java.lang.String |
toString()
For diagnostic information, this method displays the current connection
parameters.
|
void |
validate(BrokerProxy proxy)
This method is required by the IBM Integration API (CMP) and
should not be called by user applications.
|
protected static final java.lang.String copyright
protected static final java.lang.String sccsid
public LocalBrokerConnectionParameters(java.lang.String brokerName)
brokerName
- Name of the locally defined brokerpublic com.ibm.broker.config.proxy.Sender getSender() throws ConfigManagerProxyLoggedException
getSender
in interface BrokerConnectionParameters
ConfigManagerProxyLoggedException
- if the security exit could not be instantiatedpublic com.ibm.broker.config.proxy.Receiver getReceiver() throws ConfigManagerProxyLoggedException
getReceiver
in interface BrokerConnectionParameters
ConfigManagerProxyLoggedException
- if the security exit could not be instantiatedpublic com.ibm.broker.config.proxy.CommsMessageSerializer getProtocol()
getProtocol
in interface BrokerConnectionParameters
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUserID()
getUserID
in interface BrokerConnectionParameters
public java.lang.String getSessionIDString()
public void validate(BrokerProxy proxy) throws ConfigManagerProxyLoggedException
BrokerConnectionParameters
validate
in interface BrokerConnectionParameters
ConfigManagerProxyLoggedException