Examples of OptionValue


Examples of com.vmware.vim25.OptionValue

                        vmName = (String)objProp.getVal();
                    } else if(objProp.getName().startsWith("value[")) {
                      if(objProp.getVal() != null)
                        vmInternalCSName = ((CustomFieldStringValue)objProp.getVal()).getValue();
                    } else {
                        OptionValue optValue = (OptionValue)objProp.getVal();
                        value = (String)optValue.getValue();
                    }
                }
             
                  if (vmInternalCSName != null && isUserVMInternalCSName(vmInternalCSName))
                      vmName = vmInternalCSName;
View Full Code Here

Examples of com.vmware.vim25.OptionValue

            // pass boot arguments through machine.id & perform customized options to VMX
   
            Map<String, String> vmDetailOptions = validateVmDetails(vmSpec.getDetails());
            OptionValue[] extraOptions = new OptionValue[2 + vmDetailOptions.size()];
            extraOptions[0] = new OptionValue();
            extraOptions[0].setKey("machine.id");
            extraOptions[0].setValue(vmSpec.getBootArgs());
           
            extraOptions[1] = new OptionValue();
            extraOptions[1].setKey("devices.hotplug");
            extraOptions[1].setValue("true");

            int j = 2;
            for(Map.Entry<String, String> entry : vmDetailOptions.entrySet()) {
              extraOptions[j] = new OptionValue();
              extraOptions[j].setKey(entry.getKey());
              extraOptions[j].setValue(entry.getValue());
              j++;
            }
           
View Full Code Here

Examples of com.vmware.vim25.OptionValue

    if(optionsToMerge != null) {
      for(int j = 0; j < optionsToMerge.length; j++)
        options[i++] = optionsToMerge[j];
    }
     
    options[i] = new OptionValue();
    options[i].setKey("RemoteDisplay.vnc.enabled");
    options[i++].setValue(enableVnc ? "true" : "false");
 
    options[i] = new OptionValue();
    options[i].setKey("RemoteDisplay.vnc.password");
    options[i++].setValue(vncPassword);
 
    options[i] = new OptionValue();
    options[i].setKey("RemoteDisplay.vnc.port");
    options[i++].setValue("" + vncPort);
   
    if(needKeyboardSetup) {
      options[i] = new OptionValue();
      options[i].setKey("RemoteDisplay.vnc.keymap");
      options[i++].setValue(keyboardLayout);
    }
   
    return options;
View Full Code Here

Examples of com.vmware.vim25.OptionValue

              String value = null;
              for(DynamicProperty objProp : objProps) {
                if(objProp.getName().equals("name")) {
                  name = (String)objProp.getVal();
                } else {
                  OptionValue optValue = (OptionValue)objProp.getVal();
                  value = (String)optValue.getValue();
                }
              }
             
              if(name != null && value != null) {
                portInfo.put(name, Integer.parseInt(value));
View Full Code Here

Examples of com.vmware.vim25.OptionValue

                            vmName = (String)objProp.getVal();
                        } else if (objProp.getName().startsWith("value[")) {
                            if (objProp.getVal() != null)
                                vmInternalCSName = ((CustomFieldStringValue)objProp.getVal()).getValue();
                        } else {
                            OptionValue optValue = (OptionValue)objProp.getVal();
                            value = (String)optValue.getValue();
                        }
                    }

                    if (vmInternalCSName != null && isUserVMInternalCSName(vmInternalCSName))
                        vmName = vmInternalCSName;
View Full Code Here

Examples of com.vmware.vim25.OptionValue

                        vmName = (String)objProp.getVal();
                    } else if(objProp.getName().startsWith("value[")) {
                      if(objProp.getVal() != null)
                        vmInternalCSName = ((CustomFieldStringValue)objProp.getVal()).getValue();
                    } else {
                        OptionValue optValue = (OptionValue)objProp.getVal();
                        value = (String)optValue.getValue();
                    }
                }
             
                  if (vmInternalCSName != null && isUserVMInternalCSName(vmInternalCSName))
                      vmName = vmInternalCSName;
View Full Code Here

Examples of com.vmware.vim25.OptionValue

              String value = null;
              for(DynamicProperty objProp : objProps) {
                if(objProp.getName().equals("name")) {
                  name = (String)objProp.getVal();
                } else {
                  OptionValue optValue = (OptionValue)objProp.getVal();
                  value = (String)optValue.getValue();
                }
              }

              if(name != null && value != null) {
                portInfo.put(name, Integer.parseInt(value));
View Full Code Here

Examples of org.apache.drill.exec.server.options.OptionValue

    private final AbstractClassCompiler jdkClassCompiler;
    private final AbstractClassCompiler janinoClassCompiler;


    ClassCompilerSelector(DrillConfig config, OptionManager sessionOptions) {
      OptionValue value = sessionOptions.getOption(JAVA_COMPILER_OPTION);
      this.policy = CompilerPolicy.valueOf((value != null) ? value.string_val.toUpperCase() : config.getString(JAVA_COMPILER_CONFIG).toUpperCase());

      value = sessionOptions.getOption(JAVA_COMPILER_JANINO_MAXSIZE_OPTION);
      this.janinoThreshold = (value != null) ? value.num_val : config.getLong(JAVA_COMPILER_JANINO_MAXSIZE_CONFIG);
View Full Code Here

Examples of org.apache.drill.exec.server.options.OptionValue

    }
  }

  @Test
  public void jacksonSerialization() throws Exception {
    OptionValue v = OptionValue.createBoolean(OptionType.SESSION, "my test option", true);
    DistributedMap<String, OptionValue> map = ICACHE.getMap(CacheConfig.newBuilder(OptionValue.class).jackson().build());
    map.put("1", v).get();
    for(int i = 0; i < 5; i++){
      OptionValue v2 = map.get("1");
      Assert.assertEquals(v, v2);
    }
  }
View Full Code Here

Examples of org.spw.model.OptionValue

        // Perform application initialization that must complete
        // *after* managed components are initialized
        list = getSessionBean1().getOptionValueDataProvider();
        // initialize the option in session been
        if (getSessionBean1().getOptionValue() == null) {
            getSessionBean1().setOptionValue(new OptionValue());
            // get the first option to initialize
            String option = (String) optionNameDefaultOptions.
                    getOptions()[0].getValue();
            // set the option as current option
            getSessionBean1().getOptionValue().
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.