Class RMIRemoteKey

  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.Remote, RMIKey

    public class RMIRemoteKey
    extends java.rmi.server.UnicastRemoteObject
    implements RMIKey
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RMIRemoteKey()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addKeyListener​(KeyListener listener)  
      int getId()  
      boolean isDown()  
      boolean isUp()  
      void setId​(java.lang.String name)  
      void simulateEvent​(int event)  
      void waitForPress()  
      void waitForPressAndRelease()  
      • 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

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RMIRemoteKey

        protected RMIRemoteKey()
                        throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getId

        public int getId()
                  throws java.rmi.RemoteException
        Specified by:
        getId in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • isDown

        public boolean isDown()
                       throws java.rmi.RemoteException
        Specified by:
        isDown in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • isUp

        public boolean isUp()
                     throws java.rmi.RemoteException
        Specified by:
        isUp in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • waitForPress

        public void waitForPress()
                          throws java.rmi.RemoteException
        Specified by:
        waitForPress in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • waitForPressAndRelease

        public void waitForPressAndRelease()
                                    throws java.rmi.RemoteException
        Specified by:
        waitForPressAndRelease in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • addKeyListener

        public void addKeyListener​(KeyListener listener)
                            throws java.rmi.RemoteException
        Specified by:
        addKeyListener in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • simulateEvent

        public void simulateEvent​(int event)
                           throws java.rmi.RemoteException
        Specified by:
        simulateEvent in interface RMIKey
        Throws:
        java.rmi.RemoteException
      • setId

        public void setId​(java.lang.String name)