Codota Logo
ProcessInfo.refresh
Code IndexAdd Codota to your IDE (free)

How to use
refresh
method
in
org.rhq.core.system.ProcessInfo

Best Java code snippets using org.rhq.core.system.ProcessInfo.refresh (Showing top 6 results out of 315)

  • Common ways to obtain ProcessInfo
private void myMethod () {
ProcessInfo p =
  • Codota IconProcessScanResult processScanResult;processScanResult.getProcessInfo()
  • Smart code suggestions by Codota
}
origin: org.rhq/rhq-core-native-system

/**
 * Takes a fresh snapshot of the non static process properties.
 *
 * @return a fresh {@link ProcessInfoSnapshot}
 */
public ProcessInfoSnapshot freshSnapshot() {
  refresh();
  return snapshot;
}
origin: rhq-project/rhq

/**
 * Takes a fresh snapshot of the non static process properties.
 *
 * @return a fresh {@link ProcessInfoSnapshot}
 */
public ProcessInfoSnapshot freshSnapshot() {
  refresh();
  return snapshot;
}
origin: org.rhq/rhq-core-native-system

/**
 * Returns a {@link ProcessInfo} instance for the parent of this process.
 *
 * This method uses the parent process id which is not static (it can change if the parent process dies before its
 * child). So in theory it should be moved to the {@link ProcessInfoSnapshot} type.
 *
 * In practice, it stays here because the parent {@link ProcessInfo} instance is cached after creation.
 *
 * @since 4.4
 */
public ProcessInfo getParentProcess() throws SystemInfoException {
  if (this.parentProcess == null) {
    this.parentProcess = new ProcessInfo(priorSnaphot().getParentPid(), sigar);
  } else {
    this.parentProcess.refresh();
  }
  return this.parentProcess;
}
origin: rhq-project/rhq

/**
 * Returns a {@link ProcessInfo} instance for the parent of this process.
 *
 * This method uses the parent process id which is not static (it can change if the parent process dies before its
 * child). So in theory it should be moved to the {@link ProcessInfoSnapshot} type.
 *
 * In practice, it stays here because the parent {@link ProcessInfo} instance is cached after creation.
 *
 * @since 4.4
 */
public ProcessInfo getParentProcess() throws SystemInfoException {
  if (this.parentProcess == null) {
    this.parentProcess = new ProcessInfo(priorSnaphot().getParentPid(), sigar);
  } else {
    this.parentProcess.refresh();
  }
  return this.parentProcess;
}
origin: org.rhq/rhq-core-native-system

@Override
public void refresh() throws SystemInfoException {
  super.refresh();
origin: rhq-project/rhq

@Override
public void refresh() throws SystemInfoException {
  super.refresh();
org.rhq.core.systemProcessInforefresh

Javadoc

Takes a fresh snapshot of non static properties of the underlying process. This method internally serializes calls so that it maintains a consistent view of the various Sigar call results.

Popular methods of ProcessInfo

  • getCommandLine
  • <init>
  • getCredentialsName
  • getEnvironmentVariables
  • getExecutable
  • getName
    Convenience method that returns the first command line argument, which is the name of the program th
  • getPid
  • priorSnaphot
    Returns the last snasphot of the non static process properties. Caveat the returned may hold stal
  • determineName
  • exists
  • freshSnapshot
    Takes a fresh snapshot of the non static process properties.
  • getBaseName
    Similar to #getName(), this is a convenience method that returns the first command line argument, wh
  • freshSnapshot,
  • getBaseName,
  • getCredentials,
  • getParentPid,
  • getParentProcess,
  • getSignalNumber,
  • handleSigarCallException,
  • toString,
  • update

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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