org.hornetq.jms.server.recovery
Class XARecoveryConfig

java.lang.Object
  extended by org.hornetq.jms.server.recovery.XARecoveryConfig

public class XARecoveryConfig
extends Object

This represents the configuration of a single connection factory.

Author:
Andy Taylor, Clebert Suconic A wrapper around info needed for the xa recovery resource Date: 3/23/11 Time: 10:15 AM

Constructor Summary
XARecoveryConfig(boolean ha, DiscoveryGroupConfiguration discoveryConfiguration, String username, String password)
           
XARecoveryConfig(boolean ha, TransportConfiguration[] transportConfiguration, String username, String password)
           
 
Method Summary
 ServerLocator createServerLocator()
          Create a serverLocator using the configuration
 boolean equals(Object obj)
           
 DiscoveryGroupConfiguration getDiscoveryConfiguration()
           
 String getPassword()
           
 TransportConfiguration[] getTransportConfig()
           
 String getUsername()
           
 int hashCode()
           
 boolean isHA()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XARecoveryConfig

public XARecoveryConfig(boolean ha,
                        TransportConfiguration[] transportConfiguration,
                        String username,
                        String password)

XARecoveryConfig

public XARecoveryConfig(boolean ha,
                        DiscoveryGroupConfiguration discoveryConfiguration,
                        String username,
                        String password)
Method Detail

isHA

public boolean isHA()

getDiscoveryConfiguration

public DiscoveryGroupConfiguration getDiscoveryConfiguration()

getTransportConfig

public TransportConfiguration[] getTransportConfig()

getUsername

public String getUsername()

getPassword

public String getPassword()

createServerLocator

public ServerLocator createServerLocator()
Create a serverLocator using the configuration

Returns:
locator

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.