org.openeai.jms.producer
Class ProducerId


java.lang.Object

  |

  +--org.openeai.OpenEaiObject

        |

        +--org.openeai.jms.producer.ProducerId


public class ProducerId
extends OpenEaiObject

This object is used by the PointToPoint and PubSub producers to uniquely identify each producer. The ProducerId is populated with a GenericUuid which requests a UUID remotely or generates one locally if a remote request cannot be successfully generated. This occurs when the producer is first initialized.

Version:
3.0 beta2 - 28 January 2003
Author:
Tod Jackson (tod@openeai.org), Steve Wheat (steve@openeai.org)
See Also:
GenericUuid

Field Summary
 
Fields inherited from class org.openeai.OpenEaiObject
logger
 
Constructor Summary
ProducerId()
          Constructor
ProducerId(java.lang.String url)
          This constructor automatically attempts to generate a GenericUuid using the URL passed in and populates itself with that UUID.
 
Method Summary
 java.lang.String getId()
          Returns the UUID associated to this object.
 java.lang.String getUrl()
          Returns the URL from which the UUID will be requested.
 void setId(java.lang.String id)
          Sets the UUID associated to this object.
 void setUrl(java.lang.String url)
          Sets the URL from which the UUID will be requested.
 
Methods inherited from class org.openeai.OpenEaiObject
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerId


public ProducerId()
Constructor


ProducerId


public ProducerId(java.lang.String url)
           throws java.io.IOException
This constructor automatically attempts to generate a GenericUuid using the URL passed in and populates itself with that UUID.

Method Detail

getUrl


public java.lang.String getUrl()
Returns the URL from which the UUID will be requested.

Returns:
String

setUrl


public void setUrl(java.lang.String url)
Sets the URL from which the UUID will be requested.

Returns:
String

getId


public java.lang.String getId()
Returns the UUID associated to this object.

Returns:
String the UUID that was generated for this object.

setId


public void setId(java.lang.String id)
Sets the UUID associated to this object.



Copyright © 2002, OpenEAI Software Foundation