public interface ClientInterface
Client
,
ClientManagerInterface
,
TaskInterface
,
Task
Modifier and Type | Method and Description |
---|---|
void |
addTask(TaskInterface task)
Add a task to the client's list of TaskInterface
|
void |
cleanTasks(long maxTaskInactivityDuration)
Destroy all the old tasks from the client's list of tasks
|
long |
connectedSince()
Return the duration since the client connected
|
java.lang.String |
getPath()
Return the path to the client's directory on the server
|
java.lang.String |
getSessionKey()
Return the sessionKey of the client
|
TaskInterface |
getTaskById(int idTask)
Return the task's id given in parameters
|
int |
getTaskId(TaskInterface task)
Return the id of the TaskInterface given in parameters
|
long |
inactiveSince()
Return the duration since the client sent his last request
|
void |
inActivity()
Actualize the date of the client's last action
|
void |
kill()
Destroy all the tasks from the client's list of tasks and the
directory related to the client
|
void |
removeTask(TaskInterface task)
Remove a task from the client's list of TaskInterface
|
java.lang.String getSessionKey()
java.lang.String getPath()
long connectedSince()
long inactiveSince()
void inActivity()
void addTask(TaskInterface task)
task
- the TaskInterface to add to the client's list of
TaskInterfaceTaskInterface getTaskById(int idTask)
int getTaskId(TaskInterface task)
void removeTask(TaskInterface task)
task
- the TaskInterface to remove from the cllient's list
of TaskInterfacevoid cleanTasks(long maxTaskInactivityDuration)
void kill()