| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.fixengine.session.AbstractFIXSession
com.epam.fixengine.session.InitiatorFIXSession
public class InitiatorFIXSession
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class com.epam.fixengine.session.AbstractFIXSession | 
|---|
| AbstractFIXSession.SessionParametersProxyAdaptorListener | 
| Field Summary | 
|---|
| Fields inherited from class com.epam.fixengine.session.AbstractFIXSession | 
|---|
| configuration, DEBUG_ENABLED, graceful, listener, log, messageFactory, queue, sessionLock, sessionParameters, TRACE_ENABLED, transport | 
| Fields inherited from interface com.epam.fixengine.FIXSession | 
|---|
| DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC | 
| Constructor Summary | |
|---|---|
| InitiatorFIXSession(FIXMessageFactory factory,
                    SessionParameters sessionParameters,
                    HandlerChain fixSessionListener)Creates the InitiatorFIXSession. | |
| Method Summary | |
|---|---|
|  void | connect()Connects to remote counterparty, if initiator or accepts incoming connection if acceptor. | 
| protected  void | connectInternal() | 
|  void | disconnect(String reason)Disconnect the session. | 
|  void | dispose()Disposes current session, removes its reference from GlobalSessionManager and frees all allocated resources. | 
| protected  FIXTransport | getTransport(SessionParameters sessionParameters,
             String host,
             int port)Gets transport. | 
|  void | reject(String reason)Unsupported for InitiatorFIXSession. | 
|  void | setSessionState(SessionState sessionState)Sets session state. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public InitiatorFIXSession(FIXMessageFactory factory,
                           SessionParameters sessionParameters,
                           HandlerChain fixSessionListener)
InitiatorFIXSession.
| Method Detail | 
|---|
protected FIXTransport getTransport(SessionParameters sessionParameters,
                                    String host,
                                    int port)
sessionParameters - the session parametershost - the hostport - the port
public void connect()
             throws IOException
FIXSession
connect in interface FIXSessionconnect in class AbstractFIXSessionIOException - I/O exception if error occurredFIXSession.reject(String)public void setSessionState(SessionState sessionState)
ExtendedFIXSession
setSessionState in interface ExtendedFIXSessionsetSessionState in class AbstractFIXSessionsessionState - the new session stateExtendedFIXSession.setSessionState(com.epam.fixengine.SessionState)
public void reject(String reason)
            throws IOException
reject in interface FIXSessionreject in class AbstractFIXSessionIllegalStateException
IOException - I/O exception if error occurredFIXSession.reject(String)
protected void connectInternal()
                        throws IOException
IOExceptionpublic void disconnect(String reason)
AbstractFIXSession
disconnect in interface FIXSessiondisconnect in class AbstractFIXSessionreason - the reason, if parameter is not null,
               the logof message will be send with 58=reason.FIXSession.disconnect(String)public void dispose()
FIXSession
dispose in interface FIXSessiondispose in class AbstractFIXSessionFIXSession.dispose()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||