Interface CGAgentObserver

  • All Known Implementing Classes:
    CGAgentObserverImpl

    public interface CGAgentObserver
    This represents the observer for subject. When a server goes down an observer will be created who is interested in subject(that is the status of the remote server)
    • Method Detail

      • update

        void update​(CGAgentSubject s)
        Action to perform once the event is received
        Parameters:
        s - CGAgentSubject to act upon
      • getHostName

        String getHostName()
        Returns the host name associated with the observer
        Returns:
        the remote host name
      • getPort

        int getPort()
        Returns the port of the server associated with the observer
        Returns:
        the port