Package gov.aps.jca.cas
Class ServerMonitor
- java.lang.Object
-
- gov.aps.jca.cas.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 Summary
Fields Modifier and Type Field Description protected ServerChannelchannelChannel.protected intioidEvenr ID.
-
Constructor Summary
Constructors Constructor Description ServerMonitor(ServerChannel channel, int ioid)Create server monitor for given channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy monitor.ServerChannelgetChannel()Get channel.intgetIOID()Get event ID.voidprintInfo()Prints detailed information about the monitor to the standard output stream.voidprintInfo(PrintStream out)Prints detailed information about the monitor to the specified output stream.
-
-
-
Field Detail
-
channel
protected ServerChannel channel
Channel.
-
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 IllegalStateExceptionPrints 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.
-
-