jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1080607 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java
Date Fri, 11 Mar 2011 15:31:32 GMT
Author: stefan
Date: Fri Mar 11 15:31:32 2011
New Revision: 1080607

URL: http://svn.apache.org/viewvc?rev=1080607&view=rev
Log:
drafting a MicroKernel api (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java?rev=1080607&r1=1080606&r2=1080607&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernel.java
Fri Mar 11 15:31:32 2011
@@ -77,16 +77,20 @@ public interface MicroKernel {
 
     long getLength(String dsId) throws MicroKernelException;
     int /* count */ read(String dsId, byte[] buf, int off, int size) throws MicroKernelException;
+    // alternative a:
     String /* dsId */ write(byte[] data, int length) throws MicroKernelException;
     String /* dsId */ join(String[] dsIds, boolean dispose) throws MicroKernelException;
+    // alternative b:
+    // tmp: isTemporary, timeToLive=3600s, if tmp=false -> returned dsId is a hash of
the content
+    String /* dsId */ append(String dsBaseId, byte[] data, int size, boolean tmp) throws
MicroKernelException;
 
 
 
     /* @todo how should nodeId be exposed? */
 
     // specialized methods for reading flat hierarchies
-    String[] /* nodeNames */ getChildNodes(String idOrPath, String revisionId) throws MicroKernelException;
     String[] /* nodeNames */ getChildNodes(String idOrPath, long offset, long count, String
revisionId) throws MicroKernelException;
+    // maybe represented as special property (childNodeCount) -> no need for specific
method?
     long getChildNodeCount(String idOrPath, String revisionId) throws MicroKernelException;
 
     /* @todo return entire subtree in json format? how should flat hierarchies be handled/represented?
*/



Mime
View raw message