|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerInterface4User
Method Summary | |
---|---|
java.lang.Long |
createTask(java.lang.String token,
java.lang.Long projectId,
byte[] argument)
Creates a new task for specified user (by token) and project ID with an argument object which has to be serializable (!). |
void |
dropProject(java.lang.String token,
java.lang.Long projectId)
Drops a project and all related tasks and files. |
float |
getProjectProgress(java.lang.String token,
java.lang.Long projectId)
|
Project.Status |
getProjectStatus(java.lang.String token,
java.lang.Long projectId)
|
Task |
getTask(java.lang.String token,
java.lang.Long taskId)
|
Task.Status |
getTaskStatus(java.lang.String token,
java.lang.Long taskId)
|
java.util.List<java.lang.String> |
listProjectNames(java.lang.String token)
Lists project for user specified by the token. |
java.util.List<java.lang.Long> |
listTaskIds(java.lang.String token,
java.lang.Long projectId)
|
java.lang.String |
login(java.lang.String loginName,
java.lang.String password)
|
void |
logout(java.lang.String token)
|
Project |
openProject(java.lang.String token,
java.lang.String projectName)
Opens a project by name. |
void |
removeTask(java.lang.String token,
java.lang.Long projectId,
java.lang.Long taskId)
Deletes specified task. |
void |
runProject(java.lang.String token,
java.lang.Long projectId)
Sets project's flag to RUNNING. |
void |
setProjectMainClass(java.lang.String token,
java.lang.Long projectId,
java.lang.String canonicalClassName)
Sets project main class. |
void |
stopProject(java.lang.String token,
java.lang.Long projectId)
Sets project's flag to STOPPED. |
void |
uploadFile(java.lang.String token,
java.lang.Long projectId,
SharedFile file)
Uploads recent version of a file which will be distributed across executors. |
Method Detail |
---|
java.lang.String login(java.lang.String loginName, java.lang.String password) throws java.rmi.RemoteException
loginName
- password
-
java.rmi.RemoteException
void logout(java.lang.String token) throws java.rmi.RemoteException
token
-
java.rmi.RemoteException
Project openProject(java.lang.String token, java.lang.String projectName) throws java.rmi.RemoteException
token
- projectName
-
java.rmi.RemoteException
void setProjectMainClass(java.lang.String token, java.lang.Long projectId, java.lang.String canonicalClassName) throws java.rmi.RemoteException
ClusterTask
interface.
token
- projectId
- canonicalClassName
-
java.rmi.RemoteException
void dropProject(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
java.util.List<java.lang.String> listProjectNames(java.lang.String token) throws java.rmi.RemoteException
token
-
java.rmi.RemoteException
Project.Status getProjectStatus(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
float getProjectProgress(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
void runProject(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
void stopProject(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
void uploadFile(java.lang.String token, java.lang.Long projectId, SharedFile file) throws java.rmi.RemoteException
token
- projectId
- file
-
java.rmi.RemoteException
java.lang.Long createTask(java.lang.String token, java.lang.Long projectId, byte[] argument) throws java.rmi.RemoteException
token
- projectId
- argument
-
java.rmi.RemoteException
Task.Status getTaskStatus(java.lang.String token, java.lang.Long taskId) throws java.rmi.RemoteException
token
- taskId
-
java.rmi.RemoteException
java.util.List<java.lang.Long> listTaskIds(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
token
- projectId
-
java.rmi.RemoteException
Task getTask(java.lang.String token, java.lang.Long taskId) throws java.rmi.RemoteException
token
- taskId
-
java.rmi.RemoteException
void removeTask(java.lang.String token, java.lang.Long projectId, java.lang.Long taskId) throws java.rmi.RemoteException
token
- projectId
- taskId
-
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |