Package stanford.netdb.middleware
Class Queued_Person
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- stanford.netdb.middleware.Queued_Person
-
- All Implemented Interfaces:
java.io.Serializable,java.rmi.Remote,Person_i
public class Queued_Person extends java.rmi.server.UnicastRemoteObject implements Person_i
This class wraps its NetDB_* equivalent class to queue each method call.- See Also:
Queue,NetDB_Person, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Queued_Person(Datastore datastore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Hashtableinfo(java.lang.Long id, java.lang.String handle)Queue this call to the datastore, and await its turn.Personinsert_or_update(Person person)Queue this call to the datastore, and await its turn.java.lang.Longverify_or_die(java.lang.Long id)Queue this call to the datastore, and await its turn.java.lang.Longverify_or_die(java.lang.Long id, java.lang.String handle)Queue this call to the datastore, and await its turn.java.lang.Longverify_or_die(java.lang.String handle)Queue this call to the datastore, and await its turn.-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Queued_Person
public Queued_Person(Datastore datastore) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
-
Method Detail
-
info
public java.util.Hashtable info(java.lang.Long id, java.lang.String handle) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
insert_or_update
public Person insert_or_update(Person person) throws java.lang.Exception
Queue this call to the datastore, and await its turn.- Specified by:
insert_or_updatein interfacePerson_i- Throws:
java.lang.Exception
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.Long id) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.- Specified by:
verify_or_diein interfacePerson_i- Throws:
java.lang.Exception
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.String handle) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.- Specified by:
verify_or_diein interfacePerson_i- Throws:
java.lang.Exception
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.Long id, java.lang.String handle) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.- Specified by:
verify_or_diein interfacePerson_i- Throws:
java.lang.Exception
-
-