|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
TestSkeleton
public abstract class TestSkeleton
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
TestSkeleton()
|
|
TestSkeleton(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
int |
checkKeyword(java.lang.String mainName,
int argc,
java.lang.String[] args)
Handle subclass-specific command line options and their arguments. |
int |
checkOption(java.lang.String mainName,
char ch,
java.lang.String arg)
Handle subclass-specific command line options and their arguments. If -abc -d efg -h -1 -i is specified, this method will be called a maximum of 5 times: checkOption(mainName, 'a', "bc"); checkOption(mainName, 'd', "efg"); checkOption(mainName, 'h', "-1"); checkOption(mainName, '1', "-i"); checkOption(mainName, 'i', null); Note that either of the last two method calls may not happen if the preceeding method call claims to have used the following argument (by returning 2. For example, if the third call (where ch is set to 'h') returns 0 or 1, the next call will contain '1' and "-i". |
void |
collabSourceLost(int connectionID)
A remote collaboration peer is no longer available. |
void |
dataSourceLost(java.lang.String name)
A remote Data object is no longer available. |
boolean |
finalizeArgs(java.lang.String mainName)
Validate arguments after argument parsing has finished. This is useful for verifying that all required keywords and options have been specified, that options don't conflict with one another, etc. |
void |
initializeArgs()
Method used to initialize any instance variables which may be changed by a cmdline option. This is needed when arguments are processed inside the constructor. |
java.lang.String |
keywordUsage()
A short string included in the usage message to indicate valid keywords. An example might be "[username] [password]". |
java.lang.String |
optionUsage()
A short string included in the usage message to indicate valid options. |
void |
startThreads()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestSkeleton()
public TestSkeleton(java.lang.String[] args)
throws java.rmi.RemoteException,
VisADException
java.rmi.RemoteException
VisADException| Method Detail |
|---|
public void initializeArgs()
CmdlineConsumerCmdlineParser will be run
before any instance variables for the extending
class are initialized.
initializeArgs in interface CmdlineConsumer
public int checkOption(java.lang.String mainName,
char ch,
java.lang.String arg)
CmdlineConsumer
checkOption in interface CmdlineConsumermainName - The name of the main class (useful for
error messages.)ch - Option character. If -a is specified
on the command line, 'a' would be passed to
this method.)arg - The argument associated with this option.
public java.lang.String optionUsage()
CmdlineConsumer
optionUsage in interface CmdlineConsumer
public int checkKeyword(java.lang.String mainName,
int argc,
java.lang.String[] args)
CmdlineConsumer
checkKeyword in interface CmdlineConsumermainName - The name of the main class (useful for
error messages.)argc - The index of the current keyword.args - The full list of arguments.
public java.lang.String keywordUsage()
CmdlineConsumer
keywordUsage in interface CmdlineConsumerpublic boolean finalizeArgs(java.lang.String mainName)
CmdlineConsumer
finalizeArgs in interface CmdlineConsumermainName - The name of the main class (useful for
error messages.)
public void dataSourceLost(java.lang.String name)
RemoteSourceListener
dataSourceLost in interface RemoteSourceListenername - The name of the Data object.public void collabSourceLost(int connectionID)
RemoteSourceListener
collabSourceLost in interface RemoteSourceListener
public void startThreads()
throws java.rmi.RemoteException,
VisADException
java.rmi.RemoteException
VisADExceptionpublic java.lang.String toString()
toString in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||