|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedg.workload.userinterface.jclient.Shadow
This class provides the core management for interactive jobs. once the edg-grid-console-shadow has started successfully and the job is running the user should interact with the submitted job (or might have attached to a previous job) At the end of the interaction the background bypass process should be killed and the I/O pipes have to be removed. This is done automatically by the 'detach' method. The shadow class must be used togheter with an implementation of the Listener interface, which actually performs the final visual interactivity with the user.
Listener
Method Summary | |
void |
detach()
Finalize the Shadow instance. |
java.lang.String |
emptyOut()
Read any possible message stored inside the output pipeline |
void |
finalize()
Class Destructor |
static java.lang.String |
getHost()
Retrieve the Name of the host |
JobId |
getJobId()
Return the JobId instance linked to the Shadow |
int |
getPid()
Retrieve the process id corresponding to the shadow background process |
java.lang.String |
getPipeIn()
Retrieve the name of the pipe that listens for the standard input |
java.lang.String |
getPipeOut()
Retrieve the name of the pipe that listens for the standard output |
int |
getPort()
retrieve the port where the shadow proces is listening to |
void |
run()
|
void |
writeIn(java.lang.String str)
Write into the input stream pipeline |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void finalize()
public void run()
run
in interface java.lang.Runnable
public void writeIn(java.lang.String str) throws java.io.IOException, java.lang.NoSuchFieldException
str
- the string to be written
throws
- IOException If any error occurred while writing in the pipe
java.lang.NoSuchFieldException
- if the inputPipe has not been created yet
java.io.IOException
public java.lang.String emptyOut() throws java.io.IOException, java.lang.NoSuchFieldException
throws
- IOException If any error occurred while reading in the pipe
java.lang.NoSuchFieldException
- if the outputPipe has not been created yet
java.io.IOException
public void detach() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- if the pipes have not been created yetpublic java.lang.String getPipeIn() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- the pipe has not been created yetpublic java.lang.String getPipeOut() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- the pipe has not been created yetpublic int getPid() throws java.lang.NoSuchFieldException, java.io.IOException
java.lang.NoSuchFieldException
- the process has not been launched yet
java.io.IOException
public static java.lang.String getHost() throws java.net.UnknownHostException
java.net.UnknownHostException
- the system is unable to retrieve host informationpublic int getPort() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- the process has not been launched yetpublic JobId getJobId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |