|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.concurrent.VMTaskFiber
public class VMTaskFiber
| Field Summary |
|---|
| Fields inherited from interface org.opennms.core.fiber.Fiber |
|---|
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED |
| Constructor Summary | |
|---|---|
VMTaskFiber(java.lang.String taskName,
java.lang.String entryClassName,
java.lang.String[] entryArguments,
java.net.URL[] searchPaths)
Constructs a new Virtual Macine Task Fiber. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name for the virtual machine task. |
int |
getStatus()
Returns the current status of the fiber. |
void |
run()
This method invokes the entry method on the main class. |
void |
start()
Starts the current fiber running. |
void |
stop()
Stops the current fiber. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMTaskFiber(java.lang.String taskName,
java.lang.String entryClassName,
java.lang.String[] entryArguments,
java.net.URL[] searchPaths)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
taskName - The name of the taskentryClassName - The name of the entry class.entryArguments - The String array passed to main.searchPaths - The URL's used to locate resources and classes.
java.lang.ClassNotFoundException - Thrown if the entry class is not found.
java.lang.NoSuchMethodException - Thrown if the main is not found on the entry
class.URLClassLoader| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void start()
start in interface Fiberpublic void stop()
STOP_PENDING. When the main thread exits then the service
is considered stopped!
stop in interface Fiberpublic int getStatus()
getStatus in interface Fiberpublic java.lang.String getName()
getName in interface Fiber
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||