public interface SchedulerControlling extends RmiStatusProviding
#loadTargetsFromSet: Provide a file holding other file names
pointing to target-definition xml-files.addTarget(target.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.| Modifier and Type | Method and Description |
|---|---|
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.
|
rmiProvideStatusboolean addTarget(TargetDefinition newtd) throws RemoteException
RemoteExceptionboolean removeTarget(String name) throws RemoteException
addTarget(target.TargetDefinition) method.RemoteExceptionvoid removeAllTargets()
throws RemoteException
RemoteExceptionboolean reloadTargets()
throws RemoteException
RemoteExceptionTargetDefinition getTarget(String name) throws RemoteException
RemoteExceptionCollection<TargetDefinition> getAllTargets() throws RemoteException
RemoteExceptionList<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.RemoteExceptionString getTelescope() throws RemoteException
RemoteException