|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchedulerControlling
This remote interface defines methods to allow remote access to a
scheduler's target list. This interface is intended for human interaction
to the scheduling process. Please note that the name of a target
must be unique. It is the name of the target-definition file, stripped for
the extension.
A brief summary of the methods provided follows:
#loadTargetsFromSet: Provide a file holding other file names
pointing to target-definition xml-files.addTarget(stella.TargetDefinition): Adds a single target. Argument is a File holding
a target-definition.#addTargetsFromSet: Adds multiple targets. Argument is a file
holding other file names pointing to target-definition xml-files.removeTarget(java.lang.String): Remove the target with the given name.#removeAll: Remove all targets.#listTargets: List all targets by name to standard out.#disableTarget: Disable the target given by its name by
changing it's Object access atribute to disabled.#enableTarget: Enable the target given by its name by
changing it's Object access atribute to enabled.
| Method Summary | |
|---|---|
boolean |
addTarget(TargetDefinition newtd)
Adds a single target. |
Collection<TargetDefinition> |
getAllTargets()
Returna a list of all targets accessible. |
TargetDefinition |
getTarget(String name)
Returns a single target specified by its name. |
String |
getTelescope()
Returns the telescope id this scheduler refers to. |
List<String> |
listAllTargets()
List all target names available to this scheduler. |
boolean |
reloadTargets()
Reloads targets to get to a pre-defined state. |
void |
removeAllTargets()
Removes all targets from the scheduler's list. |
boolean |
removeTarget(String name)
Removes the target from the scheduler's list. |
| Methods inherited from interface util.rmi.RmiStatusProviding |
|---|
rmiProvideStatus |
| Method Detail |
|---|
boolean addTarget(TargetDefinition newtd)
throws RemoteException
RemoteException
boolean removeTarget(String name)
throws RemoteException
addTarget(stella.TargetDefinition) method.
RemoteException
void removeAllTargets()
throws RemoteException
RemoteException
boolean reloadTargets()
throws RemoteException
RemoteException
TargetDefinition getTarget(String name)
throws RemoteException
RemoteException
Collection<TargetDefinition> getAllTargets()
throws RemoteException
RemoteException
List<String> listAllTargets()
throws RemoteException
getAllTargets().
Note that this method must return a list, because Strings have a
natural ordering, thus it makes sense to return a list of strings rather
than a collection to allow callers of this method to do sorting.
RemoteException
String getTelescope()
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||