Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument$QueryResourcePropertiesResponse


    return jobResources.getIndividualDiskSpace();
  }

  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateIndividualPhysicalMemory(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if (!jobResources.isSetIndividualPhysicalMemory()) {
      jobResources.addNewIndividualPhysicalMemory();
    }
    return jobResources.getIndividualPhysicalMemory();
  }
View Full Code Here


    return descr.getJobIdentification();
  }

  public static OperatingSystemType getOrCreateOperatingSystem(JobDefinitionType value)
  {
    ResourcesType jobResources = getOrCreateResources(value);       
    if(!jobResources.isSetOperatingSystem()) {
      jobResources.addNewOperatingSystem();
    }
    return jobResources.getOperatingSystem();
  }
View Full Code Here

        QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties = doc.addNewQueryResourceProperties();
        QueryExpressionType queryExpressionType = queryResourceProperties.addNewQueryExpression();
        queryExpressionType.setDialect( dialect.toString() );
        XmlBeanUtils.setValue( queryExpressionType, xPathExpr );

        QueryResourcePropertiesResponseDocument queryResourcePropertiesResponseDocument = provider.queryResourceProperties( doc );
        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourcePropertiesResponse =
                queryResourcePropertiesResponseDocument.getQueryResourcePropertiesResponse();
        return queryResourcePropertiesResponse;
    }
View Full Code Here

        {
            LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
                    requestDoc.toString() ) );
        }

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprType = requestDoc.getQueryResourceProperties().getQueryExpression();
        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprType );
        refreshAllProperties();
        Object result = null;
        try
        {
            result = QUERY_ENGINE.executeQuery( queryExpr,
                    getProperties() );
        }
        catch ( UnknownQueryExpressionDialectException uqede )
        {
            throw new UnknownQueryExpressionDialectFaultException(NAMESPACE_SET, uqede.getDialect() );
        }
        catch ( QueryEvaluationErrorException qeee )
        {
            throw new QueryEvaluationErrorFaultException(NAMESPACE_SET, qeee.getMessage() );
        }
        catch ( InvalidQueryExpressionException iqee )
        {
            throw new InvalidQueryExpressionFaultException(NAMESPACE_SET, queryExpr );
        }

        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
                responseDoc.getQueryResourcePropertiesResponse();
        if ( result.getClass().isArray() )
        {
            for ( int i = 0; i < Array.getLength( result ); i++ )
            {
                Object resultItem = Array.get( result, i );
View Full Code Here

        return responseDoc;
    }

    private QueryResourcePropertiesResponseDocument createResponseDocument()
    {
        QueryResourcePropertiesResponseDocument responseDoc =
                QueryResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewQueryResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

        {
            LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
                    requestDoc.toString() ) );
        }

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprElem =
                requestDoc.getQueryResourceProperties().getQueryExpression();
        SOAPEnvelope envelope;
        try
        {
            envelope = getResourceContext().getSOAPMessage().getSOAPPart().getEnvelope();
        }
        catch ( SOAPException soape )
        {
            throw new JAXRPCException( MSG.getMessage( Keys.FAILED_TO_EXTRACT_SOAP_ENV, soape ) );
        }

        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprElem );

        refreshAllProperties();
        Object result = null;
        try
        {
            result = QUERY_ENGINE.executeQuery( queryExpr,
                    getProperties(),
                    envelope );
        }
        catch ( UnknownQueryExpressionDialectException uqede )
        {
            throw new UnknownQueryExpressionDialectFaultException( uqede.getDialect() );
        }
        catch ( QueryEvaluationErrorException qeee )
        {
            throw new QueryEvaluationErrorFaultException( qeee.getMessage() );
        }
        catch ( InvalidQueryExpressionException iqee )
        {
            throw new InvalidQueryExpressionFaultException( queryExpr );
        }

        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
                responseDoc.getQueryResourcePropertiesResponse();
        if ( result.getClass().isArray() )
        {
            for ( int i = 0; i < Array.getLength( result ); i++ )
            {
                Object resultItem = Array.get( result, i );
View Full Code Here

        return responseDoc;
    }

    private QueryResourcePropertiesResponseDocument createResponseDocument()
    {
        QueryResourcePropertiesResponseDocument responseDoc =
                QueryResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewQueryResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

        QueryResourcePropertiesDocument doc = QueryResourcePropertiesDocument.Factory.newInstance();
        QueryResourcePropertiesDocument.QueryResourceProperties queryResourceProperties = doc.addNewQueryResourceProperties();
        QueryExpressionType queryExpressionType = queryResourceProperties.addNewQueryExpression();
        queryExpressionType.setDialect( dialect.toString() );
        XmlBeanUtils.setValue( queryExpressionType, xPathExpr );
        QueryResourcePropertiesResponseDocument queryResourcePropertiesResponseDocument = provider.queryResourceProperties( doc );
        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse queryResourcePropertiesResponse =
                queryResourcePropertiesResponseDocument.getQueryResourcePropertiesResponse();
        return queryResourcePropertiesResponse;
    }
View Full Code Here

        {
            LOG.debug( MSG.getMessage( Keys.QUERY_RP_REQ,
                    requestDoc.toString() ) );
        }

        QueryResourcePropertiesResponseDocument responseDoc = createResponseDocument();
        QueryExpressionType queryExprElem =
                requestDoc.getQueryResourceProperties().getQueryExpression();
        SOAPEnvelope envelope;
        try
        {
            envelope = getResourceContext().getSOAPMessage().getSOAPPart().getEnvelope();
        }
        catch ( SOAPException soape )
        {
            throw new JAXRPCException( MSG.getMessage( Keys.FAILED_TO_EXTRACT_SOAP_ENV, soape ) );
        }

        XmlBeansQueryExpression queryExpr = new XmlBeansQueryExpression( queryExprElem );

        refreshAllProperties();
        Object result = null;
        try
        {
            result = QUERY_ENGINE.executeQuery( queryExpr,
                    getProperties(),
                    envelope );
        }
        catch ( UnknownQueryExpressionDialectException uqede )
        {
            throw new UnknownQueryExpressionDialectFaultException(NAMESPACE_SET, uqede.getDialect() );
        }
        catch ( QueryEvaluationErrorException qeee )
        {
            throw new QueryEvaluationErrorFaultException(NAMESPACE_SET, qeee.getMessage() );
        }
        catch ( InvalidQueryExpressionException iqee )
        {
            throw new InvalidQueryExpressionFaultException(NAMESPACE_SET, queryExpr );
        }

        QueryResourcePropertiesResponseDocument.QueryResourcePropertiesResponse responseElem =
                responseDoc.getQueryResourcePropertiesResponse();
        if ( result.getClass().isArray() )
        {
            for ( int i = 0; i < Array.getLength( result ); i++ )
            {
                Object resultItem = Array.get( result, i );
View Full Code Here

        return responseDoc;
    }

    private QueryResourcePropertiesResponseDocument createResponseDocument()
    {
        QueryResourcePropertiesResponseDocument responseDoc =
                QueryResourcePropertiesResponseDocument.Factory.newInstance();
        responseDoc.addNewQueryResourcePropertiesResponse();
        return responseDoc;
    }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument$QueryResourcePropertiesResponse

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.