Codota Logo
com.vmware.vim25
Code IndexAdd Codota to your IDE (free)

How to use com.vmware.vim25

Best Java code snippets using com.vmware.vim25 (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: OpenNMS/opennms

/**
 * Generates a human-readable name for a performance counter.
 *
 * @param perfCounterInfo the perfomance counter info object
 * @return a string-representation of the performance counter's name
 */
private String getHumanReadableName(PerfCounterInfo perfCounterInfo) {
  return perfCounterInfo.getGroupInfo().getKey() + "." + perfCounterInfo.getNameInfo().getKey() + "." + perfCounterInfo.getRollupType().toString();
}
origin: io.cloudslang.content/score-vmware

private VirtualDeviceConfigSpec createFloppyConfigSpecs() {
  VirtualFloppyDeviceBackingInfo flpBacking = new VirtualFloppyDeviceBackingInfo();
  flpBacking.setDeviceName(DEFAULT_FLOPPY_DEVICE_NAME);
  VirtualFloppy floppyDisk = new VirtualFloppy();
  floppyDisk.setBacking(flpBacking);
  floppyDisk.setKey(DEFAULT_FLOPPY_DEVICE_KEY);
  VirtualDeviceConfigSpec flpSpecs = new VirtualDeviceConfigSpec();
  flpSpecs.setOperation(VirtualDeviceConfigSpecOperation.ADD);
  flpSpecs.setDevice(floppyDisk);
  return flpSpecs;
}
origin: io.cloudslang.content/score-vmware

private String getNetworkName(ConfigTarget configTarget) {
  if (configTarget.getNetwork() != null) {
    for (VirtualMachineNetworkInfo network : configTarget.getNetwork()) {
      NetworkSummary netSummary = network.getNetwork();
      if (netSummary.isAccessible()) {
        return netSummary.getName();
      }
    }
  }
  return null;
}
origin: io.cloudslang.content/score-vmware

private PropertyFilterSpec propertyFilterSpec(ManagedObjectReference objmor, String[] filterProps) {
  ObjectSpec oSpec = new ObjectSpec();
  oSpec.setObj(objmor);
  oSpec.setSkip(false);
  PropertySpec pSpec = new PropertySpec();
  pSpec.getPathSet().addAll(Arrays.asList(filterProps));
  pSpec.setType(objmor.getType());
  PropertyFilterSpec spec = new PropertyFilterSpec();
  spec.getObjectSet().add(oSpec);
  spec.getPropSet().add(pSpec);
  return spec;
}
origin: io.cloudslang.content/score-vmware

private VirtualDeviceConfigSpec getFirstScsiController(int diskCtrlKey) {
  VirtualLsiLogicController scsiCtrl = new VirtualLsiLogicController();
  scsiCtrl.setBusNumber(DEFAULT_CONTROLLER_BUS_NUMBER);
  scsiCtrl.setKey(diskCtrlKey);
  scsiCtrl.setSharedBus(VirtualSCSISharing.NO_SHARING);
  VirtualDeviceConfigSpec scsiCtrlSpec = new VirtualDeviceConfigSpec();
  scsiCtrlSpec.setOperation(VirtualDeviceConfigSpecOperation.ADD);
  scsiCtrlSpec.setDevice(scsiCtrl);
  return scsiCtrlSpec;
}
origin: io.cloudslang.content/score-vmware

private VirtualEthernetCard getEth(String fileName, String addressType, Integer key) {
  VirtualEthernetCardNetworkBackingInfo nicBacking = new VirtualEthernetCardNetworkBackingInfo();
  nicBacking.setDeviceName(fileName);
  VirtualEthernetCard nic = new VirtualPCNet32();
  nic.setBacking(nicBacking);
  nic.setAddressType(addressType);
  nic.setKey(key);
  return nic;
}
origin: yavijava/yavijava-samples

private static VirtualDevice findVirtualDevice(
   VirtualMachineConfigInfo vmConfig, String name) {
 VirtualDevice[] devices = vmConfig.getHardware().getDevice();
 for (int i = 0; i < devices.length; i++) {
   if (devices[i].getDeviceInfo().getLabel().equals(name)) {
    return devices[i];
   }
 }
 return null;
}
origin: com.vmware/vijava

static MethodAction createPowerOnAction() 
{
 MethodAction action = new MethodAction();
 action.setName("PowerOnVM_Task");
 MethodActionArgument argument = new MethodActionArgument();
 argument.setValue(null);
 action.setArgument(new MethodActionArgument[] { argument });
 return action;
}
 
origin: com.vmware/vijava

private static HostVirtualNicSpec createVNicSpecification(String ipAddr) 
{
  HostVirtualNicSpec vNicSpec = new HostVirtualNicSpec();
  HostIpConfig ipConfig = new HostIpConfig();
  ipConfig.setDhcp(false);
  ipConfig.setIpAddress(ipAddr);
  ipConfig.setSubnetMask("255.255.255.0");      
  vNicSpec.setIp(ipConfig);
  return vNicSpec;
}
origin: mucommander/mucommander

public ManagedObjectReference findVmByIp(String ip)
    throws RuntimeFaultFaultMsg {
  return vimPort.findByIp(this.serviceContent.getSearchIndex(), null,
      ip, true);
}
origin: mucommander/mucommander

public ManagedObjectReference findVmByUuid(String uuid, boolean instanceUuid)
    throws RuntimeFaultFaultMsg {
  return vimPort.findByUuid(this.serviceContent.getSearchIndex(), null,
      uuid, true, instanceUuid);
}
 
origin: yavijava/yavijava-samples

static VirtualDeviceConfigSpec createScsiSpec(int cKey)
{
 VirtualDeviceConfigSpec scsiSpec = 
  new VirtualDeviceConfigSpec();
 scsiSpec.setOperation(VirtualDeviceConfigSpecOperation.add);
 VirtualLsiLogicController scsiCtrl = 
   new VirtualLsiLogicController();
 scsiCtrl.setKey(cKey);
 scsiCtrl.setBusNumber(0);
 scsiCtrl.setSharedBus(VirtualSCSISharing.noSharing);
 scsiSpec.setDevice(scsiCtrl);
 return scsiSpec;
}
 
origin: org.opennms/opennms-vmware

/**
 * Generates a human-readable name for a performance counter.
 *
 * @param perfCounterInfo the perfomance counter info object
 * @return a string-representation of the performance counter's name
 */
private String getHumanReadableName(PerfCounterInfo perfCounterInfo) {
  return perfCounterInfo.getGroupInfo().getKey() + "." + perfCounterInfo.getNameInfo().getKey() + "." + perfCounterInfo.getRollupType().toString();
}
origin: com.vmware/vijava

private static VirtualDevice findVirtualDevice(
  VirtualMachineConfigInfo vmConfig, String name)
{
 VirtualDevice [] devices = vmConfig.getHardware().getDevice();
 for(int i=0;i<devices.length;i++)
 {
  if(devices[i].getDeviceInfo().getLabel().equals(name))
  {                             
   return devices[i];
  }
 }
 return null;
}
origin: com.vmware/vijava

static MethodAction createPowerOnAction() 
{
  MethodAction action = new MethodAction();
  action.setName("PowerOnVM_Task");
  MethodActionArgument argument = new MethodActionArgument();
  argument.setValue(null);
  action.setArgument(new MethodActionArgument[] { argument });
  return action;
}

origin: yavijava/yavijava-samples

private static HostVirtualNicSpec createVNicSpecification(String ipAddr) 
{
 HostVirtualNicSpec vNicSpec = new HostVirtualNicSpec();
 HostIpConfig ipConfig = new HostIpConfig();
 ipConfig.setDhcp(false);
 ipConfig.setIpAddress(ipAddr);
 ipConfig.setSubnetMask("255.255.255.0");      
 vNicSpec.setIp(ipConfig);
 return vNicSpec;
}
origin: OpenNMS/opennms

private String getHumanReadableName(PerfCounterInfo perfCounterInfo) {
  return perfCounterInfo.getGroupInfo().getKey() + "." + perfCounterInfo.getNameInfo().getKey() + "." + perfCounterInfo.getRollupType().toString();
}
origin: com.vmware/vijava

private static VirtualDevice findVirtualDevice(
  VirtualMachineConfigInfo vmConfig, String name)
{
 VirtualDevice [] devices = vmConfig.getHardware().getDevice();
 for(int i=0;i<devices.length;i++)
 {
  if(devices[i].getDeviceInfo().getLabel().equals(name))
  {                             
   return devices[i];
  }
 }
 return null;
}
origin: yavijava/yavijava-samples

static MethodAction createPowerOnAction() {
 MethodAction action = new MethodAction();
 action.setName("PowerOnVM_Task");
 MethodActionArgument argument = new MethodActionArgument();
 argument.setValue(null);
 action.setArgument(new MethodActionArgument[] { argument });
 return action;
}
origin: yavijava/yavijava-samples

static MethodAction createPowerOnAction() 
{
  MethodAction action = new MethodAction();
  action.setName("PowerOnVM_Task");
  MethodActionArgument argument = new MethodActionArgument();
  argument.setValue(null);
  action.setArgument(new MethodActionArgument[] { argument });
  return action;
}
 
com.vmware.vim25

Most used classes

  • VirtualMachine
  • ManagedObjectReference
  • ServiceInstance
  • InventoryNavigator
  • VirtualMachineConfigInfo
  • VirtualMachineRuntimeInfo,
  • HostSystem,
  • GuestInfo,
  • LocalizedMethodFault,
  • TaskInfo,
  • VirtualHardware,
  • Task,
  • AboutInfo,
  • DatastoreSummary,
  • DynamicProperty,
  • ObjectSpec,
  • PropertyFilterSpec,
  • PropertySpec,
  • ServiceContent
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now