com.openexchange.admin.rmi.impl
Class OXTaskMgmtImpl
java.lang.Object
com.openexchange.admin.rmi.impl.OXCommonImpl
com.openexchange.admin.rmi.impl.OXTaskMgmtImpl
- All Implemented Interfaces:
- OXTaskMgmtInterface, Remote
public class OXTaskMgmtImpl
- extends OXCommonImpl
- implements OXTaskMgmtInterface
OXTaskMgmtImpl
public OXTaskMgmtImpl()
throws StorageException
- Throws:
StorageException
deleteJob
public void deleteJob(Context ctx,
Credentials cred,
int id)
throws RemoteException,
InvalidDataException,
InvalidCredentialsException,
StorageException,
TaskManagerException
- Description copied from interface:
OXTaskMgmtInterface
- This method is used to delete finished jobs (jobs != running) from the list
- Specified by:
deleteJob
in interface OXTaskMgmtInterface
- Throws:
RemoteException
InvalidDataException
InvalidCredentialsException
StorageException
TaskManagerException
flush
public void flush(Context ctx,
Credentials cred)
throws RemoteException,
InvalidDataException,
InvalidCredentialsException,
StorageException,
TaskManagerException
- Description copied from interface:
OXTaskMgmtInterface
- Flushes all jobs from the queue which are finished ( != running)
- Specified by:
flush
in interface OXTaskMgmtInterface
- Throws:
RemoteException
InvalidDataException
InvalidCredentialsException
StorageException
TaskManagerException
getJobList
public String getJobList(Context ctx,
Credentials cred)
throws RemoteException,
InvalidDataException,
InvalidCredentialsException,
StorageException
- Specified by:
getJobList
in interface OXTaskMgmtInterface
- Returns:
-
- Throws:
RemoteException
InvalidDataException
InvalidCredentialsException
StorageException
getTaskResults
public Object getTaskResults(Context ctx,
Credentials cred,
int id)
throws RemoteException,
InvalidCredentialsException,
StorageException,
InterruptedException,
ExecutionException,
InvalidDataException
- Description copied from interface:
OXTaskMgmtInterface
- Gets the result from the task with the specified id
- Specified by:
getTaskResults
in interface OXTaskMgmtInterface
- Returns:
- an object which has to be casted to the return value specified in the method which
adds the job
- Throws:
RemoteException
InvalidCredentialsException
StorageException
InterruptedException
ExecutionException
InvalidDataException
getTaskResults
public Object getTaskResults(int id)
throws InterruptedException,
ExecutionException,
InvalidDataException
- Throws:
InterruptedException
ExecutionException
InvalidDataException
isTaskDone
public boolean isTaskDone(int id)
throws InvalidDataException
- Throws:
InvalidDataException