Package com.volantis.synergetics.descriptorstore

Examples of com.volantis.synergetics.descriptorstore.Parameters


     * Internal method for processing a single request.
     *
     * @param agentRequest The request to process.
     */
    private void processRequest(AgentRequest agentRequest) {
        Parameters inputParameters = descriptorStore.createParameters();
        ParameterNames outputParameters = descriptorStore.createParameterNames();

        final Request request = agentRequest.getRequest();
        final com.volantis.map.common.param.Parameters inputParams =
            request.getInputParams();
        final Iterator requestInputParams = inputParams.getParameterNames();
        try {
            while (requestInputParams.hasNext()) {
                String paramName = (String) requestInputParams.next();
                inputParameters.setParameterValue(
                    paramName, inputParams.getParameterValue(paramName));
            }
        } catch (MissingParameterException e) {
            // this is not expected as we iterate through the parameter names
            throw new UndeclaredThrowableException(e);
View Full Code Here


                                               final Parameters inputParameters,
                                               final ParameterNames outputParameterNames,
                                               final long initialTimeToLive) {
        final ResourceDescriptorStub descriptor = new ResourceDescriptorStub(
            inputParameters.getParameterValue("external-id"), resourceType);
        final Parameters outputParameters = descriptor.getOutputParameters();
        for (Iterator iter = outputParameterNames.iterator(); iter.hasNext(); ) {
            final String name = (String) iter.next();
            outputParameters.setParameterValue(name, "value-of-" + name);
        }
        outputParameters.setParameterValue(
            "an-extra-output-parameter", "value-of-the-extra-param");
        descriptor.setTimeToLive(initialTimeToLive);
        return descriptor;
    }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.descriptorstore.Parameters

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.