Tabnine Logo
MemoryUsage.setTotal
Code IndexAdd Tabnine to your IDE (free)

How to use
setTotal
method
in
org.kaaproject.kaa.server.common.thrift.gen.cli.MemoryUsage

Best Java code snippets using org.kaaproject.kaa.server.common.thrift.gen.cli.MemoryUsage.setTotal (Showing top 2 results out of 315)

origin: kaaproject/kaa

@Override
public MemoryUsage getMemoryUsage(boolean forceGc)
  throws TException {
 if (forceGc) {
  System.gc(); //NOSONAR
 }
 MemoryUsage memUsage = new MemoryUsage();
 memUsage.setMax(Runtime.getRuntime().maxMemory());
 memUsage.setFree(Runtime.getRuntime().freeMemory());
 memUsage.setTotal(Runtime.getRuntime().totalMemory());
 return memUsage;
}
origin: kaaproject/kaa

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MAX:
  if (value == null) {
   unsetMax();
  } else {
   setMax((Long)value);
  }
  break;
 case TOTAL:
  if (value == null) {
   unsetTotal();
  } else {
   setTotal((Long)value);
  }
  break;
 case FREE:
  if (value == null) {
   unsetFree();
  } else {
   setFree((Long)value);
  }
  break;
 }
}
org.kaaproject.kaa.server.common.thrift.gen.cliMemoryUsagesetTotal

Popular methods of MemoryUsage

  • <init>
    Performs a deep copy on other.
  • setFree
  • setMax
  • equals
  • getFree
  • getMax
  • getTotal
  • isSetFree
    Returns true if field free is set (has been assigned a value) and false otherwise
  • isSetMax
    Returns true if field max is set (has been assigned a value) and false otherwise
  • isSetTotal
    Returns true if field total is set (has been assigned a value) and false otherwise
  • read
  • setFreeIsSet
  • read,
  • setFreeIsSet,
  • setMaxIsSet,
  • setTotalIsSet,
  • unsetFree,
  • unsetMax,
  • unsetTotal,
  • validate,
  • write

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now