Package org.rioproject.monitor

Examples of org.rioproject.monitor.ProvisionMonitorEvent


        RedeploymentTask task = new RedeploymentTask(this, sElem, instance, clean, sticky, listener);
        addTask(task);
        TaskTimer.getInstance().schedule(task, delay);
        Date redeployDate = new Date(System.currentTimeMillis() + delay);
        Object[] parms = new Object[]{redeployDate, clean, sticky, listener};
        ProvisionMonitorEvent event = new ProvisionMonitorEvent(serviceProxy,
                                                                opString.getName(),
                                                                sElem,
                                                                instance,
                                                                parms);
        eventProcessor.processEvent(event);
View Full Code Here


            eventConsumer.register(item);
    }

    private class BedListener implements RemoteServiceEventListener {
        public void notify(RemoteServiceEvent event) {
            ProvisionMonitorEvent pme = (ProvisionMonitorEvent)event;
            if(pme.getAction().equals(ProvisionMonitorEvent.Action.SERVICE_PROVISIONED)) {
                if(pme.getServiceElement().getName().equals("Beds")) {
                    ServiceBeanInstance instance = pme.getServiceBeanInstance();
                    try {
                        Bed bed = (Bed)instance.getService();
                        bedPanel.addBed(bed);
                        bedPanel.revalidate();
                        bedAssignmentCheckingPool.submit(new BedPendingAssignment(bed));
View Full Code Here

TOP

Related Classes of org.rioproject.monitor.ProvisionMonitorEvent

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.