Package stanford.netdb.middleware
Class Queued_Node
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- stanford.netdb.middleware.Queued_Node
-
- All Implemented Interfaces:
java.io.Serializable,java.rmi.Remote,Node_i
public class Queued_Node extends java.rmi.server.UnicastRemoteObject implements Node_i
This class wraps its NetDB_* equivalent class to queue each method call.- See Also:
Queue,NetDB_Node, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description Queued_Node(Datastore datastore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodecommit(Node node, java.lang.Boolean unlock)Queue this call to the datastore, and await its turn.voiddelete(java.lang.String handle)Queue this call to the datastore, and await its turn.java.lang.Booleanhas_access(User user, java.lang.String handle)Queue this call to the datastore, and await its turn.java.util.Hashtableinfo(java.lang.Long id, java.lang.String handle)Queue this call to the datastore, and await its turn.java.util.Hashtableinfo(java.lang.String handle)Queue this call to the datastore, and await its turn.Lock_Resultlock_record(Node node)Queue this call to the datastore, and await its turn.java.util.Hashtablesearch(java.lang.String search_string, java.lang.String ip_high, java.lang.String search_type)Queue this call to the datastore, and await its turn.java.lang.Booleanunlock_record(Node node)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_Node
public Queued_Node(Datastore datastore) throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
-
-
Method Detail
-
search
public java.util.Hashtable search(java.lang.String search_string, java.lang.String ip_high, java.lang.String search_type) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
info
public java.util.Hashtable info(java.lang.String handle) 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 handle) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
commit
public Node commit(Node node, java.lang.Boolean unlock) throws java.lang.Exception
Queue this call to the datastore, and await its turn.
-
delete
public void delete(java.lang.String handle) throws java.lang.ExceptionQueue this call to the datastore, and await its turn.
-
lock_record
public Lock_Result lock_record(Node node) throws java.lang.Exception
Queue this call to the datastore, and await its turn.- Specified by:
lock_recordin interfaceNode_i- Throws:
java.lang.Exception
-
unlock_record
public java.lang.Boolean unlock_record(Node node) throws java.lang.Exception
Queue this call to the datastore, and await its turn.- Specified by:
unlock_recordin interfaceNode_i- Throws:
java.lang.Exception
-
has_access
public java.lang.Boolean has_access(User user, java.lang.String handle) throws java.lang.Exception
Queue this call to the datastore, and await its turn.- Specified by:
has_accessin interfaceNode_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 interfaceNode_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 interfaceNode_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 interfaceNode_i- Throws:
java.lang.Exception
-
-