Package org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema

Examples of org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema.IntegerMetric


            //Management Characteristics
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.MANAGEABILITYCAPABILITY);
            resourceProperty.addChangeListener(manageabilityCharacteristicsCapability);

            //Identity Capability
            ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //Identification Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IdentificationCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //MUWS2 Metrics Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(org.apache.ws.muws.v1_0.capability.MetricsCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //MOWS Metrics Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //Status Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //Request Processing State Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(RequestProcessingStateCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //Relationship Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(RelationshipsCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            //Correlateable Properties Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(CorrelatablePropertiesCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(ManageabilityReferencesCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            /** Properties **/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
View Full Code Here


            /*===== Capabilities =====*/
            //Management Characteristics
            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.MANAGEABILITYCAPABILITY);

            //muws:Identity Capability
            ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //muws:OperationalStatus Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //muws:Configuration Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //Server Configuration
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerConfiguration");
            resourceProperty.add(manageabilityCapabilityDocument);

            //Server Chassis Configuration
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerChassisConfiguration");
            resourceProperty.add(manageabilityCapabilityDocument);

            //Server Alert Status
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerAlertStatus");
            resourceProperty.add(manageabilityCapabilityDocument);

            /*===== Properties =====*/
            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
View Full Code Here

            /** Capabilities **/
            //Management Characteristics
            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.MANAGEABILITYCAPABILITY);

            //Identity Capability
            ManageabilityCapabilityDocument manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(IdentityCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //MUWS2 Metrics Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(MetricsCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //Blackberry Metrics Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryMetrics");
            resourceProperty.add(manageabilityCapabilityDocument);

            //Configuration
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(ConfigurationCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            //Blackberry Configuration Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability("http://pda.rim/BlackberryConfiguration");
            resourceProperty.add(manageabilityCapabilityDocument);

            //Status Capability
            manageabilityCapabilityDocument = ManageabilityCapabilityDocument.Factory.newInstance();
            manageabilityCapabilityDocument.setManageabilityCapability(OperationalStatusCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);


            /** Topics **/
            //MUWS TopicSpace
View Full Code Here

     */
    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

    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

                    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

        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

            manageabilityCapabilityDocument.setManageabilityCapability(ManageabilityReferencesCapability.URI);
            resourceProperty.add(manageabilityCapabilityDocument);

            /** Properties **/
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
            resourceIdDocument.setResourceId("urn:" + (String) getID());
            resourceProperty.add(resourceIdDocument);
            resourceProperty.addChangeListener(identityCapability);//add for management events

            //current time is done like in Apollo
            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CURRENTTIME);
View Full Code Here

            manageabilityCapabilityDocument.setManageabilityCapability(IpmiserverPropertyQNames.ATTENTIONLEDON.getNamespaceURI() + "/ServerAlertStatus");
            resourceProperty.add(manageabilityCapabilityDocument);

            /*===== Properties =====*/
            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
            resourceIdDocument.setResourceId("urn:" + (String) getID());
            resourceProperty.add(resourceIdDocument);

            // CurrentTime is done like in Apollo
            resourceProperty = resourcePropertySet.get(IpmiserverPropertyQNames.CURRENTTIME);
            CurrentTimeDocument currentTimeDocument = CurrentTimeDocument.Factory.newInstance();
View Full Code Here

            getTopicSpaceSet().addTopicSpace(bbryTopicSpace);
            bbryTopicSpace.addTopic(codeModuleSize);

            /** Properties **/
            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.RESOURCEID);
            ResourceIdDocument resourceIdDocument = ResourceIdDocument.Factory.newInstance();
            resourceIdDocument.setResourceId("urn:" + (String) getID());
            resourceProperty.add(resourceIdDocument);

            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.ALLOCATEDSTORAGE);
            AllocatedStorageDocument allocatedStorageDocument = AllocatedStorageDocument.Factory.newInstance();
            allocatedStorageDocument.setAllocatedStorage(1024);
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x04.muws05.schema.IntegerMetric

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.