|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 portpublic void connect() throws IOException
FIXSession
connect
in interface FIXSession
connect
in class AbstractFIXSession
IOException
- I/O exception if error occurredFIXSession.reject(String)
public void setSessionState(SessionState sessionState)
ExtendedFIXSession
setSessionState
in interface ExtendedFIXSession
setSessionState
in class AbstractFIXSession
sessionState
- the new session stateExtendedFIXSession.setSessionState(com.epam.fixengine.SessionState)
public void reject(String reason) throws IOException
reject
in interface FIXSession
reject
in class AbstractFIXSession
IllegalStateException
IOException
- I/O exception if error occurredFIXSession.reject(String)
protected void connectInternal() throws IOException
IOException
public void disconnect(String reason)
AbstractFIXSession
disconnect
in interface FIXSession
disconnect
in class AbstractFIXSession
reason
- 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 FIXSession
dispose
in class AbstractFIXSession
FIXSession.dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |