|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.discovery.base.BaseDiscovery
public abstract class BaseDiscovery
This class is inherited by all discovery Implementations It provides common discovery operations.
| Field Summary | |
|---|---|
protected static int |
DISCOVERY_TTL_DEFAULT
This attribute is injected TimeToLive value. |
protected int |
greetingAckTimeOut
This attribute is injected The time period in miliseconds to listen for greeting responses. |
protected boolean |
isDiscoveryMaster
This attribute is injected set to true if enroller and discoveryClient started. |
protected org.ow2.jonas.jmx.JmxService |
jmxService
This attribute is injected |
protected int |
ttl
This attribute is injected TimeToLive default value |
protected ArrayList |
urlsList
Array list of urls retrived from jmxService. |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
BaseDiscovery()
|
|
| Method Summary | |
|---|---|
abstract int |
getGreetingTimeout()
|
abstract org.ow2.jonas.jmx.JmxService |
getJmxService()
|
abstract String |
getListeningIp()
|
abstract int |
getListeningPort()
|
abstract int |
getTtl()
|
abstract ArrayList |
getUrlsList()
|
abstract boolean |
isDiscoveryMaster()
|
abstract void |
setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
Sets the jmxService. |
abstract void |
setListeningIp(String listeningIp)
|
abstract void |
setListeningPort(int listeningPort)
|
abstract void |
setMaster(boolean isDiscoveryMaster)
|
abstract void |
setTtl(int ttl)
|
abstract void |
setUrlsList(ArrayList urlsList)
|
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
checkRequirements, convertToList, doInit, doStart, doStop, getDomainName, getJonasServerName, getName, getServerProperties, init, isOSGi, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.jonas.service.Service |
|---|
checkRequirements, getName, init, isStarted, setName, start, stop |
| Methods inherited from interface org.ow2.jonas.discovery.base.DiscoveryServiceImplMBean |
|---|
getDiscoveryProtocolVersion, getDiscoveryTtl, getDomainName, getIsDiscoveryMaster, getJonasName, getMbeanServer, getMulticastAddress, getMulticastPort, getMyOn, getServerId, getUrls, setDomainName, setGreetingTimeout, setJonasName, setMbeanServer, setMyOn, setServerId, setUrls, start, startDiscoveryMaster, stop |
| Field Detail |
|---|
protected int greetingAckTimeOut
protected static final int DISCOVERY_TTL_DEFAULT
protected int ttl
protected boolean isDiscoveryMaster
protected org.ow2.jonas.jmx.JmxService jmxService
protected ArrayList urlsList
| Constructor Detail |
|---|
public BaseDiscovery()
| Method Detail |
|---|
public abstract int getGreetingTimeout()
getGreetingTimeout in interface DiscoveryServiceImplMBeanpublic abstract boolean isDiscoveryMaster()
isDiscoveryMaster in interface DiscoveryServiceImplMBeanpublic abstract String getListeningIp()
getListeningIp in interface DiscoveryServiceImplMBeanpublic abstract void setListeningIp(String listeningIp)
setListeningIp in interface DiscoveryServiceImplMBeanlisteningIp - the listeningIp to setpublic abstract int getListeningPort()
getListeningPort in interface DiscoveryServiceImplMBeanpublic abstract void setListeningPort(int listeningPort)
setListeningPort in interface DiscoveryServiceImplMBeanlisteningPort - the listeningPort to setpublic abstract int getTtl()
getTtl in interface DiscoveryServiceImplMBeanpublic abstract void setTtl(int ttl)
setTtl in interface DiscoveryServiceImplMBeanttl - the ttl to setpublic abstract org.ow2.jonas.jmx.JmxService getJmxService()
public abstract void setJmxService(org.ow2.jonas.jmx.JmxService jmxService)
jmxService - the jmxService to set. Used by the injectorpublic abstract ArrayList getUrlsList()
getUrlsList in interface DiscoveryServiceImplMBeanpublic abstract void setUrlsList(ArrayList urlsList)
setUrlsList in interface DiscoveryServiceImplMBeanurlsList - the urlsList to setpublic abstract void setMaster(boolean isDiscoveryMaster)
setMaster in interface DiscoveryServiceImplMBeanisDiscoveryMaster - the isDiscoveryMaster to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||