Package org.rioproject.monitor.service.channel

Examples of org.rioproject.monitor.service.channel.ServiceChannel


    void setServiceElement(final ServiceElement newElem) throws Exception {
        boolean update = (this.svcElement != null);
        ServiceElement preElem = svcElement;
        this.svcElement = newElem;

        ServiceChannel channel = ServiceChannel.getInstance();
        channel.unsubscribe(localServiceChannelClient);
        for (AssociationDescriptor aDesc : svcElement.getAssociationDescriptors()) {
            if (aDesc.getAssociationType() == AssociationType.COLOCATED) {
                channel.subscribe(localServiceChannelClient, aDesc, ServiceChannelEvent.Type.PROVISIONED);
            }
        }

        ServiceBeanConfig sc = svcElement.getServiceBeanConfig();
        Map<String, Object> configParameters = sc.getConfigurationParameters();
View Full Code Here


                                                                    ProvisionMonitorEvent.Action.SERVICE_PROVISIONED,
                                                                    svcElement.getOperationalStringName(),
                                                                    svcElement,
                                                                    instance);
            processEvent(event);
            ServiceChannel channel = ServiceChannel.getInstance();
            channel.broadcast(new ServiceChannelEvent(this, svcElement, ServiceChannelEvent.Type.PROVISIONED));
        }
View Full Code Here

                                                                            ProvisionMonitorEvent.Action.SERVICE_FAILED,
                                                                            svcElement.getOperationalStringName(),
                                                                            svcElement,
                                                                            instance);
                    processEvent(event);
                    ServiceChannel channel = ServiceChannel.getInstance();
                    channel.broadcast(new ServiceChannelEvent(this, svcElement, ServiceChannelEvent.Type.FAILED));
                }
                mgrLogger.trace("Redeployment ProvisionRequest for [{}] obtained: {}",
                                 LoggingUtil.getLoggingName(svcElement),
                                 (provRequest==null?"no":"yes"));
                if(provRequest == null) {
View Full Code Here

                            /* Ignore */
                        }
                    }
                    mgr.importServiceBeanInstance(instance);

                    ServiceChannel channel = ServiceChannel.getInstance();
                    channel.broadcast(new ServiceChannelEvent(this, sElem, ServiceChannelEvent.Type.PROVISIONED));
                    break;

                case REDEPLOY_REQUEST:
                    opMgr = opStringMangerController.getOpStringManager(pme.getOperationalStringName());
                    if(opMgr == null) {
View Full Code Here

TOP

Related Classes of org.rioproject.monitor.service.channel.ServiceChannel

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.