Package org.apache.muse.ws.dm.muws.events

Examples of org.apache.muse.ws.dm.muws.events.ManagementEvent


        throws SoapFault
    {
        Resource advertiser = getResource();
       
        WefFactory factory = createWefFactory();
        ManagementEvent event = factory.createEvent();
       
        event.addExtendedElement(payload);

        Component source = factory.createComponent();
        source.setName(WefConstants.SOURCE_COMP_QNAME);
       
        ComponentAddress address = factory.createComponentAddress(sourceEPR);
        source.setAddress(address);
       
        event.setSource(source);
       
        Component reporter = factory.createComponent();
        reporter.setName(WefConstants.REPORTER_COMP_QNAME);
       
        address = factory.createComponentAddress(advertiser.getEndpointReference());
        reporter.setAddress(address);
       
        event.setReporter(reporter);
       
        Situation situation = factory.createSituation();
        situation.setCategoryType(situationCategory);
        event.setSituation(situation);

        NotificationProducer wsn = (NotificationProducer)advertiser.getCapability(WsnConstants.PRODUCER_URI);
        wsn.publish(topicName, event.toXML());
    }
View Full Code Here


        throws SoapFault
    {
        Resource advertiser = getResource();
       
        WefFactory factory = createWefFactory();
        ManagementEvent event = factory.createEvent();
       
        event.addExtendedElement(payload);

        Component source = factory.createComponent();
        source.setName(WefConstants.SOURCE_COMP_QNAME);
       
        ComponentAddress address = factory.createComponentAddress(sourceEPR);
        source.setAddress(address);
       
        event.setSource(source);
       
        Component reporter = factory.createComponent();
        reporter.setName(WefConstants.REPORTER_COMP_QNAME);
       
        address = factory.createComponentAddress(advertiser.getEndpointReference());
        reporter.setAddress(address);
       
        event.setReporter(reporter);
       
        Situation situation = factory.createSituation();
        situation.setCategoryType(situationCategory);
        event.setSituation(situation);

        NotificationProducer wsn = (NotificationProducer)advertiser.getCapability(WsnConstants.PRODUCER_URI);
        wsn.publish(topicName, event.toXML());
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.dm.muws.events.ManagementEvent

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.