Static Public Member Functions

cern.cmw.mom.pubsub.PubSubFactory Class Reference

List of all members.

Static Public Member Functions

static Publisher publisher () throws MOMException
static Publisher publisher (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws MOMException
static Subscriber subscriber () throws MOMException
static Subscriber subscriber (String username, String password, String brokerList, Boolean loadBalancing, Boolean sequential, Boolean selectorAtBroker) throws MOMException

Detailed Description

Public class. Factory class for creating Publisher or Subscriber instances.

Version:
1.0 23 Jan 2001
Author:
Controls Middleware Project
See also:
Subscriber
Publisher

Member Function Documentation

static Publisher cern.cmw.mom.pubsub.PubSubFactory.publisher (  )  throws MOMException [static]

Create a new Publisher instance.

Returns:
the Publisher instance.
Exceptions:
MOMException if the system fails to instantiate the Publisher due to some internal error.
static Publisher cern.cmw.mom.pubsub.PubSubFactory.publisher ( String  username,
String  password,
String  brokerList,
Boolean  loadBalancing,
Boolean  sequential,
Boolean  selectorAtBroker 
) throws MOMException [static]

Create a new Publisher instance using default properties.

Parameters:
username the user name. This may be null.
password the password. This may be null.
brokerList the coma separated broker URLs list (in the form [protocol://]hostname[:port]). This may be null.
loadBalancing if true, indicates that the client is willing to have a connect request re-directed to another broker within the broker list. This may be null.
sequential if true, the broker list will be scanned sequentially. This may be null.
selectorAtBroker if true, selectors will be evaluated on the broker side. This may be null.
Returns:
the Publisher instance.
Exceptions:
MOMException if the system fails to instantiate the Publisher due to some internal error.
static Subscriber cern.cmw.mom.pubsub.PubSubFactory.subscriber (  )  throws MOMException [static]

Create a new Subscriber instance using default properties.

Returns:
the Subscriber instance.
Exceptions:
MOMException if the system fails to instantiate a Subscriber due to some internal error.
static Subscriber cern.cmw.mom.pubsub.PubSubFactory.subscriber ( String  username,
String  password,
String  brokerList,
Boolean  loadBalancing,
Boolean  sequential,
Boolean  selectorAtBroker 
) throws MOMException [static]

Create a new Subscriber instance.

Parameters:
username the user name. This may be null.
password the password. This may be null.
brokerList the coma separated broker URLs list (in the form [protocol://]hostname[:port]). This may be null.
loadBalancing if true, indicates that the client is willing to have a connect request re-directed to another broker within a cluster. This may be null.
sequential if true, the broker list will be scanned sequentially. This may be null.
selectorAtBroker if true, selectors will be evaluated on the broker side. This may be null.
Returns:
the Subscriber instance.
Exceptions:
MOMException if the system fails to instantiate a Subscriber due to some internal error.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties