asmuts 02/01/14 22:20:50
Added: src/java/org/apache/stratum/jcs/auxiliary/disk/jisp/behavior
IJISPCacheAttributes.java IJISPCacheService.java
Log:
interfaces for the jisp disk cache
Revision Changes Path
1.1
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/disk/jisp/behavior/IJISPCacheAttributes.java
Index: IJISPCacheAttributes.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.stratum.jcs.auxiliary.disk.jisp.behavior;
import org.apache.stratum.jcs.auxiliary.behavior.IAuxiliaryCacheAttributes;
///////////////////////////////////////////////////////////////////////////
public interface IJISPCacheAttributes extends IAuxiliaryCacheAttributes {
////////////////////////////////////
public void setDiskPath( String path );
////////////////////////////////////
public String getDiskPath( );
////////////////////////////////////
// whether the disk cache should clear the old files
// so there are no lingering elements.
public void setClearOnStart( boolean clear );
////////////////////////////////////
public boolean getClearOnStart( );
} // end interface
1.1
jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/auxiliary/disk/jisp/behavior/IJISPCacheService.java
Index: IJISPCacheService.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.stratum.jcs.auxiliary.disk.jisp.behavior;
import org.apache.stratum.jcs.auxiliary.disk.jisp.*;
import org.apache.stratum.jcs.engine.*;
import org.apache.stratum.jcs.engine.behavior.*;
import org.apache.stratum.jcs.access.exception.*;
import java.rmi.*;
import java.io.*;
/** Used to retrieve and update the disk cache. */
public interface IJISPCacheService extends ICacheService {
/**
* Puts a cache item to the cache.
*/
public void update(ICacheElement item, byte requesterId) throws IOException;
/**
* Removes the given key from the specified cache.
*/
public void remove(String cacheName, Serializable key, byte requesterId) throws
IOException;
/**
* Remove all keys from the sepcified cache.
*/
public void removeAll(String cacheName, byte requesterId) throws IOException;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>