Examples of ParameterNames


Examples of com.volantis.synergetics.descriptorstore.ParameterNames

     *
     * @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);
        }

        Iterator requestOutputParams = request.getOutputParams().iterator();
        while (requestOutputParams.hasNext()) {
            String paramName = (String) requestOutputParams.next();
            outputParameters.setName(paramName);
        }

        // TODO later If there's an appropriate plugin, allow it to do pre-processing of the parameters.
        // plugin.preProcess(inputParameters, outputParameters, device);

View Full Code Here

Examples of hudson.plugins.im.config.ParameterNames

    return this.defaultTargets;
  }
 
  @Override
    public ParameterNames getParamNames() {
        return new ParameterNames() {
            @Override
            protected String getPrefix() {
                return PREFIX;
            }
        };
View Full Code Here

Examples of org.glassfish.gmbal.ParameterNames

      return rtc.toManagedEntity(result);
        }
    }
      };

      final ParameterNames pna = mom.getAnnotation( m.element(),
                ParameterNames.class);
      mm.info( mom.registrationFineDebug(), "pna", pna);

      if (pna != null && pna.value().length != atcs.size()) {
        throw Exceptions.self.parameterNamesLengthBad();
      }

      final MBeanParameterInfo[] paramInfo =
        new OpenMBeanParameterInfoSupport[atcs.size()];
      int ctr = 0;
      for (TypeConverter tc : atcs) {
        String name = "";
        try {
          name = (pna == null) ? "arg" + ctr : pna.value()[ctr];
          paramInfo[ctr] = new OpenMBeanParameterInfoSupport(
            name, Exceptions.self.noDescriptionAvailable(),
            tc.getManagedType());
          ctr++;
        } catch (IllegalArgumentException ex) {
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.