Top


定義場所(file name)

jdk/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java

名前(function name)

    public Properties getAgentProperties() throws IOException {

本体部(body)

  {- -------------------------------------------
  (1) (変数宣言など)
      ---------------------------------------- -}

            InputStream in = null;
            Properties props = new Properties();

  {- -------------------------------------------
  (1) executeCommand() を呼び出し, 
      HotSpot に "agentProperties" 処理を実行させる.

      (なお, HotSpot との通信用 InputStream は呼び出し後に閉じる)
      ---------------------------------------- -}

            try {
                in = executeCommand("agentProperties");
                props.load(in);
            } finally {
                if (in != null) in.close();
            }

  {- -------------------------------------------
  (1) 結果をリターン
      ---------------------------------------- -}

            return props;
        }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.