|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.discovery.internal.client.DiscoveryClient
public class DiscoveryClient
The DiscoveryClient is in charge of sending discovery messages on the LAN to discover resources. It waits during a Timeout period of time for the discovery answers (discovery messages containing a response).
Constructor Summary | |
---|---|
DiscoveryClient(int listeningPort,
String listeningIP,
int sourcePort)
Creates a new Discovery client. |
Method Summary | |
---|---|
String |
getListeningIp()
|
int |
getListeningPort()
gets the port on which the Enroller is listening for a discovery request. |
String |
getSourceIp()
Gets the source port |
int |
getSourcePort()
Gets the source port that the discovery response has to use. |
int |
getTimeout()
gets the duration time the DiscoveryClient has to wait for discovery answers. |
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 ipAddress)
sets the IP address the listening manager uses. |
void |
setListeningPort(int listeningPort)
sets the port on which the Enroller is listening. |
void |
setSourceIp(String sourceIp)
Sets the source Ip |
void |
setSourcePort(int sourcePort)
Sets the source port |
void |
setTimeout(int timeout)
Sets the timeout value the DiscoveryClient for receiving discovery answers. |
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 DiscoveryClient(int listeningPort, String listeningIP, int sourcePort)
listeningPort
- listeningIP
- sourcePort
- Method Detail |
---|
public int getTimeout()
DiscoveryClientMBean
getTimeout
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#getTimeOut()
public void setTimeout(int timeout)
DiscoveryClientMBean
setTimeout
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#setTimeout(int)
public int getListeningPort()
EnrollerMBean
getListeningPort
in interface EnrollerMBean
org.objectweb.jonas.server.discovery.EnrollerMBean#getListeningPort()
public void setListeningPort(int listeningPort)
EnrollerMBean
setListeningPort
in interface EnrollerMBean
listeningPort
- port on which the Enroller is listening.org.objectweb.jonas.server.discovery.EnrollerMBean#setListeningPort(int)
public String getListeningIp()
getListeningIp
in interface EnrollerMBean
org.objectweb.jonas.server.discovery.EnrollerMBean#getListeningIp()
public void setListeningIp(String ipAddress)
EnrollerMBean
setListeningIp
in interface EnrollerMBean
org.objectweb.jonas.server.discovery.EnrollerMBean#setListeningIP(java.lang.String)
public int getSourcePort()
DiscoveryClientMBean
getSourcePort
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#getSourcePort()
public void setSourcePort(int sourcePort)
DiscoveryClientMBean
setSourcePort
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#setSourcePort(int)
public String getSourceIp()
DiscoveryClientMBean
getSourceIp
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#getSourceIp()
public int getTimeToLive()
EnrollerMBean
getTimeToLive
in interface EnrollerMBean
org.objectweb.jonas.server.discovery.EnrollerMBean#getTimeToLive()
public void setSourceIp(String sourceIp)
DiscoveryClientMBean
setSourceIp
in interface DiscoveryClientMBean
org.objectweb.jonas.server.discovery.DiscoveryClientMBean#setSourceIp(java.lang.String)
public void setTimeToLive(int ttl)
EnrollerMBean
setTimeToLive
in interface EnrollerMBean
ttl
- time to liveorg.objectweb.jonas.server.discovery.EnrollerMBean#setTimeToLive(int)
public void start()
EnrollerMBean
start
in interface EnrollerMBean
org.objectweb.jonas.server.discovery.EnrollerMBean#start()
public void stop()
EnrollerMBean
stop
in interface EnrollerMBean
public ObjectName preRegister(MBeanServer mbeanServer, ObjectName on)
preRegister
in interface MBeanRegistration
MBeanRegistration.preRegister(javax.management.MBeanServer,
javax.management.ObjectName)
public void postRegister(Boolean arg0)
postRegister
in interface MBeanRegistration
MBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
MBeanRegistration.preDeregister()
public void postDeregister()
postDeregister
in interface MBeanRegistration
MBeanRegistration.postDeregister()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |