Class 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 long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Node commit​(Node node, java.lang.Boolean unlock)
      Queue this call to the datastore, and await its turn.
      void delete​(java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      java.lang.Boolean has_access​(User user, java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable info​(java.lang.Long id, java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable info​(java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      Lock_Result lock_record​(Node node)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable search​(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.Boolean unlock_record​(Node node)
      Queue this call to the datastore, and await its turn.
      java.lang.Long verify_or_die​(java.lang.Long id)
      Queue this call to the datastore, and await its turn.
      java.lang.Long verify_or_die​(java.lang.Long id, java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      java.lang.Long verify_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
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        search in interface Node_i
        Throws:
        java.lang.Exception
      • info

        public java.util.Hashtable info​(java.lang.String handle)
                                 throws java.lang.Exception
        Queue this call to the datastore, and await its turn. Call left in for compatibility with versions 4.12.8 and older.
        Specified by:
        info in interface Node_i
        Throws:
        java.lang.Exception
      • info

        public java.util.Hashtable info​(java.lang.Long id,
                                        java.lang.String handle)
                                 throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        info in interface Node_i
        Throws:
        java.lang.Exception
      • commit

        public Node commit​(Node node,
                           java.lang.Boolean unlock)
                    throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        commit in interface Node_i
        Throws:
        java.lang.Exception
      • delete

        public void delete​(java.lang.String handle)
                    throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        delete in interface Node_i
        Throws:
        java.lang.Exception
      • 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_record in interface Node_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_record in interface Node_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_access in interface Node_i
        Throws:
        java.lang.Exception
      • verify_or_die

        public java.lang.Long verify_or_die​(java.lang.Long id)
                                     throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        verify_or_die in interface Node_i
        Throws:
        java.lang.Exception
      • verify_or_die

        public java.lang.Long verify_or_die​(java.lang.String handle)
                                     throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        verify_or_die in interface Node_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.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        verify_or_die in interface Node_i
        Throws:
        java.lang.Exception