Class ServerMonitor

  • Direct Known Subclasses:
    CASServerMonitor

    public class ServerMonitor
    extends Object
    Server monitor.
    Version:
    $Id: ServerMonitor.java,v 1.2 2006-08-24 08:13:19 msekoranja Exp $
    Author:
    Matej Sekoranja
    • Field Detail

      • ioid

        protected int ioid
        Evenr ID.
    • Constructor Detail

      • ServerMonitor

        public ServerMonitor​(ServerChannel channel,
                             int ioid)
        Create server monitor for given channel.
        Parameters:
        channel - channel.
        ioid - event ID.
    • Method Detail

      • getChannel

        public ServerChannel getChannel()
        Get channel.
        Returns:
        channel.
      • getIOID

        public int getIOID()
        Get event ID.
        Returns:
        event ID.
      • destroy

        public void destroy()
        Destroy monitor. This method MUST BE called if this it is overriden.
      • printInfo

        public void printInfo()
                       throws IllegalStateException
        Prints detailed information about the monitor to the standard output stream.
        Throws:
        IllegalStateException - if the context has been destroyed.
      • printInfo

        public void printInfo​(PrintStream out)
                       throws IllegalStateException
        Prints detailed information about the monitor to the specified output stream.
        Parameters:
        out - the output stream.
        Throws:
        IllegalStateException - if the context has been destroyed.