Package org.glassfish.tyrus.ext.monitoring.jmx

Examples of org.glassfish.tyrus.ext.monitoring.jmx.EndpointClassNamePathPair


@ServerEndpoint("/monitoredEndpoint1")
public class MonitoredEndpoint1 {

    @OnOpen
    public void onOpen(Session session) throws IOException {
        if (isEndpointRegistered("/mbean-test", new EndpointClassNamePathPair("/monitoredEndpoint1", MonitoredEndpoint1.class.getName()))
                && isEndpointRegistered("/mbean-test", new EndpointClassNamePathPair("/monitoredEndpoint2", MonitoredEndpoint2.class.getName()))) {
            session.getBasicRemote().sendText("OK");
            return;
        }
        session.getBasicRemote().sendText("NOK");
    }
View Full Code Here

TOP

Related Classes of org.glassfish.tyrus.ext.monitoring.jmx.EndpointClassNamePathPair

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.