comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:3dc0c5604566
1 package org.dancres.blitz.remote;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5
6 import net.jini.core.transaction.TransactionException;
7 import net.jini.core.transaction.Transaction;
8
9 import net.jini.space.JavaSpace;
10
11 import org.dancres.blitz.EntryChit;
12
13 import org.dancres.blitz.mangler.MangledEntry;
14
15 import org.dancres.blitz.remote.view.EntryViewUID;
16
17 /**
18 All operations associated with JavaSpaceAdmin are implemented via this
19 interface at the server-side
20 */
21 public interface EntryViewAdmin extends Remote {
22 public JavaSpace getJavaSpaceProxy() throws RemoteException;
23
24 /*
25 * @param isJavaSpace05 if <code>true</code> enforces any defined lease bounds
26 * and asserts locks when performing the scan/acquire internally.
27 * This is used internally to differentiate between old and new contents
28 * methods as JavaSpaceAdmin::contents does not do leases.
29 */
30 public ViewResult newView(MangledEntry[] aTemplates, Transaction aTxn,
31 long aLeaseDuration, boolean isJavaSpace05,
32 long aLimit, int anInitialChunk)
33 throws RemoteException, TransactionException;
34
35 public EntryChit[] getNext(EntryViewUID aEntryViewUID, int aChunkSize)
36 throws RemoteException;
37
38 /**
39 Delete the entry associated with the specified cookie which would
40 have been passed down in an EntryChit
41 */
42 public void delete(Object aCookie) throws RemoteException;
43
44 public void close(EntryViewUID aEntryViewUID) throws RemoteException;
45 }