|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterInterface
This is the interface for common user to access the cluster services.
Method Summary | |
---|---|
java.lang.Long |
createTask(java.lang.Object argument)
Creates new task to be evaluated on a remote machine by the project's main class. |
void |
dropProject()
Deletes currently opened project with all associated tasks and files. |
float |
getProjectProgress()
|
Project.Status |
getProjectStatus()
|
Task |
getTask(java.lang.Long taskId)
Returns instance of a task. |
Task.Status |
getTaskStatus(java.lang.Long taskId)
|
java.util.List<java.lang.String> |
listProjectNames()
|
java.util.List<java.lang.Long> |
listTaskIds()
|
boolean |
login(java.lang.String loginName,
java.lang.String password)
Log in to the cluster server. |
void |
logout()
Logout from the cluster server. |
boolean |
openProject(java.lang.String projectName)
Opens a project identified by the name. |
void |
reconnect()
If a RemoteException has been thrown due to communocation problem, call this method to renew connection to the server. |
void |
removeTask(java.lang.Long taskId)
Deletes specified task. |
void |
runProject()
Sets the project's flag to RUNNING singalizing the scheduler that this project configuration is ready to evaluate the project's tasks. |
void |
setProjectLibraries(java.lang.Class[] classes)
Sets list of classes required by this project to be successfully evaluated. |
void |
setProjectMainClass(java.lang.Class clazz)
Sets main class of a project. |
void |
stopProject()
Sets the project's flag to STOPPED so no further tasks will be processed. |
Method Detail |
---|
boolean login(java.lang.String loginName, java.lang.String password) throws java.rmi.RemoteException
loginName
- password
-
java.rmi.RemoteException
void logout() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean openProject(java.lang.String projectName) throws java.rmi.RemoteException
projectName
-
java.rmi.RemoteException
void setProjectMainClass(java.lang.Class clazz) throws java.rmi.RemoteException
clazz
- main class of the project
java.rmi.RemoteException
java.util.List<java.lang.String> listProjectNames() throws java.rmi.RemoteException
java.rmi.RemoteException
void setProjectLibraries(java.lang.Class[] classes) throws java.rmi.RemoteException
classes
- list of classes needed to run the main class on remote machines
java.rmi.RemoteException
void runProject() throws java.rmi.RemoteException
java.rmi.RemoteException
void stopProject() throws java.rmi.RemoteException
java.rmi.RemoteException
Project.Status getProjectStatus() throws java.rmi.RemoteException
java.rmi.RemoteException
float getProjectProgress() throws java.rmi.RemoteException
java.rmi.RemoteException
void dropProject() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.Long createTask(java.lang.Object argument) throws java.rmi.RemoteException
argument
- a Serializable
array, list or structure to be passed to the
project's main class as an argument of parameters.
java.rmi.RemoteException
Task.Status getTaskStatus(java.lang.Long taskId) throws java.rmi.RemoteException
taskId
- task ID
java.rmi.RemoteException
java.util.List<java.lang.Long> listTaskIds() throws java.rmi.RemoteException
java.rmi.RemoteException
Task getTask(java.lang.Long taskId) throws java.rmi.RemoteException
taskId
-
Task
or null if there is no such task
java.rmi.RemoteException
void removeTask(java.lang.Long taskId) throws java.rmi.RemoteException
taskId
- task ID
java.rmi.RemoteException
void reconnect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |