Examples of ManagementEventType


Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

    private XmlObject buildManagementEvent(XmlObject event)
    {
        Situation situation = new SituationImpl(new CategoryImpl(MuwsConstants.SITUATION_OTHER));
        XmlBeansManagementEvent xme = new XmlBeansManagementEvent(situation);
        ManagementEventDocument mgmtEventDoc = (ManagementEventDocument) ((XmlObjectWrapper) xme).getXmlObject();
        ManagementEventType mgmtEvent = mgmtEventDoc.getManagementEvent();
        XmlBeanUtils.addChildElement(mgmtEvent, event);
        return mgmtEventDoc;
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

                    mgmtEventElems.length );
            mgmtEventElem = mgmtEventElems[0];
            assertTrue( "The SOAP Body did not contain an unwrapped ManagementEvent.",
                    mgmtEventElem instanceof ManagementEventType );
        }
        ManagementEventType mgmtEvent = (ManagementEventType) mgmtEventElem;
        return mgmtEvent;
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

        PortListen notifListener = new PortListen( NOTIF_LISTENER_PORT, NOTIF_LISTENER_TIMEOUT );

        m_service.getCurrentTemperature();

        ManagementEventType mgmtEvent = waitForManagementEvent( notifListener );
        if ( DEBUG ) { System.out.println( "Received ManagementEvent:\n" + mgmtEvent.xmlText( new XmlOptions().setSaveOuter().setSavePrettyPrint() ) ); }

        XmlObject[] requestProcessingNotifElems = XmlBeanUtils.getChildElements(mgmtEvent, new QName(MowsConstants.NSURI_MOWS_SCHEMA, "RequestProcessingNotification", MowsConstants.NSPREFIX_MOWS_SCHEMA));
        assertEquals( 1, requestProcessingNotifElems.length );
        assertTrue( requestProcessingNotifElems[0] instanceof RequestProcessingNotificationDocument.RequestProcessingNotification );
        RequestProcessingNotificationDocument.RequestProcessingNotification requestProcessingNotif = (RequestProcessingNotificationDocument.RequestProcessingNotification) requestProcessingNotifElems[0];
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

        TotalCodeModuleSizeDocument totalCodeModuleSizeDocument = TotalCodeModuleSizeDocument.Factory.newInstance();
        totalCodeModuleSizeDocument.setTotalCodeModuleSize( 1111 );
        setSingleProperty( m_resource, totalCodeModuleSizeDocument );

        ManagementEventType mgmtEvent = waitForManagementEvent( notifListener );

        XmlObject propChangedEvent = XmlBeanUtils.getChildElements(mgmtEvent, new QName(ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "ResourcePropertyValueChangeNotification"))[0];
        assertNotNull("ManagementEvent does not contain a ResourcePropertyValueChangeNotification", propChangedEvent);
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

        TotalCodeModuleSizeDocument totalCodeModuleSizeDocument = TotalCodeModuleSizeDocument.Factory.newInstance();
        totalCodeModuleSizeDocument.setTotalCodeModuleSize( 9999 );
        setSingleProperty( m_resource, totalCodeModuleSizeDocument );

        ManagementEventType mgmtEvent = waitForManagementEvent( notifListener );

        XmlObject propChangedEvent = XmlBeanUtils.getChildElements(mgmtEvent, new QName(ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "ResourcePropertyValueChangeNotification"))[0];
        assertNotNull("ManagementEvent does not contain a ResourcePropertyValueChangeNotification", propChangedEvent);
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

        // change status to Unavailable
        operationalStatusDoc.setOperationalStatus( OperationalStatusDocument.OperationalStatus.UNAVAILABLE );
        setSingleProperty( m_resource, operationalStatusDoc );

        // make sure we receive a propChanged mgmtEvent
        ManagementEventType mgmtEvent = waitForManagementEvent( notifListener );
        XmlObject[] propChangedEvents = XmlBeanUtils.getChildElements(mgmtEvent, new QName(ResourcePropertiesConstants.NSURI_WSRP_SCHEMA, "ResourcePropertyValueChangeNotification"));
        assertEquals( "ManagementEvent does not contain a single ResourcePropertyValueChangeNotification", 1, propChangedEvents.length );
        assertTrue( propChangedEvents[0] instanceof ResourcePropertyValueChangeNotificationType );
        ResourcePropertyValueChangeNotificationType propChangedEvent = (ResourcePropertyValueChangeNotificationType)propChangedEvents[0];
        assertFalse( propChangedEvent.getNewValue().toString().equals( propChangedEvent.getOldValue().toString() ) );
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

                    mgmtEventElems.length );
            mgmtEventElem = mgmtEventElems[0];
            assertTrue( "The SOAP Body did not contain an unwrapped ManagementEvent.",
                    mgmtEventElem instanceof ManagementEventType );
        }
        ManagementEventType mgmtEvent = (ManagementEventType) mgmtEventElem;
        return mgmtEvent;
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManagementEventType

        PortListen notifListener = new PortListen( NOTIF_LISTENER_PORT, NOTIF_LISTENER_TIMEOUT );

        m_service.getCurrentTemperature();

        ManagementEventType mgmtEvent = waitForManagementEvent( notifListener );
        if ( DEBUG ) { System.out.println( "Received ManagementEvent:\n" + mgmtEvent.xmlText( new XmlOptions().setSaveOuter().setSavePrettyPrint() ) ); }

        XmlObject[] requestProcessingNotifElems = XmlBeanUtils.getChildElements(mgmtEvent, new QName(MowsConstants.NSURI_MOWS_SCHEMA, "RequestProcessingNotification", MowsConstants.NSPREFIX_MOWS_SCHEMA));
        assertEquals( 1, requestProcessingNotifElems.length );
        assertTrue( requestProcessingNotifElems[0] instanceof RequestProcessingNotificationDocument.RequestProcessingNotification );
        RequestProcessingNotificationDocument.RequestProcessingNotification requestProcessingNotif = (RequestProcessingNotificationDocument.RequestProcessingNotification) requestProcessingNotifElems[0];
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.