org.ow2.jonas.discovery.jgroups.utils
Class DiscoveryUtils

java.lang.Object
  extended by org.ow2.jonas.discovery.jgroups.utils.DiscoveryUtils

public class DiscoveryUtils
extends Object


Field Summary
 String commProtoName
          Current name of stack communication protocol.
 String configurationFile
          The JGroups stack configuration file.
 String groupName
           
 
Constructor Summary
DiscoveryUtils()
           
 
Method Summary
 org.ow2.util.cluster.jgroups.IChannel getComChannel()
           
 String getCommProtoName()
           
 HashMap<?,?> getCommProtoParams()
           
 String getConfigurationFile()
           
 String getDiscIp()
          Gets IP address of discovery.
 Integer getDiscPort()
           
 String getDiscType()
           
 String getDomainName()
           
 Integer getGreetingAckTimeOut()
           
 String getGroupName()
           
 String getJonasName()
           
 org.jgroups.stack.IpAddress getLocalAddress()
           
 org.objectweb.util.monolog.api.Logger getLogger()
           
 String getServerId()
           
 org.jgroups.conf.ProtocolStackConfigurator getStackConfigurator()
           
 Integer getTtl()
           
 String[] getUrls()
           
 boolean isMulticast()
           
 boolean isMulticastDiscovery()
          Checks if discovery is multicast.
 void setComChannel(org.ow2.util.cluster.jgroups.IChannel comChannel)
           
 void setCommProtoName(String commProtoName)
           
 void setCommProtoParams(HashMap<?,?> commProtoParams)
           
 void setConfigurationFile(String conFile)
           
 void setDiscType(String discType)
           
 void setDomainName(String domainName)
           
 void setGreetingAckTimeOut(Integer greetingAckTimeOut)
           
 void setGroupName(String groupName)
           
 void setJonasName(String jonasName)
           
 void setLogger(org.objectweb.util.monolog.api.Logger logger)
           
 void setServerId(String serverId)
           
 void setStackConfigurator(org.jgroups.conf.ProtocolStackConfigurator stackconfigurator)
           
 void setTtl(Integer ttl)
           
 void setUrls(String[] urls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commProtoName

public String commProtoName
Current name of stack communication protocol.


configurationFile

public String configurationFile
The JGroups stack configuration file.


groupName

public String groupName
Constructor Detail

DiscoveryUtils

public DiscoveryUtils()
Method Detail

getDiscType

public String getDiscType()
Returns:
the discType

setDiscType

public void setDiscType(String discType)
Parameters:
discType - the discType to set

getStackConfigurator

public org.jgroups.conf.ProtocolStackConfigurator getStackConfigurator()
Returns:
the stack configurator.

setStackConfigurator

public void setStackConfigurator(org.jgroups.conf.ProtocolStackConfigurator stackconfigurator)
Parameters:
stackconfigurator - the stackconfigurator to set

getJonasName

public String getJonasName()
Returns:
the jonasName

setJonasName

public void setJonasName(String jonasName)
Parameters:
jonasName - the jonasName to set

getDomainName

public String getDomainName()
Returns:
the domainName

setDomainName

public void setDomainName(String domainName)
Parameters:
domainName - the domainName to set

getServerId

public String getServerId()
Returns:
the serverId

setServerId

public void setServerId(String serverId)
Parameters:
serverId - the serverId to set

getDiscPort

public Integer getDiscPort()
Returns:
the discPort

getLogger

public org.objectweb.util.monolog.api.Logger getLogger()
Returns:
the logger

setLogger

public void setLogger(org.objectweb.util.monolog.api.Logger logger)
Parameters:
logger - the logger to set

getGreetingAckTimeOut

public Integer getGreetingAckTimeOut()
Returns:
the greetingAckTimeOut

setGreetingAckTimeOut

public void setGreetingAckTimeOut(Integer greetingAckTimeOut)
Parameters:
greetingAckTimeOut - the greetingAckTimeOut to set

getComChannel

public org.ow2.util.cluster.jgroups.IChannel getComChannel()
Returns:
the comChannel

setComChannel

public void setComChannel(org.ow2.util.cluster.jgroups.IChannel comChannel)
Parameters:
comChannel - the comChannel to set

getCommProtoName

public String getCommProtoName()
Returns:
the commProtoName

setCommProtoName

public void setCommProtoName(String commProtoName)
Parameters:
commProtoName - the commProtoName to set

getCommProtoParams

public HashMap<?,?> getCommProtoParams()
Returns:
the commProtoParams

setCommProtoParams

public void setCommProtoParams(HashMap<?,?> commProtoParams)
Parameters:
commProtoParams - the commProtoParams to set

getUrls

public String[] getUrls()
Returns:
the urls

setUrls

public void setUrls(String[] urls)
Parameters:
urls - the urls to set

getLocalAddress

public org.jgroups.stack.IpAddress getLocalAddress()
Returns:
the localAddress

getTtl

public Integer getTtl()
Returns:
the ttl

setTtl

public void setTtl(Integer ttl)
Parameters:
ttl - the ttl to set

isMulticast

public boolean isMulticast()

isMulticastDiscovery

public boolean isMulticastDiscovery()
Checks if discovery is multicast.

Returns:
the isMulticastDiscovery

getDiscIp

public String getDiscIp()
Gets IP address of discovery.

Returns:
Discovery IP

getConfigurationFile

public String getConfigurationFile()
Returns:
the conFile.

setConfigurationFile

public void setConfigurationFile(String conFile)
Parameters:
conFile - the conFile to set.

getGroupName

public String getGroupName()
Returns:
the groupName.

setGroupName

public void setGroupName(String groupName)
Parameters:
groupName - the groupName to set.


Copyright © 2010 OW2 Consortium. All Rights Reserved.