use of org.apache.openejb.monitoring.Managed in project tomee by apache.
the class MultipointDiscoveryAgent method start.
/**
* start the discovery agent
*
* @throws ServiceException On error
*/
@Override
@Managed
public void start() throws ServiceException {
try {
if (running.compareAndSet(false, true)) {
log.info("MultipointDiscoveryAgent Starting");
multipointServer = new MultipointServer(host, discoveryHost, port, tracker, name, debug, roots, reconnectDelay).start();
log.info("MultipointDiscoveryAgent Started");
this.port = multipointServer.getPort();
}
} catch (Exception e) {
throw new ServiceException(port + "", e);
}
}
Aggregations