Mercurial > hg > blitz_condensed
diff src/org/dancres/blitz/remote/JS05Server.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/JS05Server.java Sat Mar 21 11:00:06 2009 +0000 @@ -0,0 +1,39 @@ +package org.dancres.blitz.remote; + +import java.util.List; + +import java.rmi.Remote; +import java.rmi.RemoteException; +import java.rmi.MarshalledObject; + +import net.jini.core.transaction.Transaction; +import net.jini.core.transaction.TransactionException; + +import net.jini.core.event.EventRegistration; +import net.jini.core.event.RemoteEventListener; + +import net.jini.id.Uuid; + +import org.dancres.blitz.mangler.MangledEntry; + +/** + Back end server interface which defines all the functionality required for + JavaSpace05. Note that the contents operation is handled via EntryViewAdmin + + @see org.dancres.blitz.remote.EntryViewAdmin + */ +public interface JS05Server extends Remote { + public List write(List aMangledEntries, Transaction aTxn, List aLeaseTimes) + throws RemoteException, TransactionException; + + public List take(MangledEntry[] aTemplates, Transaction aTxn, + long aWaitTime, long aLimit) + throws RemoteException, TransactionException; + + public EventRegistration + registerForVisibility(MangledEntry[] aTemplates, Transaction aTxn, + RemoteEventListener aListener, long aLeaseTime, + MarshalledObject aHandback, + boolean visibilityOnly) + throws RemoteException, TransactionException; +}