org.hornetq.api.core.management
Interface ClusterConnectionControl

All Superinterfaces:
HornetQComponentControl

public interface ClusterConnectionControl
extends HornetQComponentControl

A ClusterConnectionControl is used to manage a cluster connection.

Author:
Jeff Mesnil

Method Summary
 String getAddress()
          Returns the address used by this cluster connection.
 String getDiscoveryGroupName()
          Returns the name of the discovery group used by this cluster connection.
 int getMaxHops()
          Returns the maximum number of hops used by this cluster connection.
 String getName()
          Returns the configuration name of this cluster connection.
 String getNodeID()
          Returns the node ID used by this cluster connection.
 Map<String,String> getNodes()
          Returns a map of the nodes connected to this cluster connection.
 long getRetryInterval()
          Returns the connection retry interval used by this cluster connection.
 Object[] getStaticConnectorNamePairs()
          Returns the pairs of live-backup connectors used by this cluster connection.
 String getStaticConnectorNamePairsAsJSON()
          Returns the pairs of live-backup connectors used by this cluster connection using JSON serialization.
 boolean isDuplicateDetection()
          Return whether this cluster connection use duplicate detection.
 boolean isForwardWhenNoConsumers()
          Return whether this cluster connection forward messages when it has no local consumers.
 
Methods inherited from interface org.hornetq.api.core.management.HornetQComponentControl
isStarted, start, stop
 

Method Detail

getName

String getName()
Returns the configuration name of this cluster connection.


getAddress

String getAddress()
Returns the address used by this cluster connection.


getNodeID

String getNodeID()
Returns the node ID used by this cluster connection.


isDuplicateDetection

boolean isDuplicateDetection()
Return whether this cluster connection use duplicate detection.


isForwardWhenNoConsumers

boolean isForwardWhenNoConsumers()
Return whether this cluster connection forward messages when it has no local consumers.


getMaxHops

int getMaxHops()
Returns the maximum number of hops used by this cluster connection.


getStaticConnectorNamePairs

Object[] getStaticConnectorNamePairs()
Returns the pairs of live-backup connectors used by this cluster connection.


getStaticConnectorNamePairsAsJSON

String getStaticConnectorNamePairsAsJSON()
                                         throws Exception
Returns the pairs of live-backup connectors used by this cluster connection using JSON serialization.

Throws:
Exception

getDiscoveryGroupName

String getDiscoveryGroupName()
Returns the name of the discovery group used by this cluster connection.


getRetryInterval

long getRetryInterval()
Returns the connection retry interval used by this cluster connection.


getNodes

Map<String,String> getNodes()
                            throws Exception
Returns a map of the nodes connected to this cluster connection.
keys are node IDs, values are the addresses used to connect to the nodes.

Throws:
Exception


Copyright © 2009 Red Hat Inc. All Rights Reserved.