public class MulticastDiscoveryAgent extends Object implements DiscoveryAgent, ServerService, SelfManaging
| Constructor and Description |
|---|
MulticastDiscoveryAgent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getIP() |
String |
getName() |
int |
getPort() |
int |
getTimeToLive() |
void |
init(Properties props) |
boolean |
isLoopbackMode() |
static void |
main(String[] args) |
void |
registerService(URI serviceUri) |
void |
reportFailed(URI serviceUri) |
void |
service(InputStream in,
OutputStream out) |
void |
service(Socket socket) |
void |
setDiscoveryListener(DiscoveryListener listener) |
void |
setHost(String host) |
void |
setLoopbackMode(boolean loopbackMode) |
void |
setTimeToLive(int timeToLive) |
void |
start()
start the discovery agent
|
void |
stop()
stop the channel
|
void |
unregisterService(URI serviceUri) |
public void init(Properties props)
init in interface org.apache.openejb.spi.Servicepublic String getIP()
getIP in interface ServerServicepublic String getName()
getName in interface ServerServicepublic int getPort()
getPort in interface ServerServicepublic void setDiscoveryListener(DiscoveryListener listener)
setDiscoveryListener in interface DiscoveryAgentpublic void registerService(URI serviceUri) throws IOException
registerService in interface DiscoveryAgentIOExceptionpublic void unregisterService(URI serviceUri) throws IOException
unregisterService in interface DiscoveryAgentIOExceptionpublic void reportFailed(URI serviceUri)
reportFailed in interface DiscoveryAgentpublic void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic void service(InputStream in, OutputStream out) throws ServiceException, IOException
service in interface ServerServiceServiceExceptionIOExceptionpublic void service(Socket socket) throws ServiceException, IOException
service in interface ServerServiceServiceExceptionIOExceptionpublic String getHost()
public void setHost(String host)
public boolean isLoopbackMode()
public void setLoopbackMode(boolean loopbackMode)
public int getTimeToLive()
public void setTimeToLive(int timeToLive)
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.