Package org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows

Examples of org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.EndpointDescriptionsDocument$EndpointDescriptions$Factory


     * @param manEvt
     * @return Source EPR
     */
    private EndpointReferenceType parseSourceEpr(ManagementEventTypeImpl manEvt)
    {
        ComponentType sourceComponent = manEvt.getSourceComponent();
        ComponentAddressType sourceCompAddr = sourceComponent.getComponentAddressArray(0);
        EndpointReferenceType sourceEpr =
                (EndpointReferenceType) XmlBeanUtils.getChildElements(sourceCompAddr)[0];
        return sourceEpr;
    }
View Full Code Here


            operationalStatusDocument.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
            resourceProperty.add(operationalStatusDocument);
            resourceProperty.addChangeListener(operationalStatusCapability);//add for management events

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CORRELATABLEPROPERTIES);
            CorrelatablePropertiesDocument correlatablePropertiesDocument = CorrelatablePropertiesDocument.Factory.newInstance();
            CorrelatablePropertiesType correlatablePropertiesType = correlatablePropertiesDocument.addNewCorrelatableProperties();
            correlatablePropertiesType.setDialect(MuwsConstants.PBM_DIALECT);
            correlatablePropertiesType.setNegativeAssertionPossible(false);
            MatchDocument matchDocument = MatchDocument.Factory.newInstance();
            matchDocument.setMatch(WeatherstationPropertyQNames.FCCID);
            XmlBeanUtils.addChildElement(correlatablePropertiesType, matchDocument);
View Full Code Here

    {
        XmlObject[] capabilityElems = m_resource.getResourceProperty( ManageabilityCharacteristicsCapability.PROP_NAME_MANAGEABILITY_CAPABILITY );
        assertContainsURI( capabilityElems, CorrelatablePropertiesCapability.URI );
        XmlObject correlatablePropertiesPropElem = getSingleProperty( m_resource, CorrelatablePropertiesCapability.PROP_NAME_CORRELATABLE_PROPERTIES );
        assertTrue( correlatablePropertiesPropElem instanceof CorrelatablePropertiesType );
        CorrelatablePropertiesType correlatableProperties = (CorrelatablePropertiesType)correlatablePropertiesPropElem;
        assertEquals( "Incorrect dialect", MuwsConstants.PBM_DIALECT, correlatableProperties.getDialect() );
        XmlObject[] matchElems = XmlBeanUtils.getChildElements( correlatableProperties, new QName( MuwsConstants.NSURI_PBM, "Match", MuwsConstants.NSPREFIX_PBM ) );
        assertEquals( "muws-p1-xs:CorrelatableProperties element does not contain exactly one pbm:Match element.", 1, matchElems.length );
        assertTrue( matchElems[0] instanceof XmlQName );
        XmlQName match = (XmlQName) matchElems[0];
        assertEquals( WeatherstationPropertyQNames.FCCID, match.getQNameValue() );
View Full Code Here

            resourceProperty.add(operationalStatusDocument);
            resourceProperty.addChangeListener(operationalStatusCapability);//add for management events

            resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.CORRELATABLEPROPERTIES);
            CorrelatablePropertiesDocument correlatablePropertiesDocument = CorrelatablePropertiesDocument.Factory.newInstance();
            CorrelatablePropertiesType correlatablePropertiesType = correlatablePropertiesDocument.addNewCorrelatableProperties();
            correlatablePropertiesType.setDialect(MuwsConstants.PBM_DIALECT);
            correlatablePropertiesType.setNegativeAssertionPossible(false);
            MatchDocument matchDocument = MatchDocument.Factory.newInstance();
            matchDocument.setMatch(WeatherstationPropertyQNames.FCCID);
            XmlBeanUtils.addChildElement(correlatablePropertiesType, matchDocument);
            resourceProperty.add(correlatablePropertiesDocument);
            resourceProperty.addChangeListener(correlatablePropertiesCapability);//add for management events
View Full Code Here

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

TOP

Related Classes of org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.EndpointDescriptionsDocument$EndpointDescriptions$Factory

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.