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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Hashtable info​(java.lang.Long id, java.lang.String handle)
      Queue this call to the datastore, and await its turn.
      Person insert_or_update​(Person person)
      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_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.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        info in interface Person_i
        Throws:
        java.lang.Exception
      • 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_update in interface Person_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 Person_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 Person_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 Person_i
        Throws:
        java.lang.Exception