public class Job
extends java.lang.Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addOpt(java.lang.String key)
CreateForm の実行オプションを追加します。
|
void |
addOpt(java.lang.String key,
java.lang.String value)
CreateForm の実行オプションを追加します。
|
void |
clearOpts()
CreateForm の実行オプションを全て削除します。
|
JobResult |
execute()
ジョブを実行します。
|
java.lang.String |
getCommandline()
CreateForm の実行オプション文字列を返します。
|
JobDescriptor |
getDescriptor()
ジョブ ID やプロパティ情報を返します。
|
int |
getExpiration()
設定されている有効期限日数を返します。
|
java.lang.String |
getId()
ジョブ ID を返します。
|
CreateFormMode |
getMode()
設定されている CreateForm の実行モードを返します。
|
java.lang.String |
getProperty(java.lang.String key)
プロパティを返します。
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
プロパティを返します。
|
JobResult |
getResult()
ジョブの実行結果を表す JobResult オブジェクトを返します。
|
JobSource |
getSource()
入力データソースを表す JobSource オブジェクトを返します。
|
JobStatus |
getStatus()
ジョブの状態を表す JobStatus オブジェクトを返します。
|
JobStatus |
post()
ジョブを実行します。
|
void |
remove()
ジョブの情報をサーバ上から削除します。
|
void |
removeOpt(java.lang.String key)
指定された CreateForm 実行オプションを削除します。
|
void |
removeProperty(java.lang.String key)
指定されたプロパティを削除します。
|
void |
setExpiration(int days)
ジョブの有効期限日数を設定します。
|
void |
setMode(CreateFormMode mode)
CreateForm の実行モードを設定します。
|
void |
setOpts(java.lang.String opts)
CreateForm の実行オプション文字列を設定します。
|
void |
setProperty(java.lang.String key,
java.lang.String value)
プロパティを登録します。
|
JobResult |
waitResult()
ジョブの実行が終了するまで処理をブロックします。
|
JobResult |
waitResult(long timeout)
ジョブの実行が終了するまで処理をブロックします。
|
public JobDescriptor getDescriptor()
public void setProperty(java.lang.String key,
java.lang.String value)
key - プロパティのキーvalue - プロパティの値public java.lang.String getProperty(java.lang.String key)
key - プロパティのキーpublic java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
key - プロパティのキーdefaultValue - キーが存在しない場合に返す値public void removeProperty(java.lang.String key)
key - 削除するプロパティのキーpublic JobResult execute() throws RemoteObjectException
RemoteObjectException - サーバとの接続でエラーが発生した場合post()public JobStatus post() throws RemoteObjectException
RemoteObjectException - サーバとの接続でエラーが発生した場合execute(),
getResult(),
waitResult(),
getStatus()public JobStatus getStatus()
public JobResult getResult() throws RemoteObjectException
RemoteObjectException - サーバとの接続でエラーが発生した場合public JobResult waitResult() throws RemoteObjectException
RemoteObjectException - サーバとの接続でエラーが発生した場合public JobResult waitResult(long timeout) throws RemoteObjectException
timeout - タイムアウトまでの時間(ミリ秒)、0 以下の値を指定すると無制限RemoteObjectException - サーバとの接続でエラーが発生した場合public void remove()
throws RemoteObjectException
RemoteObjectException - サーバとの接続でエラーが発生した場合public java.lang.String getId()
public void setMode(CreateFormMode mode)
mode - 実行モードpublic CreateFormMode getMode()
public void setOpts(java.lang.String opts)
opts - 実行オプション文字列public void clearOpts()
public void addOpt(java.lang.String key,
java.lang.String value)
job.addOpt("s", "stylefile");
job.addOpt("q", "qdffile");
key - 実行オプションのキーvalue - 実行オプションの値public void addOpt(java.lang.String key)
job.addOpt("vum");
key - 実行オプションのキーpublic void removeOpt(java.lang.String key)
job.removeOpt("o"); // "-o" オプションを削除
key - 削除するプロパティのキーpublic java.lang.String getCommandline()
public JobSource getSource()
public void setExpiration(int days)
days - 有効期限日数public int getExpiration()