Search in sources :

Example 1 with Managed

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);
    }
}
Also used : ServiceException(org.apache.openejb.server.ServiceException) IOException(java.io.IOException) ServiceException(org.apache.openejb.server.ServiceException) Managed(org.apache.openejb.monitoring.Managed)

Aggregations

IOException (java.io.IOException)1 Managed (org.apache.openejb.monitoring.Managed)1 ServiceException (org.apache.openejb.server.ServiceException)1