congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MemoryUsage.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.kaaproject.kaa.server.common.thrift.gen.cli.MemoryUsage
constructor

Best Java code snippets using org.kaaproject.kaa.server.common.thrift.gen.cli.MemoryUsage.<init> (Showing top 5 results out of 315)

origin: kaaproject/kaa

public MemoryUsage deepCopy() {
 return new MemoryUsage(this);
}
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

/**
 * Performs a deep copy on <i>other</i>.
 */
public getMemoryUsage_result(getMemoryUsage_result other) {
 if (other.isSetSuccess()) {
  this.success = new MemoryUsage(other.success);
 }
 if (other.isSetCliException()) {
  this.cliException = new CliThriftException(other.cliException);
 }
}
origin: kaaproject/kaa

case 0: // SUCCESS
 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
  struct.success = new MemoryUsage();
  struct.success.read(iprot);
  struct.setSuccessIsSet(true);
origin: kaaproject/kaa

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, getMemoryUsage_result struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
   struct.success = new MemoryUsage();
   struct.success.read(iprot);
   struct.setSuccessIsSet(true);
  }
  if (incoming.get(1)) {
   struct.cliException = new CliThriftException();
   struct.cliException.read(iprot);
   struct.setCliExceptionIsSet(true);
  }
 }
}
org.kaaproject.kaa.server.common.thrift.gen.cliMemoryUsage<init>

Javadoc

Performs a deep copy on other.

Popular methods of MemoryUsage

  • setFree
  • setMax
  • setTotal
  • 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

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Github Copilot alternatives
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