Package stanford.netdb.middleware
Class Queued_Model
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- stanford.netdb.middleware.Queued_Model
-
- All Implemented Interfaces:
java.io.Serializable,java.rmi.Remote,Model_i
public class Queued_Model extends java.rmi.server.UnicastRemoteObject implements Model_i
This class wraps its NetDB_* equivalent class to queue each method call.- See Also:
Queue,NetDB_Model, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Queued_Model(Datastore datastore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Modelcommit(Model model)Queue this call to the datastore, and await its turn.voiddelete(java.lang.String make, java.lang.String model)Queue this call to the datastore, and await its turn.java.util.Hashtableinfo(java.lang.Long id, java.lang.String make, java.lang.String model)Queue this call to the datastore, and await its turn.java.util.Hashtableinfo(java.lang.String make, java.lang.String model)Queue this call to the datastore, and await its turn.java.util.Hashtablelist(java.lang.String filter)Queue this call to the datastore, and await its turn.java.lang.Booleansupplant(java.lang.Long old_id, java.lang.String new_make, java.lang.String new_model)Queue this call to the datastore, and await its turn.java.lang.Longverify_or_die(java.lang.Long id)java.lang.Longverify_or_die(java.lang.Long id, java.lang.String make, java.lang.String model)Queue this call to the datastore, and await its turn.java.lang.Longverify_or_die(java.lang.String make, java.lang.String model)-
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_Model
public Queued_Model(Datastore datastore) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
-
Method Detail
-
commit
public Model commit(Model model) throws java.lang.Exception
Queue this call to the datastore, and await its turn.
-
info
public java.util.Hashtable info(java.lang.String make, java.lang.String model) throws java.lang.ExceptionQueue this call to the datastore, and await its turn. Call left in for compatibility with versions 4.12.8 and older.
-
info
public java.util.Hashtable info(java.lang.Long id, java.lang.String make, java.lang.String model) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
supplant
public java.lang.Boolean supplant(java.lang.Long old_id, java.lang.String new_make, java.lang.String new_model) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
delete
public void delete(java.lang.String make, java.lang.String model) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
list
public java.util.Hashtable list(java.lang.String filter) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.Long id) throws java.lang.Exception- Specified by:
verify_or_diein interfaceModel_i- Throws:
java.lang.Exception
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.String make, java.lang.String model) throws java.lang.Exception- Specified by:
verify_or_diein interfaceModel_i- Throws:
java.lang.Exception
-
verify_or_die
public java.lang.Long verify_or_die(java.lang.Long id, java.lang.String make, java.lang.String model) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.- Specified by:
verify_or_diein interfaceModel_i- Throws:
java.lang.Exception
-
-