Replies the current java VM binary.

@return the binary executable filename that was used to launch the virtual machine.
481862
@Pure
	public static String getVMBinary() {
		final String javaHome = System.getProperty("java.home"); //$NON-NLS-1$
		final File binDir = new File(new File(javaHome), "bin"); //$NON-NLS-1$
		if (binDir.isDirectory()) {
			File exec = new File(binDir, getExecutableFilename("javaw")); //$NON-NLS-1$
			if (exec.isFile()) {
				return exec.getAbsolutePath();
			}
			exec = new File(binDir, getExecutableFilename("java")); //$NON-NLS-1$
			if (exec.isFile()) {
				return exec.getAbsolutePath();
			}
		}
		return null;
	}
1224313
private String getBinaryServletMapping() {
		String binaryServletMapping = null;
		// Retrieve binary servlet mapping from the binary resource handler
		BinaryResourcesHandler binaryRsHandler = (BinaryResourcesHandler) config.getContext()
				.getAttribute(JawrConstant.BINARY_CONTEXT_ATTRIBUTE);
		if (binaryRsHandler != null) {
			binaryServletMapping = binaryRsHandler.getConfig().getServletMapping();
		}
		return binaryServletMapping;
	}
618502
private IntVar getVMtoLeafNode() {
        for (int x = 0; x < outs.length; x++) {
            if (outs[x].cardinality() == 0) {
                //no outgoing VMs, can be launched directly.
                BitSet in = ins[x];
                for (int i = in.nextSetBit(0); i >= 0; i = in.nextSetBit(i + 1)) {
                    if (starts[i] != null && !starts[i].isInstantiated()) {
                        return starts[i];
                    }
                }
            }
        }
        return null;
    }
441657
public static String getJvmStartupOptions() {
		try {
			final RuntimeMXBean bean = ManagementFactory.getRuntimeMXBean();
			final StringBuilder bld = new StringBuilder();
			
			for (String s : bean.getInputArguments()) {
				bld.append(s).append(' ');
			}

			return bld.toString();
		}
		catch (Throwable t) {
			return UNKNOWN;
		}
	}
192782
public java.lang.String getKernelName() {
    java.lang.Object ref = kernelName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      kernelName_ = s;
      return s;
    }
  }
1011499
public FilePath getCurrentWorkspace() {
        lock.readLock().lock();
        try {
            if (executable == null) {
                return null;
            }
            if (executable instanceof AbstractBuild) {
                AbstractBuild ab = (AbstractBuild) executable;
                return ab.getWorkspace();
            }
            return null;
        } finally {
            lock.readLock().unlock();
        }
    }
41651
function getBinaryName() {
  var binaryName,
    variant,
    platform = process.platform;

  if (getArgument('--fis-binary-name')) {
    binaryName = getArgument('--fis-binary-name');
  } else if (process.env.FIS_BINARY_NAME) {
    binaryName = process.env.FIS_BINARY_NAME;
  } else if (process.env.npm_config_FIS_binary_name) {
    binaryName = process.env.npm_config_FIS_binary_name;
  } else if (pkg.nodeConfig && pkg.nodeConfig.binaryName) {
    binaryName = pkg.nodeConfig.binaryName;
  } else {
    variant = getPlatformVariant();
    if (variant) {
      platform += '_' + variant;
    }

    binaryName = [
      platform, '-',
      process.arch, '-',
      process.versions.modules
    ].join('');
  }

  return [binaryName, 'binding.node'].join('_');
}
648058
public @CheckForNull Queue.Executable getCurrentExecutable() {
        lock.readLock().lock();
        try {
            return executable;
        } finally {
            lock.readLock().unlock();
        }
    }
785210
public com.google.protobuf.ByteString
      getFilenameBytes() {
    java.lang.Object ref = filename_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      filename_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
466231
public String getExecutable(VirtualChannel channel) throws IOException, InterruptedException {
        return channel.call(new MasterToSlaveCallable<String, IOException>() {
            public String call() throws IOException {
                File exe = getExeFile("groovy");
                if (exe.exists()) {
                    return exe.getPath();
                }
                return null;
            }

            private static final long serialVersionUID = 1L;
        });
    }
454907
def _get_from_bin(self):
        
        # Find the real interpreter installation path
        java_bin = os.path.realpath(self._java)
        if os.path.exists(java_bin):
            # Get to the home directory
            java_home = os.path.abspath(os.path.join(os.path.dirname(java_bin),
                                                     '..'))

            # Look for the JVM library
            return self.find_libjvm(java_home)
926218
public static String getAppVersion() {
        if (appVersion != null)
            return appVersion;

        String appName = getAppId();
        if ("mdw".equalsIgnoreCase(appName)) {
            appVersion = getMdwVersion();
        }
        else {
            appVersion = "Unknown";
            try {
                InputStream stream = ApplicationContext.class.getClassLoader().getResourceAsStream(BUILD_VERSION_FILE);
                if (stream != null) {
                    appVersion = "";
                    int i;
                    while ((i = stream.read()) != -1) {
                        appVersion += (char) i;
                    }
                    stream.close();
                }
            }
            catch (Exception ex) {
                logger.severeException(ex.getMessage(), ex);
            }
        }

        return appVersion;
    }
110218
def GetMemBalloonedMB(self):
        ''''''
        counter = c_uint()
        ret = vmGuestLib.VMGuestLib_GetMemBalloonedMB(self.handle.value, byref(counter))
        if ret != VMGUESTLIB_ERROR_SUCCESS: raise VMGuestLibException(ret)
        return counter.value
1242396
public java.lang.String getVmStatus() {
    java.lang.Object ref = vmStatus_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      vmStatus_ = s;
      return s;
    }
  }
259451
public java.lang.String getVmZoneName() {
    java.lang.Object ref = vmZoneName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      vmZoneName_ = s;
      return s;
    }
  }
1058922
public BinaryResponse getBinaryResource() throws IOException {
		buildQueryString();
		buildHeaders();

		connection.setDoOutput(true);
		connection.setRequestMethod("GET");

		return readBinaryResponse();
	}
1030094
def get_java_binpath(cmd=None):
    
    if os.environ.get("BCBIO_JAVA_HOME"):
        test_cmd = os.path.join(os.environ["BCBIO_JAVA_HOME"], "bin", "java")
        if os.path.exists(test_cmd):
            cmd = test_cmd
    if not cmd:
        cmd = Rscript_cmd()
    return os.path.dirname(cmd)