okuyama.imdst.util
クラス JavaSystemApi

java.lang.Object
  上位を拡張 okuyama.imdst.util.JavaSystemApi

public class JavaSystemApi
extends java.lang.Object

システム系のApiに対してアクセスする.

作成者:
T.Okuyama

フィールドの概要
static int currentDateHour
           
static long currentTimeMillis
           
 
コンストラクタの概要
JavaSystemApi()
           
 
メソッドの概要
static void autoGc()
          自動でgcを発行する.
static int getAvailableProcessors()
           
static long getRuntimeFreeMem()
           
static long getRuntimeFreeMem(java.lang.String format)
          現在のJVMに割り当ててあるFreeMemoryを取得する
static long getRuntimeMaxMem()
           
static long getRuntimeMaxMem(java.lang.String format)
          現在のJVMに割り当ててあるMaxMemoryを取得する
static long getRuntimeTotalMem()
           
static long getRuntimeTotalMem(java.lang.String format)
          現在のJVMに割り当ててあるTotalMemoryを取得する
static int getUseMemoryPercent()
           
static int getUseMemoryPercentCache()
           
static void manualGc()
          手動でgcを発行する.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

currentTimeMillis

public static transient long currentTimeMillis

currentDateHour

public static transient int currentDateHour
コンストラクタの詳細

JavaSystemApi

public JavaSystemApi()
メソッドの詳細

autoGc

public static void autoGc()
自動でgcを発行する.
閾値による制限が自動で実行される.


manualGc

public static void manualGc()
手動でgcを発行する.


getRuntimeMaxMem

public static long getRuntimeMaxMem()

getRuntimeMaxMem

public static long getRuntimeMaxMem(java.lang.String format)
現在のJVMに割り当ててあるMaxMemoryを取得する

パラメータ:
format - フォーマット指定 ""=バイト, "K"=キロバイト, "M"=メガバイト, "G"=ギガバイト
戻り値:
long

getRuntimeTotalMem

public static long getRuntimeTotalMem()

getRuntimeTotalMem

public static long getRuntimeTotalMem(java.lang.String format)
現在のJVMに割り当ててあるTotalMemoryを取得する

パラメータ:
format - フォーマット指定 getRuntimeMaxMemと同様
戻り値:

getRuntimeFreeMem

public static long getRuntimeFreeMem()

getRuntimeFreeMem

public static long getRuntimeFreeMem(java.lang.String format)
現在のJVMに割り当ててあるFreeMemoryを取得する

パラメータ:
format - フォーマット指定 getRuntimeMaxMemと同様
戻り値:

getUseMemoryPercent

public static int getUseMemoryPercent()

getUseMemoryPercentCache

public static int getUseMemoryPercentCache()

getAvailableProcessors

public static int getAvailableProcessors()