public class RmiCache extends Object implements Cache
 An RMI client to the RmiCacheServer, implementing an RMI front end
 to a LocalCache.
 
DEFAULT_UNIQUE_MET_KEY| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clears the current cache. 
 | 
boolean | 
contains(String productName)
Checks the cache to determine if a  
Product with the given
 productName exists. | 
URL | 
getFileManagerUrl()
Gets the  
URL of the File Manager that this Cache communicates
 with. | 
void | 
setFileManager(URL fmUrl)
Specifies the  
URL to the File Manager to connect this Cache to. | 
void | 
setUniqueElementName(String uniqueElementName)
Sets the name of the met element to use as the identifier of a
  
Product for use in determining whether the Product is in the
 Cache. | 
void | 
setUniqueElementProductTypeNames(List<String> uniqueElementProductTypeNames)
Sets the names of the  
ProductTypes to cache. | 
int | 
size()  | 
void | 
sync()
Synchronizes this Cache with the File Manager specified by the
  
Cache.setFileManager(URL) method. | 
void | 
sync(List<String> uniqueElementProductTypeNames)
Synchronizes this Cache with the File Manager specified by the
  
Cache.setFileManager(URL) method. | 
void | 
sync(String uniqueElementName,
    List<String> uniqueElementProductTypeNames)
Synchronizes this Cache with the File Manager specified by the
  
Cache.setFileManager(URL) method. | 
public RmiCache(String rmiCacheServerUrn) throws InstantiationException
InstantiationExceptionpublic void clear()
Cachepublic boolean contains(String productName)
CacheProduct with the given
 productName exists.public void setFileManager(URL fmUrl)
CacheURL to the File Manager to connect this Cache to.setFileManager in interface CachefmUrl - The URL of the File Manager to cache Products
            from.public int size()
public void sync(List<String> uniqueElementProductTypeNames) throws CacheException
CacheCache.setFileManager(URL) method.sync in interface CacheuniqueElementProductTypeNames - The List ProductTypes to cache
            Products from.CacheException - If there is any error.public void sync(String uniqueElementName, List<String> uniqueElementProductTypeNames) throws CacheException
CacheCache.setFileManager(URL) method.sync in interface CacheuniqueElementName - The met key identifier to use for determining Product
            existance (if different than "CAS.ProductName").uniqueElementProductTypeNames - The List of ProductTypes to cache
            Products from.CacheException - If there is any error.public void setUniqueElementProductTypeNames(List<String> uniqueElementProductTypeNames)
CacheProductTypes to cache.setUniqueElementProductTypeNames in interface CacheuniqueElementProductTypeNames - A List of java.util.String names of
            ProductTypes.public void sync()
          throws CacheException
CacheCache.setFileManager(URL) method. This method also assumes that the
 unique element (identified by Cache.setUniqueElementName(String) and
 the List of ProductTypes have also been set appropriate
 (e.g., by using Cache.setUniqueElementProductTypeNames(List).sync in interface CacheCacheException - If any error occurs.public void setUniqueElementName(String uniqueElementName)
CacheProduct for use in determining whether the Product is in the
 Cache.setUniqueElementName in interface CacheuniqueElementName - The name of the met element used to uniquely identify
            Products.Copyright © 1999–2017 Apache OODT. All rights reserved.