Mercurial > hg > blitz_condensed
diff src/org/dancres/blitz/remote/EntryViewAdmin.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/dancres/blitz/remote/EntryViewAdmin.java Sat Mar 21 11:00:06 2009 +0000 @@ -0,0 +1,45 @@ +package org.dancres.blitz.remote; + +import java.rmi.Remote; +import java.rmi.RemoteException; + +import net.jini.core.transaction.TransactionException; +import net.jini.core.transaction.Transaction; + +import net.jini.space.JavaSpace; + +import org.dancres.blitz.EntryChit; + +import org.dancres.blitz.mangler.MangledEntry; + +import org.dancres.blitz.remote.view.EntryViewUID; + +/** + All operations associated with JavaSpaceAdmin are implemented via this + interface at the server-side + */ +public interface EntryViewAdmin extends Remote { + public JavaSpace getJavaSpaceProxy() throws RemoteException; + + /* + * @param isJavaSpace05 if <code>true</code> enforces any defined lease bounds + * and asserts locks when performing the scan/acquire internally. + * This is used internally to differentiate between old and new contents + * methods as JavaSpaceAdmin::contents does not do leases. + */ + public ViewResult newView(MangledEntry[] aTemplates, Transaction aTxn, + long aLeaseDuration, boolean isJavaSpace05, + long aLimit, int anInitialChunk) + throws RemoteException, TransactionException; + + public EntryChit[] getNext(EntryViewUID aEntryViewUID, int aChunkSize) + throws RemoteException; + + /** + Delete the entry associated with the specified cookie which would + have been passed down in an EntryChit + */ + public void delete(Object aCookie) throws RemoteException; + + public void close(EntryViewUID aEntryViewUID) throws RemoteException; +}