com.notuvy.singleapp.multiuser
Class BrokerConnection
java.lang.Object
com.notuvy.singleapp.multiuser.BrokerConnection
public class BrokerConnection
- extends Object
Basic description
- Author:
- murali
Field Summary |
protected static org.apache.log4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.log4j.Logger LOG
BrokerConnection
public BrokerConnection(String pUser,
Socket pSocket)
throws IOException
- Throws:
IOException
BrokerConnection
public BrokerConnection(Socket pSocket)
throws IOException
- Create an incoming connection. This will read the username from the inputstream.
- Parameters:
pSocket
- incoming socket.
- Throws:
IOException
getUser
public String getUser()
getInput
public ObjectInputStream getInput()
getOutput
public ObjectOutputStream getOutput()
canCommunicate
protected boolean canCommunicate()
readObjectMessage
protected Object readObjectMessage()
throws IOException
- Throws:
IOException
writeObjectMessage
protected void writeObjectMessage(Object pMessage)
throws IOException
- Throws:
IOException
closeByInput
protected void closeByInput()
throws IOException
- Throws:
IOException
closeByOutput
protected void closeByOutput()
throws IOException
- Throws:
IOException
readUserConflict
protected boolean readUserConflict(String pUser)
throws IOException
- Throws:
IOException
writeUserConflict
protected void writeUserConflict(boolean pConflict)
throws IOException
- Throws:
IOException
readOwnedBrokerWasShutdown
protected boolean readOwnedBrokerWasShutdown()
throws IOException
- Throws:
IOException
writeOwnedBrokerWasShutdown
protected void writeOwnedBrokerWasShutdown(boolean pShutdown)
throws IOException
- Throws:
IOException
readAck
protected int readAck()
throws IOException
- Throws:
IOException
writeAck
protected void writeAck()
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.