Package jadex.bridge.component.streams
Class LocalAbstractConnectionHandler
- java.lang.Object
- 
- jadex.bridge.component.streams.LocalAbstractConnectionHandler
 
- 
- All Implemented Interfaces:
- IAbstractConnectionHandler
 - Direct Known Subclasses:
- LocalInputConnectionHandler,- LocalOutputConnectionHandler
 
 public class LocalAbstractConnectionHandler extends java.lang.Object implements IAbstractConnectionHandler 
- 
- 
Field SummaryFields Modifier and Type Field Description protected AbstractConnectionconThe connection.protected LocalAbstractConnectionHandlerconhandlerThe other connection.protected java.util.Map<java.lang.String,java.lang.Object>nonfuncThe non-functional properties.
 - 
Constructor SummaryConstructors Constructor Description LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc, LocalAbstractConnectionHandler conhandler)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the connection.IFuture<java.lang.Void>doClose()Called from connection.protected AbstractConnectiongetConnection()Get the connection.LocalAbstractConnectionHandlergetConnectionHandler()Get the conhandler.intgetConnectionId()Get the id.java.util.Map<java.lang.String,java.lang.Object>getNonFunctionalProperties()Get the non-functional properties of the connection.voidinitReceived()Received the init message.voidnotifyInited()IFuture<java.lang.Void>sendInit()Send init message.voidsetConnection(AbstractConnection con)Set the connection (needed as connection and handler need each other).voidsetConnectionHandler(LocalAbstractConnectionHandler conhandler)Set the connection handler of the other side.
 
- 
- 
- 
Field Detail- 
conprotected AbstractConnection con The connection.
 - 
conhandlerprotected LocalAbstractConnectionHandler conhandler The other connection.
 - 
nonfuncprotected java.util.Map<java.lang.String,java.lang.Object> nonfunc The non-functional properties.
 
- 
 - 
Constructor Detail- 
LocalAbstractConnectionHandlerpublic LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc) 
 - 
LocalAbstractConnectionHandlerpublic LocalAbstractConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc, LocalAbstractConnectionHandler conhandler)
 
- 
 - 
Method Detail- 
sendInitpublic IFuture<java.lang.Void> sendInit() Send init message.- Specified by:
- sendInitin interface- IAbstractConnectionHandler
 
 - 
notifyInitedpublic void notifyInited() - Specified by:
- notifyInitedin interface- IAbstractConnectionHandler
 
 - 
doClosepublic IFuture<java.lang.Void> doClose() Called from connection. Initiates closing procedure (is different for initiator and participant).- Specified by:
- doClosein interface- IAbstractConnectionHandler
 
 - 
initReceivedpublic void initReceived() Received the init message.
 - 
closepublic void close() Close the connection. Notifies the other side that the connection has been closed.
 - 
getConnectionIdpublic int getConnectionId() Get the id.- Returns:
- the id.
 
 - 
getConnectionprotected AbstractConnection getConnection() Get the connection.- Returns:
- The connection.
 
 - 
setConnectionpublic void setConnection(AbstractConnection con) Set the connection (needed as connection and handler need each other). The connections uses this method to set itself as connection in their constructor.- Specified by:
- setConnectionin interface- IAbstractConnectionHandler
 
 - 
getConnectionHandlerpublic LocalAbstractConnectionHandler getConnectionHandler() Get the conhandler.- Returns:
- the conhandler.
 
 - 
setConnectionHandlerpublic void setConnectionHandler(LocalAbstractConnectionHandler conhandler) Set the connection handler of the other side.
 - 
getNonFunctionalPropertiespublic java.util.Map<java.lang.String,java.lang.Object> getNonFunctionalProperties() Get the non-functional properties of the connection.- Specified by:
- getNonFunctionalPropertiesin interface- IAbstractConnectionHandler
- Returns:
- The non-functional properties.
 
 
- 
 
-