|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas.discovery.internal.enroller.Enroller
public class Enroller
In charge of waiting for starting or stopping notifications and notifies the appropriate listeners.
| Constructor Summary | |
|---|---|
Enroller(int listeningPort,
String listeningIp)
|
|
| Method Summary | |
|---|---|
String |
getListeningIp()
|
int |
getListeningPort()
gets the port on which the Enroller is listening for a discovery request. |
int |
getTimeToLive()
gets the time to live of the multicast socket. |
void |
postDeregister()
|
void |
postRegister(Boolean arg0)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer mbeanServer,
ObjectName on)
|
void |
setListeningIp(String listeningIp)
sets the IP address the listening manager uses. |
void |
setListeningPort(int listeningPort)
sets the port on which the Enroller is listening. |
void |
setTimeToLive(int ttl)
sets the time to live value to ttl. |
void |
start()
starts the listening task on the listeningPort and listening Ip defined with the parameters. |
void |
stop()
stops the listening task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Enroller(int listeningPort,
String listeningIp)
| Method Detail |
|---|
public ObjectName preRegister(MBeanServer mbeanServer,
ObjectName on)
throws Exception
preRegister in interface MBeanRegistrationExceptionMBeanRegistration.preRegister(javax.management.MBeanServer,
javax.management.ObjectName)public void postRegister(Boolean arg0)
postRegister in interface MBeanRegistrationMBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionMBeanRegistration.preDeregister()public void postDeregister()
postDeregister in interface MBeanRegistrationMBeanRegistration.postDeregister()public int getListeningPort()
EnrollerMBean
getListeningPort in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#getListeningPort()public void setListeningPort(int listeningPort)
EnrollerMBean
setListeningPort in interface EnrollerMBeanlisteningPort - port on which the Enroller is listening.org.objectweb.jonas.server.discovery.EnrollerMBean#setListeningPort(int)public String getListeningIp()
getListeningIp in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#getListeningIp()public void setListeningIp(String listeningIp)
EnrollerMBean
setListeningIp in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#setListeningIP(java.lang.String)public void setTimeToLive(int ttl)
EnrollerMBean
setTimeToLive in interface EnrollerMBeanttl - time to liveorg.objectweb.jonas.server.discovery.EnrollerMBean#setTimeToLive(int)public int getTimeToLive()
EnrollerMBean
getTimeToLive in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#getTimeToLive()public void start()
EnrollerMBean
start in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#start()public void stop()
EnrollerMBean
stop in interface EnrollerMBeanorg.objectweb.jonas.server.discovery.EnrollerMBean#start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||