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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Model commit​(Model model)
      Queue this call to the datastore, and await its turn.
      void delete​(java.lang.String make, java.lang.String model)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable info​(java.lang.Long id, java.lang.String make, java.lang.String model)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable info​(java.lang.String make, java.lang.String model)
      Queue this call to the datastore, and await its turn.
      java.util.Hashtable list​(java.lang.String filter)
      Queue this call to the datastore, and await its turn.
      java.lang.Boolean supplant​(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.Long verify_or_die​(java.lang.Long id)  
      java.lang.Long verify_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.Long verify_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
      • 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_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.
        Specified by:
        commit in interface Model_i
        Throws:
        java.lang.Exception
      • info

        public java.util.Hashtable info​(java.lang.String make,
                                        java.lang.String model)
                                 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 Model_i
        Throws:
        java.lang.Exception
      • info

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

        public java.lang.Boolean supplant​(java.lang.Long old_id,
                                          java.lang.String new_make,
                                          java.lang.String new_model)
                                   throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        supplant in interface Model_i
        Throws:
        java.lang.Exception
      • delete

        public void delete​(java.lang.String make,
                           java.lang.String model)
                    throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        delete in interface Model_i
        Throws:
        java.lang.Exception
      • list

        public java.util.Hashtable list​(java.lang.String filter)
                                 throws java.lang.Exception
        Queue this call to the datastore, and await its turn.
        Specified by:
        list in interface Model_i
        Throws:
        java.lang.Exception
      • verify_or_die

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