Package org.jboss.as.controller

Examples of org.jboss.as.controller.ControlledProcessStateService.addPropertyChangeListener()


            configuration.setSslContext(getAcceptingSSLContext());
            // Create the connection
            final HostControllerConnection connection = new HostControllerConnection(serverProcessName, userName, configuration, executor);
            // Trigger the started notification based on the process state listener
            final ControlledProcessStateService processService = processStateServiceInjectedValue.getValue();
            processService.addPropertyChangeListener(new PropertyChangeListener() {
                @Override
                public void propertyChange(final PropertyChangeEvent evt) {
                    final ControlledProcessState.State current = (ControlledProcessState.State) evt.getNewValue();
                    if(current == ControlledProcessState.State.RUNNING) {
                        // Send the started notification
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.