|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcluster5.client.ClusterInterfaceImpl
public class ClusterInterfaceImpl
| 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. |
static ClusterInterfaceImpl |
getInstance()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClusterInterfaceImpl getInstance()
public void reconnect()
ClusterInterface
reconnect in interface ClusterInterface
public java.lang.Long createTask(java.lang.Object argument)
throws java.rmi.RemoteException
ClusterInterface
createTask in interface ClusterInterfaceargument - a Serializable array, list or structure to be passed to the
project's main class as an argument of parameters.
java.rmi.RemoteException
public void dropProject()
throws java.rmi.RemoteException
ClusterInterface
dropProject in interface ClusterInterfacejava.rmi.RemoteException
public Project.Status getProjectStatus()
throws java.rmi.RemoteException
getProjectStatus in interface ClusterInterfacejava.rmi.RemoteException
public float getProjectProgress()
throws java.rmi.RemoteException
getProjectProgress in interface ClusterInterfacejava.rmi.RemoteException
public Task getTask(java.lang.Long taskId)
throws java.rmi.RemoteException
ClusterInterface
getTask in interface ClusterInterfaceTask or null if there is no such task
java.rmi.RemoteException
public Task.Status getTaskStatus(java.lang.Long taskId)
throws java.rmi.RemoteException
getTaskStatus in interface ClusterInterfacetaskId - task ID
java.rmi.RemoteException
public java.util.List<java.lang.String> listProjectNames()
throws java.rmi.RemoteException
listProjectNames in interface ClusterInterfacejava.rmi.RemoteException
public java.util.List<java.lang.Long> listTaskIds()
throws java.rmi.RemoteException
listTaskIds in interface ClusterInterfacejava.rmi.RemoteException
public boolean login(java.lang.String loginName,
java.lang.String password)
throws java.rmi.RemoteException
ClusterInterface
login in interface ClusterInterfacejava.rmi.RemoteException
public void logout()
throws java.rmi.RemoteException
ClusterInterface
logout in interface ClusterInterfacejava.rmi.RemoteException
public boolean openProject(java.lang.String projectName)
throws java.rmi.RemoteException
ClusterInterface
openProject in interface ClusterInterfacejava.rmi.RemoteException
public void removeTask(java.lang.Long taskId)
throws java.rmi.RemoteException
ClusterInterface
removeTask in interface ClusterInterfacetaskId - task ID
java.rmi.RemoteException
public void runProject()
throws java.rmi.RemoteException
ClusterInterface
runProject in interface ClusterInterfacejava.rmi.RemoteException
public void setProjectLibraries(java.lang.Class[] classes)
throws java.lang.RuntimeException,
java.rmi.RemoteException
ClusterInterface
setProjectLibraries in interface ClusterInterfaceclasses - list of classes needed to run the main class on remote machines
java.lang.RuntimeException
java.rmi.RemoteException
public void setProjectMainClass(java.lang.Class clazz)
throws java.rmi.RemoteException
ClusterInterface
setProjectMainClass in interface ClusterInterfaceclazz - main class of the project
java.rmi.RemoteException
public void stopProject()
throws java.rmi.RemoteException
ClusterInterface
stopProject in interface ClusterInterfacejava.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||