|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.friendshipsystems.fsshresourcemanager.FJobCancelerLinux
public class FJobCancelerLinux
The concrete FJobCanceler implementation to cancel processes on
a Linux host.
| Constructor Summary | |
|---|---|
FJobCancelerLinux()
|
|
| Method Summary | |
|---|---|
boolean |
confirmKill(java.lang.String response)
After a kill command was issued FIJobCanceler.confirmKill(String) tries to find out whether
the remote process was successfully killed. |
java.lang.String |
getConfirmKillCommand(int pid)
Method that returns command to issue to find out whether killing of a process succeeded. |
java.lang.String |
getKillCommand(int pid)
Method to determine the command to send to the remote host in order to kill the process with the previously determined PID. |
java.lang.String |
getPIDCommand(java.lang.String exe,
java.lang.String user)
Method that returns the command to issue in order to determine a program's PID. |
int |
getPIDFromResponse(java.lang.String response)
Method that parses the remote hosts's response to the PID request |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FJobCancelerLinux()
| Method Detail |
|---|
public java.lang.String getPIDCommand(java.lang.String exe,
java.lang.String user)
FIJobCanceler
getPIDCommand in interface FIJobCancelerexe - The program to determine the PID foruser - The user that submitted the program
public java.lang.String getKillCommand(int pid)
FIJobCanceler
getKillCommand in interface FIJobCancelerpid - The process id of the process to kill
public java.lang.String getConfirmKillCommand(int pid)
FIJobCanceler
getConfirmKillCommand in interface FIJobCancelerpid - The process id of the process that should be searched
public boolean confirmKill(java.lang.String response)
FIJobCancelerFIJobCanceler.confirmKill(String) tries to find out whether
the remote process was successfully killed. This method is used to parse the
answer received after the command returned from FIJobCanceler.getConfirmKillCommand(int)
was executed on the remote host.
confirmKill in interface FIJobCancelerresponse - The response received from the remote host after FIJobCanceler.getConfirmKillCommand(int)
was executed.
public int getPIDFromResponse(java.lang.String response)
FIJobCanceler
getPIDFromResponse in interface FIJobCancelerresponse - The response read after issuing the command
returned from FIJobCanceler.getPIDCommand(String, String).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||