public class MultipointDiscoveryAgent extends Object implements DiscoveryAgent, ServerService, SelfManaging
| Constructor and Description |
|---|
MultipointDiscoveryAgent() |
MultipointDiscoveryAgent(boolean debug,
String name) |
| Modifier and Type | Method and Description |
|---|---|
List<URI> |
getConnectionsQueued() |
long |
getHeartbeats() |
String |
getHeartbeatsLatest() |
long |
getHeartbeatsLatestTime() |
String |
getHost() |
String |
getInitialServers() |
String |
getIP() |
long |
getJoined() |
String |
getName() |
int |
getPort() |
long |
getReconnectDelay() |
long |
getReconnects() |
String |
getReconnectsLatest() |
long |
getReconnectsLatestTime() |
Set<URI> |
getRoots() |
long |
getRuns() |
String |
getRunsLatest() |
long |
getRunsLatestTime() |
List<URI> |
getSessions() |
long |
getSessionsCreated() |
String |
getSessionsCreatedLatest() |
long |
getSessionsCreatedLatestTime() |
URI |
getURI() |
void |
init(Properties props) |
static void |
main(String[] args) |
void |
registerService(URI serviceUri) |
void |
reportFailed(URI serviceUri) |
void |
restart() |
void |
service(InputStream in,
OutputStream out) |
void |
service(Socket socket) |
void |
setDiscoveryListener(DiscoveryListener listener) |
void |
setHost(String host) |
void |
start()
start the discovery agent
|
void |
stop()
stop the channel
|
void |
unregisterService(URI serviceUri) |
public MultipointDiscoveryAgent()
public MultipointDiscoveryAgent(boolean debug,
String name)
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 String getInitialServers()
public 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 ServerServiceServiceException - On errorpublic void restart()
throws ServiceException
ServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceException - On errorpublic 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 URI getURI()
public long getRuns()
public String getRunsLatest()
public long getRunsLatestTime()
public long getHeartbeats()
public String getHeartbeatsLatest()
public long getHeartbeatsLatestTime()
public long getSessionsCreated()
public String getSessionsCreatedLatest()
public long getSessionsCreatedLatestTime()
public long getReconnects()
public String getReconnectsLatest()
public long getReconnectsLatestTime()
public long getJoined()
public long getReconnectDelay()
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.