|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cluster5.server.ServerInterface4TerminalsImpl cluster5.server.ServerInterface4UserImpl
public class ServerInterface4UserImpl
Constructor Summary | |
---|---|
ServerInterface4UserImpl()
|
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. |
Methods inherited from class cluster5.server.ServerInterface4TerminalsImpl |
---|
announceTerminalDown, announceTerminalUp, getFileData, getTask, listFiles, setResult |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerInterface4UserImpl()
Method Detail |
---|
public java.lang.Long createTask(java.lang.String token, java.lang.Long projectId, byte[] argument) throws java.rmi.RemoteException
ServerInterface4User
createTask
in interface ServerInterface4User
java.rmi.RemoteException
public void dropProject(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
ServerInterface4User
dropProject
in interface ServerInterface4User
java.rmi.RemoteException
public Task getTask(java.lang.String token, java.lang.Long taskId) throws java.rmi.RemoteException
getTask
in interface ServerInterface4User
java.rmi.RemoteException
public Task.Status getTaskStatus(java.lang.String token, java.lang.Long taskId) throws java.rmi.RemoteException
getTaskStatus
in interface ServerInterface4User
java.rmi.RemoteException
public java.util.List<java.lang.String> listProjectNames(java.lang.String token) throws java.rmi.RemoteException
ServerInterface4User
listProjectNames
in interface ServerInterface4User
java.rmi.RemoteException
public java.util.List<java.lang.Long> listTaskIds(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
listTaskIds
in interface ServerInterface4User
java.rmi.RemoteException
public java.lang.String login(java.lang.String loginName, java.lang.String password) throws java.rmi.RemoteException
login
in interface ServerInterface4User
java.rmi.RemoteException
public void logout(java.lang.String token) throws java.rmi.RemoteException
logout
in interface ServerInterface4User
java.rmi.RemoteException
public Project openProject(java.lang.String token, java.lang.String projectName) throws java.rmi.RemoteException
ServerInterface4User
openProject
in interface ServerInterface4User
java.rmi.RemoteException
public void setProjectMainClass(java.lang.String token, java.lang.Long projectId, java.lang.String canonicalClassName) throws java.rmi.RemoteException
ServerInterface4User
ClusterTask
interface.
setProjectMainClass
in interface ServerInterface4User
java.rmi.RemoteException
public void uploadFile(java.lang.String token, java.lang.Long projectId, SharedFile file) throws java.rmi.RemoteException
ServerInterface4User
uploadFile
in interface ServerInterface4User
java.rmi.RemoteException
public Project.Status getProjectStatus(java.lang.String token, java.lang.Long projectId)
getProjectStatus
in interface ServerInterface4User
public float getProjectProgress(java.lang.String token, java.lang.Long projectId) throws java.rmi.RemoteException
getProjectProgress
in interface ServerInterface4User
java.rmi.RemoteException
public void removeTask(java.lang.String token, java.lang.Long projectId, java.lang.Long taskId) throws java.rmi.RemoteException
ServerInterface4User
removeTask
in interface ServerInterface4User
java.rmi.RemoteException
public void runProject(java.lang.String token, java.lang.Long projectId)
ServerInterface4User
runProject
in interface ServerInterface4User
public void stopProject(java.lang.String token, java.lang.Long projectId)
ServerInterface4User
stopProject
in interface ServerInterface4User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |