com.sapportals.wcm.service.cache

Interface ICacheService

All Superinterfaces:
IService

public interface ICacheService
extends IService

Provides a service to create caches.


Field Summary
static String CACHE_SERVICE
           
 
Method Summary
 ICache getCache(String cacheID)
          Get a preconfigured cache (with properties taken from configuration).
 ICache getCache(String cacheID, Properties properties)
          Get a cache for the given ID (and given properties, if cache does not already exist): If no cache exists for the given ID, it will be created with the given properties.
 IClusterCacheArea getCacheArea(String ID)
          Get an instance of an IClusterCacheArea for the given area ID.
 String getUniqueCacheID()
          Get a new, unique cache ID that can be used in a call to getCache(cacheID,properties).
 
Methods inherited from interface com.sapportals.wcm.service.IService
getDescription, getDescription, getID
 

Field Detail

CACHE_SERVICE

public static final String CACHE_SERVICE
See Also:
Constant Field Values
Method Detail

getUniqueCacheID

public String getUniqueCacheID()
Get a new, unique cache ID that can be used in a call to getCache(cacheID,properties).

Returns:
a String with a new, internal, unique cache ID.

getCache

public ICache getCache(String cacheID,
                       Properties properties)
                throws ClassNotFoundException,
                       CacheException
Get a cache for the given ID (and given properties, if cache does not already exist): If no cache exists for the given ID, it will be created with the given properties. If a cache already exists for the given ID, the existing cache is returned and the properties are ignored.

Parameters:
cacheID - a String with the id of the cache to get.
properties - the Properties to use when a new cache for a non-exisiting ID is to be created.
Returns:
an ICache for the given ID (and the given properties, if the cache didn't already exist).
Throws:
ClassNotFoundException
CacheException

getCache

public ICache getCache(String cacheID)
                throws ClassNotFoundException,
                       CacheException
Get a preconfigured cache (with properties taken from configuration).

Parameters:
cacheID - a String with the id of a preconfigured cache.
Returns:
a preconfigured ICache for the given ID.
Throws:
ClassNotFoundException
CacheException

getCacheArea

public IClusterCacheArea getCacheArea(String ID)
                               throws WcmException
Get an instance of an IClusterCacheArea for the given area ID.

Parameters:
ID - a String with the area ID of the clustered cache area.
Throws:
WcmException - if the cache area couldn't be created.


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.