Class CGAgentObserverImpl

    • Constructor Detail

      • CGAgentObserverImpl

        public CGAgentObserverImpl​(String host,
                                   String serviceName,
                                   int port)
    • Method Detail

      • update

        public void update​(CGAgentSubject subject)
        Description copied from interface: CGAgentObserver
        Action to perform once the event is received
        Specified by:
        update in interface CGAgentObserver
        Parameters:
        subject - CGAgentSubject to act upon
      • getPort

        public int getPort()
        Description copied from interface: CGAgentObserver
        Returns the port of the server associated with the observer
        Specified by:
        getPort in interface CGAgentObserver
        Returns:
        the port
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object