nanoJBlend

java.lang
クラス Runtime

java.lang.Object
  上位を拡張 java.lang.Runtime

public class Runtime
extends Object

Runtime クラスはnanoアプリケーションに実行環境へのインタフェースを提供します。

Runtime オブジェクトはSingletonオブジェクトです。 つまり、システムに一つだけ存在します。 コンストラクタで生成することはできず、getRuntime メソッドで取得します。


メソッドの概要
 long freeMemory()
          ヒープメモリの空き容量を返します。
static Runtime getRuntime()
          Runtime オブジェクトを返します。
 long totalMemory()
          ヒープメモリの総容量を返します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

メソッドの詳細

getRuntime

public static Runtime getRuntime()
Runtime オブジェクトを返します。

戻り値:
Runtime オブジェクト

freeMemory

public long freeMemory()
ヒープメモリの空き容量を返します。

戻り値:
ヒープメモリの現在の総空き容量(バイト)

totalMemory

public long totalMemory()
ヒープメモリの総容量を返します。

戻り値:
ヒープメモリの総容量

nanoJBlend

Copyright 2005-2013 Aplix and/or its affiliates. All rights reserved. Aplix Confidential and Restricted.
NTT DOCOMO and Hitachi Kokusai Electric Confidential