Examples of StringParameter


Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super(LINK_STOP_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_STOP));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super(LINK_FORCE_STOP_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_FORCESTOP));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private RestartApplicationRequest() {
      super(LINK_RESTART_APPLICATION);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
          IOpenShiftJsonConstants.VALUE_RESTART));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private ScaleUpRequest() {
      super(LINK_SCALE_UP);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
          IOpenShiftJsonConstants.VALUE_SCALE_UP));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

    private ScaleDownRequest() {
      super(LINK_SCALE_DOWN);
    }

    protected <DTO> DTO execute() throws OpenShiftException {
      return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
          IOpenShiftJsonConstants.VALUE_SCALE_DOWN));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super(LINK_ADD_ALIAS);
    }

    protected <DTO> DTO execute(String alias) throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_ADD_ALIAS),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_ALIAS, alias));
    }
View Full Code Here

Examples of com.openshift.internal.client.httpclient.request.StringParameter

      super(LINK_REMOVE_ALIAS);
    }

    protected <DTO> DTO execute(String alias) throws OpenShiftException {
      return super.execute(
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_REMOVE_ALIAS),
          new StringParameter(IOpenShiftJsonConstants.PROPERTY_ALIAS, alias));
    }
View Full Code Here

Examples of com.sun.slamd.parameter.StringParameter

     *          <CODE>false</CODE> if not.
     */
    public boolean testJobParameters( ParameterList parameters, ArrayList outputMessages )
    {
        // Get all the parameters that we might need to perform the test.
        StringParameter hostParam = parameters.getStringParameter( hostParameter.getName() );
        if ( ( hostParam == null ) || ( !hostParam.hasValue() ) )
        {
            outputMessages.add( "ERROR:  No directory server address was provided." );
            return false;
        }
        String host = hostParam.getStringValue();

        IntegerParameter portParam = parameters.getIntegerParameter( portParameter.getName() );
        if ( ( portParam == null ) || ( !hostParam.hasValue() ) )
        {
            outputMessages.add( "ERROR:  No directory server port was provided." );
            return false;
        }
        int port = portParam.getIntValue();

        String bindDN = "";
        StringParameter bindDNParam = parameters.getStringParameter( bindDNParameter.getName() );
        if ( ( bindDNParam != null ) && bindDNParam.hasValue() )
        {
            bindDN = bindDNParam.getStringValue();
        }

        String bindPassword = "";
        PasswordParameter bindPWParam = parameters.getPasswordParameter( bindPWParameter.getName() );
        if ( ( bindPWParam != null ) && bindPWParam.hasValue() )
View Full Code Here

Examples of com.tapestry5book.entities.StringParameter

        return new ByteArrayInputStream(stream.toByteArray());
    }

    public List<ReportParameter> getReportParameters(String reportName) {

        ReportParameter date = new StringParameter("Cost Center");
        ReportParameter number = new NumericParameter("Account Number");
        ReportParameter text = new DateParameter("Date");

        return Arrays.asList(date, number, text);
    }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.StringParameter

   */
  public static void runCLIApplication(Class<?> cls, String[] args) {
    final Flag HELP_FLAG = new Flag(OptionID.HELP);
    final Flag HELP_LONG_FLAG = new Flag(OptionID.HELP_LONG);
    final ClassParameter<Object> DESCRIPTION_PARAM = new ClassParameter<Object>(OptionID.DESCRIPTION, Object.class, true);
    final StringParameter DEBUG_PARAM = new StringParameter(OptionID.DEBUG, true);

    SerializedParameterization params = new SerializedParameterization(args);
    try {
      params.grab(HELP_FLAG);
      params.grab(HELP_LONG_FLAG);
      params.grab(DESCRIPTION_PARAM);
      params.grab(DEBUG_PARAM);
      if(DESCRIPTION_PARAM.isDefined()) {
        params.clearErrors();
        printDescription(DESCRIPTION_PARAM.getValue());
        return;
      }
      // Fail silently on errors.
      if(params.getErrors().size() > 0) {
        params.logAndClearReportedErrors();
        return;
      }
      if(DEBUG_PARAM.isDefined()) {
        LoggingUtil.parseDebugParameter(DEBUG_PARAM);
      }
    }
    catch(Exception e) {
      printErrorMessage(e);
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.