jp.ossc.installer.gui.thread
クラス ProcessThread

java.lang.Object
  上位を拡張 java.lang.Thread
      上位を拡張 jp.ossc.installer.gui.thread.ProcessThread
すべての実装されたインタフェース:
java.lang.Runnable

public class ProcessThread
extends java.lang.Thread

外部実行ファイルを別スレッドで実行するクラスです。

導入されたバージョン:
1.0
バージョン:
1.0
作成者:
S.Fujii

入れ子のクラスの概要
 
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
フィールドの概要
 
クラス java.lang.Thread から継承されたフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
ProcessThread(java.lang.String[] args, java.lang.String[] envp)
          コンストラクター
 
メソッドの概要
 LogInputStream getErrorInputStream()
          エラー発生時の実行結果が保存されたStreamを取得する
 int getExitValue()
          終了コードを取得する
 LogInputStream getLogInputStream()
          実行結果が保存されたStreamを取得する
protected  void outputArgsAndEnvp()
          環境変数をログに出力する
protected  void outputDebugLog(java.lang.String log)
          デバッグログを取得する
 void run()
          実行
protected  java.lang.Process runtimeExec()
          外部実行ファイルの実行
 
クラス java.lang.Thread から継承されたメソッド
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ProcessThread

public ProcessThread(java.lang.String[] args,
                     java.lang.String[] envp)
コンストラクター

パラメータ:
args - 実行するコマンドと引数
envp - 実行する際の環境変数
メソッドの詳細

getLogInputStream

public LogInputStream getLogInputStream()
実行結果が保存されたStreamを取得する

戻り値:
実行結果が保存されたStream

getErrorInputStream

public LogInputStream getErrorInputStream()
エラー発生時の実行結果が保存されたStreamを取得する

戻り値:
エラー発生時の実行結果が保存されたStream

getExitValue

public int getExitValue()
終了コードを取得する

戻り値:
終了コード

run

public void run()
実行

定義:
インタフェース java.lang.Runnable 内の run
オーバーライド:
クラス java.lang.Thread 内の run
関連項目:
Runnable.run()

runtimeExec

protected java.lang.Process runtimeExec()
外部実行ファイルの実行

戻り値:
プロセス

outputArgsAndEnvp

protected void outputArgsAndEnvp()
環境変数をログに出力する


outputDebugLog

protected void outputDebugLog(java.lang.String log)
デバッグログを取得する

パラメータ:
log - 出力文字列