|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnesstar.api.BasicExecutorLog
public class BasicExecutorLog
A simple implementation of ExecutorLog.
| Constructor Summary | |
|---|---|
BasicExecutorLog(Bookmark bookmark,
int timeout,
boolean wantResult)
Constructor for the BasicExecutorLog object |
|
BasicExecutorLog(Bookmark bookmark,
int timeout,
HTMLViewer viewer,
boolean wantResult)
Control the execution of the given bookmark |
|
| Method Summary | |
|---|---|
void |
allDone()
|
MIMEObject |
blockingExecute()
Blocking call, execute the bookmark and return when done or when timeout occurs |
void |
cancelled()
Method |
static void |
dbg(String msg)
|
void |
done()
Method |
void |
done(MIMEObject result)
Method |
void |
elapsed(long millisecs)
Method |
void |
err(Exception e)
Method |
void |
execute()
Non blocking execute |
MIMEObject |
executeIt()
Execute the bookmark returning either the final result or an error. |
Bookmark |
getBookmark()
|
static String |
getDefaultExecutorLog()
|
static ExecutorLog |
getDefaultExecutorLogInstance()
|
Exception |
getError()
Gets the error attribute of the BasicExecutorLog object |
Executor |
getExecutor()
Gets the executor attribute of the BasicExecutorLog object |
MIMEObject |
getResult()
Gets the result attribute of the BasicExecutorLog object |
long |
getTime()
Gets the time attribute of the BasicExecutorLog object |
boolean |
isDone()
Gets the done attribute of the BasicExecutorLog object |
static void |
parallelExecution(Vector executors,
int checkInterval)
Execute in parallel a set of executors |
void |
setBookmark(Bookmark bookmark)
|
static void |
setDefaultExecutorLog(String executor)
|
void |
setResult(MIMEObject result)
sets the result attribute of the BasicExecutorLog object |
String |
toString()
Method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicExecutorLog(Bookmark bookmark,
int timeout,
HTMLViewer viewer,
boolean wantResult)
throws Exception
timeout - timeout in secsbookmark - viewer - wantResult -
Exception
public BasicExecutorLog(Bookmark bookmark,
int timeout,
boolean wantResult)
throws Exception
bookmark - timeout - wantResult -
Exception| Method Detail |
|---|
public void setBookmark(Bookmark bookmark)
public Bookmark getBookmark()
public boolean isDone()
public long getTime()
public Exception getError()
public MIMEObject getResult()
public void setResult(MIMEObject result)
public Executor getExecutor()
public void allDone()
public static void dbg(String msg)
public MIMEObject executeIt()
throws Exception
Exception
public MIMEObject blockingExecute()
throws Exception
Exceptionpublic void execute()
public void elapsed(long millisecs)
elapsed in interface ExecutorLogmillisecs - public void err(Exception e)
err in interface ExecutorLoge - public void done(MIMEObject result)
done in interface ExecutorLogresult - public void done()
done in interface ExecutorLogpublic void cancelled()
cancelled in interface ExecutorLogpublic String toString()
toString in class Object
public static void parallelExecution(Vector executors,
int checkInterval)
executors - a vector of executors to be executedcheckInterval - the interval in secs between checks for completitionpublic static void setDefaultExecutorLog(String executor)
public static String getDefaultExecutorLog()
public static ExecutorLog getDefaultExecutorLogInstance()
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||