|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.joram.client.jms.admin.AdministeredObject
org.objectweb.joram.client.jms.Destination
org.objectweb.joram.client.jms.admin.ClusterDestination
public class ClusterDestination
A base class for clustered destinations.
| Field Summary | |
|---|---|
protected java.util.Hashtable |
cluster
|
| Fields inherited from class org.objectweb.joram.client.jms.Destination |
|---|
adminName, agentId, BRIDGE_QUEUE, BRIDGE_TOPIC, CLUSTER_QUEUE, COLLECTOR_QUEUE, COLLECTOR_TOPIC, DEAD_MQUEUE, JMXBeanName, MAIL_QUEUE, MAIL_TOPIC, QUEUE, QUEUE_TYPE, SCHEDULER_QUEUE, TEMPORARY, TOPIC, TOPIC_TYPE, type |
| Constructor Summary | |
|---|---|
ClusterDestination()
Constructs an empty clustered destination. |
|
ClusterDestination(java.util.Hashtable cluster)
Constructs a cluster destination. |
|
| Method Summary | |
|---|---|
void |
addDestination(Destination dest)
Adds a destination to the cluster. |
void |
addDestination(java.lang.String location,
Destination dest)
Adds a destination to the cluster with the specified location key. |
java.util.Hashtable |
code()
Codes a ClusterDestination as a Hashtable for
travelling through the SOAP protocol. |
void |
decode(java.util.Hashtable h)
|
void |
fromReference(javax.naming.Reference ref)
Restores the administered object from a naming reference. |
java.util.Hashtable |
getCluster()
|
protected Destination |
getDestination()
return the appropriate destination of cluster |
java.lang.String |
getName()
Returns the name of the destination. |
void |
setCluster(java.util.Hashtable cluster)
|
void |
setFreeReading()
Administration method setting free reading access to this destination. |
void |
setFreeWriting()
Administration method setting free writing access to this destination. |
void |
setReader(User user)
Administration method setting a given user as a reader on this destination. |
void |
setWriter(User user)
Administration method setting a given user as a writer on this destination. |
void |
toReference(javax.naming.Reference ref)
Sets the naming reference of an administered object. |
| Methods inherited from class org.objectweb.joram.client.jms.Destination |
|---|
addReader, addWriter, check, checkId, delete, doCreate, doRequest, equals, getAdminName, getDMQ, getDMQId, getJMXBeanName, getReaderList, getReaders, getStatistic, getStatistics, getType, getWrapper, getWriterList, getWriters, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, newInstance, registerMBean, removeReader, removeWriter, setDMQ, setDMQId, setFreelyReadable, setFreelyWriteable, setWrapper, toXml, unregisterMBean, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter |
| Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject |
|---|
getReference |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable cluster
| Constructor Detail |
|---|
public ClusterDestination()
public ClusterDestination(java.util.Hashtable cluster)
cluster - Hashtable of the cluster agent destination.| Method Detail |
|---|
public void setCluster(java.util.Hashtable cluster)
public java.util.Hashtable getCluster()
public void addDestination(Destination dest)
dest - the Destination
public void addDestination(java.lang.String location,
Destination dest)
location key.
By default, the location value is set to the String server#i, where i is
the server id. of the destination.
Be careful, the object should be rebind after modification.
location - the location keydest - the Destinationprotected Destination getDestination()
public java.lang.String getName()
getName in interface DestinationMBeangetName in class Destination
public void setReader(User user)
throws java.net.ConnectException,
AdminException
DestinationThe request fails if this destination is deleted server side.
setReader in class Destinationuser - User to be set as a reader.
java.net.ConnectException - If the administration connection is closed or broken.
AdminException - If the request fails.
public void setWriter(User user)
throws java.net.ConnectException,
AdminException
DestinationThe request fails if this destination is deleted server side.
setWriter in class Destinationuser - User to be set as a writer.
java.net.ConnectException - If the administration connection is closed or broken.
AdminException - If the request fails.
public void setFreeReading()
throws java.net.ConnectException,
AdminException
DestinationThe request fails if this destination is deleted server side.
setFreeReading in class Destinationjava.net.ConnectException - If the administration connection is closed or broken.
AdminException - If the request fails.
public void setFreeWriting()
throws java.net.ConnectException,
AdminException
DestinationThe request fails if this destination is deleted server side.
setFreeWriting in class Destinationjava.net.ConnectException - If the administration connection is closed or broken.
AdminException - If the request fails.
public void toReference(javax.naming.Reference ref)
throws javax.naming.NamingException
toReference in class Destinationjavax.naming.NamingException
public void fromReference(javax.naming.Reference ref)
throws javax.naming.NamingException
fromReference in class Destinationjavax.naming.NamingExceptionpublic java.util.Hashtable code()
ClusterDestination as a Hashtable for
travelling through the SOAP protocol.
code in interface fr.dyade.aaa.jndi2.soap.SoapObjectItfcode in class Destinationpublic void decode(java.util.Hashtable h)
decode in interface fr.dyade.aaa.jndi2.soap.SoapObjectItfdecode in class Destination
|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||