|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheModel
A CacheModel maintains information about the configuration of the Transit cache subsystem. Instances of CacheModel shall be supplied to cache handler implementations as constructor arguments.
| Field Summary | |
|---|---|
static String |
CACHE_LAYOUT_KEY
The property key used to identify the cache layout model id when configuring a transit profile via an authorative url. |
static String |
CACHE_LOCATION_KEY
The property key used to identify the cache location when configuring a transit profile via an authorative url. |
| Method Summary | |
|---|---|
void |
addCacheListener(CacheListener listener)
Add a cache listener to the model. |
File |
getCacheDirectory()
Return the directory to be used by the cache handler as the cache directory. |
String |
getCacheDirectoryPath()
Return the directory path to be used by the cache handler. |
HostModel |
getHostModel(String id)
Return an identified host model. |
HostModel[] |
getHostModels()
Return the array of hosts configured for the cache. |
LayoutModel |
getLayoutModel()
Return the cache layout model. |
LayoutRegistryModel |
getLayoutRegistryModel()
Return the layout registry model. |
void |
removeCacheListener(CacheListener listener)
Remove a cache listener from the model. |
| Field Detail |
|---|
static final String CACHE_LOCATION_KEY
static final String CACHE_LAYOUT_KEY
| Method Detail |
|---|
String getCacheDirectoryPath()
throws RemoteException
RemoteException - if a remote exception occurs
File getCacheDirectory()
throws RemoteException
RemoteException - if a remote exception occurs
HostModel[] getHostModels()
throws RemoteException
RemoteException - if a remote exception occurs
HostModel getHostModel(String id)
throws UnknownKeyException,
RemoteException
id - the host identifier
UnknownKeyException - if the requested host id is unknown
RemoteException - if a remote exception occurs
void addCacheListener(CacheListener listener)
throws RemoteException
listener - the listener to add
RemoteException - if a remote exception occurs
void removeCacheListener(CacheListener listener)
throws RemoteException
listener - the listener to remove
RemoteException - if a remote exception occurs
LayoutModel getLayoutModel()
throws RemoteException
RemoteException - if a remote exception occurs
LayoutRegistryModel getLayoutRegistryModel()
throws RemoteException
RemoteException - if a remote exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||