Interface BaseChannelMBean
- All Known Implementing Classes:
AmexChannel, ASCIIChannel, BASE24Channel, BASE24TCPChannel, BaseChannel, BCDChannel, CMFChannel, CSChannel, FSDChannel, GICCChannel, GZIPChannel, HEXChannel, LogChannel, NACChannel, NCCChannel, PADChannel, PostChannel, RawChannel, RBPChannel, TelnetXMLChannel, VAPChannel, X25Channel, XMLChannel
public interface BaseChannelMBean
JMX management interface for
BaseChannel.-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Establishes a connection.voidCloses the connection.getHost()Returns the remote host name or address.intgetPort()Returns the remote port number.booleanReturns true if the channel has an active connection.voidReconnects the channel.voidSets the remote host name or address.voidsetPort(int port) Sets the remote port number.
-
Method Details
-
getHost
-
setHost
-
getPort
-
setPort
-
isConnected
boolean isConnected()Returns true if the channel has an active connection.- Returns:
- true if connected
-
connect
Establishes a connection.- Throws:
IOException- on connection failure
-
disconnect
-
reconnect
Reconnects the channel.- Throws:
IOException- on connection failure
-