Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/remote/BlitzServer.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 import java.rmi.MarshalledObject; | |
6 | |
7 import net.jini.core.lease.Lease; | |
8 | |
9 import net.jini.core.transaction.Transaction; | |
10 import net.jini.core.transaction.TransactionException; | |
11 import net.jini.core.transaction.server.TransactionParticipant; | |
12 | |
13 import net.jini.core.event.RemoteEventListener; | |
14 import net.jini.core.event.EventRegistration; | |
15 | |
16 import net.jini.admin.JoinAdmin; | |
17 | |
18 import org.dancres.blitz.mangler.MangledEntry; | |
19 | |
20 import org.dancres.blitz.lease.SpaceUID; | |
21 | |
22 import com.sun.jini.start.ServiceProxyAccessor; | |
23 | |
24 import com.sun.jini.admin.DestroyAdmin; | |
25 | |
26 /** | |
27 <p> We must implement ServiceProxyAccessor to ensure that our smart proxy is | |
28 available to the appropriate jini.start descriptor. If this isn't | |
29 implemented, ServiceStarter will end up "seeing" a null proxy and may | |
30 assume something broke because there's no valid proxy. i.e. If we | |
31 don't implement the interface, the proxy is assumed to be null, unless | |
32 ProxyAccessor is implemented in which case the return from that will be | |
33 used.</p> | |
34 | |
35 <p> The impl class (BlitzServiceImpl) should also implement | |
36 net.jini.export.ProxyAccessor which is used by the activation system to | |
37 obtain a stub remote reference (not the smart proxy) for passing to clients. | |
38 If this interface isn't implemented it is assumed that: | |
39 | |
40 <ol> | |
41 <li> The class implements the (ActivationID, MarshalledObject) constructor. | |
42 </li> | |
43 <li> The class is serializable. </li> | |
44 <li> When serialized/marshalled, an object of this class will become a | |
45 suitable remote reference. This, of course, would be achieved using | |
46 replaceObject etc. to cause replacement of the server class with it's stub. | |
47 </li> | |
48 </ol> | |
49 | |
50 See com.sun.jini.phoenix.ActivationGroupImpl | |
51 */ | |
52 public interface BlitzServer extends AdminServer, ServiceProxyAccessor, | |
53 TransactionParticipant, | |
54 JS05Server, | |
55 Landlord, BackEndSpace, Remote { | |
56 } |