|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.server.discovery.MultipointDiscoveryAgent
public class MultipointDiscoveryAgent
Constructor Summary | |
---|---|
MultipointDiscoveryAgent()
|
Method Summary | |
---|---|
String |
getHost()
|
String |
getInitialServers()
|
String |
getIP()
|
String |
getName()
|
int |
getPort()
|
void |
init(Properties props)
|
static void |
main(String[] args)
|
void |
registerService(URI serviceUri)
register a service |
void |
reportFailed(URI serviceUri)
A process actively using a service may see it go down before the DiscoveryAgent notices the service's failure. |
void |
service(InputStream in,
OutputStream out)
|
void |
service(Socket socket)
|
void |
setDiscoveryListener(DiscoveryListener listener)
Sets the discovery listener |
void |
setHost(String host)
|
void |
start()
start the discovery agent |
void |
stop()
stop the channel |
void |
unregisterService(URI serviceUri)
register a service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipointDiscoveryAgent()
Method Detail |
---|
public void init(Properties props)
init
in interface Service
public String getIP()
getIP
in interface ServerService
public String getName()
getName
in interface ServerService
public int getPort()
getPort
in interface ServerService
public String getInitialServers()
public void setDiscoveryListener(DiscoveryListener listener)
DiscoveryAgent
setDiscoveryListener
in interface DiscoveryAgent
public void registerService(URI serviceUri) throws IOException
DiscoveryAgent
registerService
in interface DiscoveryAgent
IOException
public void unregisterService(URI serviceUri) throws IOException
DiscoveryAgent
unregisterService
in interface DiscoveryAgent
IOException
public void reportFailed(URI serviceUri)
DiscoveryAgent
reportFailed
in interface DiscoveryAgent
public static void main(String[] args) throws Exception
Exception
public void start() throws ServiceException
start
in interface ServerService
Exception
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
Exception
ServiceException
public void service(InputStream in, OutputStream out) throws ServiceException, IOException
service
in interface ServerService
ServiceException
IOException
public void service(Socket socket) throws ServiceException, IOException
service
in interface ServerService
ServiceException
IOException
public String getHost()
public void setHost(String host)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |