org.hornetq.api.core
Class DiscoveryGroupConfiguration

java.lang.Object
  extended by org.hornetq.api.core.DiscoveryGroupConfiguration
All Implemented Interfaces:
Serializable

public class DiscoveryGroupConfiguration
extends Object
implements Serializable

This file represents how we are using Discovery.

The discovery configuration could either use plain UDP, or JGroups.
If using UDP, all the UDP properties will be filled and the jgroups properties will be null.
If using JGroups, all the UDP properties will be -1 or null and the jgroups properties will be filled.
If by any reason, on an user misconfiguration both properties are filled, the JGroups takes precedence, that means. if jgroupsFile != null the Grouping method used will be JGroups

Author:
Tim Fox, Clebert Suconic
See Also:
Serialized Form

Constructor Summary
DiscoveryGroupConfiguration(long refreshTimeout, long discoveryInitialWaitTimeout, BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)
           
DiscoveryGroupConfiguration(String name, long refreshTimeout, long discoveryInitialWaitTimeout, BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)
           
 
Method Summary
 boolean equals(Object o)
           
 BroadcastEndpointFactoryConfiguration getBroadcastEndpointFactoryConfiguration()
           
 long getDiscoveryInitialWaitTimeout()
           
 String getName()
           
 long getRefreshTimeout()
           
 int hashCode()
           
 void setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
           
 void setName(String name)
           
 void setRefreshTimeout(long refreshTimeout)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscoveryGroupConfiguration

public DiscoveryGroupConfiguration(String name,
                                   long refreshTimeout,
                                   long discoveryInitialWaitTimeout,
                                   BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)

DiscoveryGroupConfiguration

public DiscoveryGroupConfiguration(long refreshTimeout,
                                   long discoveryInitialWaitTimeout,
                                   BroadcastEndpointFactoryConfiguration endpointFactoryConfiguration)
Method Detail

getName

public String getName()

getRefreshTimeout

public long getRefreshTimeout()

setName

public void setName(String name)
Parameters:
name - the name to set

setRefreshTimeout

public void setRefreshTimeout(long refreshTimeout)
Parameters:
refreshTimeout - the refreshTimeout to set

getDiscoveryInitialWaitTimeout

public long getDiscoveryInitialWaitTimeout()
Returns:
the discoveryInitialWaitTimeout

setDiscoveryInitialWaitTimeout

public void setDiscoveryInitialWaitTimeout(long discoveryInitialWaitTimeout)
Parameters:
discoveryInitialWaitTimeout - the discoveryInitialWaitTimeout to set

getBroadcastEndpointFactoryConfiguration

public BroadcastEndpointFactoryConfiguration getBroadcastEndpointFactoryConfiguration()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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