|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes representing processes inside the JVM.
Field Summary | |
static int |
DEAD
State constant. |
static int |
RUNNING
State constant. |
static int |
UNSTARTED
State constant. |
Method Summary | |
java.lang.ClassLoader |
getClassLoader()
Return the ClassLoader that was used to load the classes for this process. |
java.lang.String |
getName()
Gets the name of this process. |
long |
getPid()
Gets the unique ID number for the process. |
int |
getState()
Get the state of the process. |
java.lang.ThreadGroup |
getThreadGroup()
Return the ThreadGroup for this JProcess. |
void |
kill()
Kill the process. |
void |
launch()
Set the process running on its own Thread. |
void |
registerAndBindToResource(Resource resource)
Binds the process to a resource. |
void |
registerResource(Resource resource)
Binds a given resource the the process. |
Field Detail |
public static final int UNSTARTED
public static final int RUNNING
public static final int DEAD
Method Detail |
public java.lang.String getName()
public long getPid()
public void launch()
public int getState()
public java.lang.ThreadGroup getThreadGroup()
public java.lang.ClassLoader getClassLoader()
public void kill()
public void registerResource(Resource resource)
resource
- The resource to bind to the process.public void registerAndBindToResource(Resource resource)
resource
- The resource to bind the process to.kill()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |