|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.pgs.client.ClientHelper
jpl.mipl.pgs.client.controller
public class controller
User nterface for starting the controller server.
<b>
Copyright 2007-Present, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledge.
</b>
| Field Summary | |
|---|---|
static String |
RECONFIGURE
|
static String |
SCHEDULER_COMMAND
|
static String |
SCHEDULER_RECONFIG_FILE
|
| Fields inherited from class jpl.mipl.pgs.client.ClientHelper |
|---|
arguments, passWd, testParsing, userId |
| Constructor Summary | |
|---|---|
controller(String[] args)
Constructor |
|
| Method Summary | |
|---|---|
void |
abort(String processName,
Long pIID,
String reason)
Abort the specified process instance. |
void |
configure(Map newConfig)
Update the controller configuration |
String |
doCommand(Map cmd)
This mechanism allows this controller interface to send commands to the project specific Scheduler. |
String |
getUsage()
Usage message |
void |
init()
Obtain user data to create a new session and find the controler server. |
static void |
main(String[] args)
Main program for interacting with the controller |
void |
pause(String psname,
Long piid,
String reason,
String nodeName)
Pause a process instance |
void |
resume(String processName,
Long pIID,
String nodeName)
Resume a process instance |
void |
sendRequest(Map request)
Send a request to the controller server for execution |
void |
start()
Starts the controller server |
void |
stop(boolean forceIt)
Stop the controller server |
void |
stop(String processName,
Long pIID,
String reason)
Stop a process instance |
| Methods inherited from class jpl.mipl.pgs.client.ClientHelper |
|---|
getValue, getValue, getValues, getValues, isCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RECONFIGURE
public static final String SCHEDULER_COMMAND
public static final String SCHEDULER_RECONFIG_FILE
| Constructor Detail |
|---|
public controller(String[] args)
throws Exception
Exception| Method Detail |
|---|
public String getUsage()
getUsage in class ClientHelper
public void init()
throws Exception
init in class ClientHelperthrown - if session not created or controller not found
Exception
public void start()
throws Exception
thrown - if controller cannot be started
Exception
public void stop(boolean forceIt)
throws Exception
thrown - if controller cannot be stopped
Exception
public void pause(String psname,
Long piid,
String reason,
String nodeName)
throws RemoteException
pause in interface ProcessControl_IFpsname - the name of the process that is to be stopped.piid - the ID of the process instance that is to be stopped.reason - an explanation, if appropriate, for the puase.nodeName - the name of the node where the process is to pause.
thrown - if process instance cannot be paused
RemoteException
public void resume(String processName,
Long pIID,
String nodeName)
throws RemoteException
resume in interface ProcessControl_IFthrown - if process instance cannot be resumed
RemoteException
public void stop(String processName,
Long pIID,
String reason)
throws RemoteException
stop in interface ProcessControl_IFthrown - if process instance cannot be stopped
RemoteException
public void abort(String processName,
Long pIID,
String reason)
throws RemoteException
abort in interface ProcessControl_IFthrown - if process instance cannot be aborted
RemoteException
public void sendRequest(Map request)
throws Exception
thrown - if request cannot be released
Exception
public void configure(Map newConfig)
throws Exception
thrown - if configuration cannot be updated
Exception
public String doCommand(Map cmd)
throws Exception
thrown - if the Scheduler cannot execute the given command
Exception
public static final void main(String[] args)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||