se.sics.isl.inet
Class InetConnection
java.lang.Object
se.sics.isl.inet.InetConnection
public abstract class InetConnection
- extends java.lang.Object
Constructor Summary |
InetConnection(java.lang.String name,
java.net.Socket socket)
|
InetConnection(java.lang.String name,
java.lang.String host,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetConnection
public InetConnection(java.lang.String name,
java.net.Socket socket)
InetConnection
public InetConnection(java.lang.String name,
java.lang.String host,
int port)
getName
public java.lang.String getName()
getUserName
public java.lang.String getUserName()
setUserName
public void setUserName(java.lang.String userName)
getRemoteHost
public java.lang.String getRemoteHost()
getRemotePort
public int getRemotePort()
getConnectTime
public long getConnectTime()
getInputStream
public java.io.InputStream getInputStream()
getOutputStream
public java.io.OutputStream getOutputStream()
isServerConnection
public boolean isServerConnection()
isDeliveryBuffered
public boolean isDeliveryBuffered()
setDeliveryBuffered
public void setDeliveryBuffered(boolean isDeliveryBuffered)
isWriteBuffered
public boolean isWriteBuffered()
setWriteBuffered
public void setWriteBuffered(boolean isWriteBuffered)
getThreadPool
public ThreadPool getThreadPool()
setThreadPool
public void setThreadPool(ThreadPool threadPool)
start
public final void start()
throws java.io.IOException
- Throws:
java.io.IOException
isClosed
public boolean isClosed()
close
public void close()
closeImmediately
public void closeImmediately()
sendMessage
public void sendMessage(java.lang.Object message)
deliverMessage
protected void deliverMessage(java.lang.Object message)
connectionOpened
protected abstract void connectionOpened()
throws java.io.IOException
- Throws:
java.io.IOException
connectionClosed
protected abstract void connectionClosed()
throws java.io.IOException
- Throws:
java.io.IOException
doReadMessages
protected abstract void doReadMessages()
throws java.io.IOException
- Throws:
java.io.IOException
doDeliverMessage
protected abstract void doDeliverMessage(java.lang.Object message)
doSendMessage
protected abstract void doSendMessage(java.lang.Object message)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.