org.apache.mina.transport.serial
Interface SerialSession

All Superinterfaces:
IoSession

public interface SerialSession
extends IoSession

An IoSession for serial communication transport.

Version:
$Rev: 529590 $, $Date: 2007-04-17 15:14:17 +0200 (mar., 17 avr. 2007) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 SerialSessionConfig getConfig()
           
 SerialAddress getLocalAddress()
          Returns the socket address of local machine which is associated with this session.
 SerialAddress getRemoteAddress()
          Returns the socket address of remote peer.
 SerialAddress getServiceAddress()
          Returns the socket address of the IoService listens to to manage this session.
 
Methods inherited from interface org.apache.mina.core.session.IoSession
close, close, closeOnFlush, containsAttribute, getAttachment, getAttribute, getAttribute, getAttributeKeys, getBothIdleCount, getCloseFuture, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getFilterChain, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getTrafficMask, getTransportMetadata, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isWriterIdle, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setTrafficMask, suspendRead, suspendWrite, write, write
 

Method Detail

getConfig

SerialSessionConfig getConfig()
Specified by:
getConfig in interface IoSession
Returns:
the configuration of this session.

getRemoteAddress

SerialAddress getRemoteAddress()
Description copied from interface: IoSession
Returns the socket address of remote peer.

Specified by:
getRemoteAddress in interface IoSession

getLocalAddress

SerialAddress getLocalAddress()
Description copied from interface: IoSession
Returns the socket address of local machine which is associated with this session.

Specified by:
getLocalAddress in interface IoSession

getServiceAddress

SerialAddress getServiceAddress()
Description copied from interface: IoSession
Returns the socket address of the IoService listens to to manage this session. If this session is managed by IoAcceptor, it returns the SocketAddress which is specified as a parameter of IoAcceptor.bind(). If this session is managed by IoConnector, this method returns the same address with that of IoSession.getRemoteAddress().

Specified by:
getServiceAddress in interface IoSession


Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.