KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > client > wfservice > CacheAdministration


1 package org.enhydra.shark.api.client.wfservice;
2
3 import org.enhydra.shark.api.client.wfbase.BaseException;
4
5 /**
6  * Interface used to perform some administrative operations on shark's caches.
7  * @author Sasa Bojanic
8  */

9 public interface CacheAdministration {
10
11    /**
12     * This method is used to let shark know who uses this API.
13     *
14     * @param userId String representing user Id.
15     *
16     */

17    void connect (String JavaDoc userId);
18
19    /** Returns process cache size. */
20    int getProcessCacheSize () throws BaseException;
21
22    /** Changes the size of process cache. */
23    void setProcessCacheSize (int size) throws BaseException;
24
25    /** Returns the number of currently cached process objects. */
26    int howManyCachedProcesses () throws BaseException;
27
28    /** Clears process cache. */
29    void clearProcessCache () throws BaseException;
30
31    /** Returns resource cache size. */
32    int getResourceCacheSize () throws BaseException;
33
34    /** Changes the size of resource cache. */
35    void setResourceCacheSize (int size) throws BaseException;
36
37    /** Returns the number of currently cached resource objects. */
38    int howManyCachedResources () throws BaseException;
39
40    /** Clears resource cache. */
41    void clearResourceCache () throws BaseException;
42
43 }
44
Popular Tags