|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.innergrid.kernel.genericutils.PagedRequestManager<E>
E - Specific PagedRequest to managepublic final class PagedRequestManager<E extends PagedRequest<?>>
Centralized management for asynchronous requests being performed.
| Constructor Summary | |
|---|---|
PagedRequestManager()
Private constructor. |
|
| Method Summary | |
|---|---|
void |
addPagedRequest(E req)
Adds a PagedRequest to the collection of the manager. |
protected void |
finalize()
|
java.util.List<E> |
getAllPagedRequests()
Gets all paged requests that are instances of the specified class. |
E |
getPagedRequest(long id)
Obtains a PagedRequest from the managed pool. |
int |
getPagedRequestsSize()
Gets the size of the collection of managed paged requests. |
void |
removeAllPagedRequest()
Cancels and Removes all paged request from the collection of the manager. |
void |
removePagedRequest(long id)
Removes a paged request from the collection of the manager, given its 'id'. |
java.lang.String |
toString()
Gets a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PagedRequestManager()
| Method Detail |
|---|
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public void addPagedRequest(E req)
throws org.apache.commons.lang.NullArgumentException
req - PagedRequest to be added
org.apache.commons.lang.NullArgumentException - if req is null
public E getPagedRequest(long id)
throws PagedRequestNotFoundException,
PagedRequestNotAllowedException
id - Identifier of the asked for PagedRequest
PagedRequestNotFoundException - if there is no PagedRequest with that id
PagedRequestNotAllowedException - if the current user did not create the
requestpublic java.util.List<E> getAllPagedRequests()
public int getPagedRequestsSize()
public void removeAllPagedRequest()
public void removePagedRequest(long id)
throws PagedRequestNotFoundException,
PagedRequestNotAllowedException
id - identifier of the paged request to be removed
PagedRequestNotFoundException - if there is no request matching the id
PagedRequestNotAllowedException - if the current user did not create
the requestpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||