|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectquickfix.mina.SessionConnector
public abstract class SessionConnector
An abstract base class for acceptors and initiators. Provides support for common functionality and also serves as an abstraction where the code doesn't need to make the acceptor/initator distinction.
Field Summary | |
---|---|
protected org.slf4j.Logger |
log
|
static java.lang.String |
QF_SESSION
|
Constructor Summary | |
---|---|
SessionConnector(SessionSettings settings,
SessionFactory sessionFactory)
|
Method Summary | |
---|---|
void |
addDynamicSession(Session inSession)
|
protected Session |
createSession(SessionID sessionID)
|
protected int |
getIntSetting(java.lang.String key)
|
protected org.apache.mina.common.IoFilterChainBuilder |
getIoFilterChainBuilder()
|
java.util.List<Session> |
getManagedSessions()
Get the list of session managed by this connector. |
protected java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService()
|
protected java.util.Map<SessionID,Session> |
getSessionMap()
This is for subclasses to directly access the session map. |
java.util.ArrayList<SessionID> |
getSessions()
Return the list of session identifiers of sessions managed by this connector. |
SessionSettings |
getSettings()
|
boolean |
isLoggedOn()
|
protected void |
logError(SessionID sessionID,
org.apache.mina.common.IoSession protocolSession,
java.lang.String message,
java.lang.Throwable t)
|
protected void |
logoutAllSessions(boolean forceDisconnect)
|
void |
removeDynamicSession(SessionID inSessionID)
|
void |
setIoFilterChainBuilder(org.apache.mina.common.IoFilterChainBuilder ioFilterChainBuilder)
Allows a custom IOFilterChainBuilder to be added to the session connector. |
protected void |
setSessions(java.util.Map<SessionID,Session> sessions)
|
protected void |
startSessionTimer()
|
protected void |
stopSessionTimer()
|
protected void |
waitForLogout()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QF_SESSION
protected final org.slf4j.Logger log
Constructor Detail |
---|
public SessionConnector(SessionSettings settings, SessionFactory sessionFactory) throws ConfigError
ConfigError
Method Detail |
---|
protected void setSessions(java.util.Map<SessionID,Session> sessions)
public java.util.List<Session> getManagedSessions()
Session
protected java.util.Map<SessionID,Session> getSessionMap()
public java.util.ArrayList<SessionID> getSessions()
public void addDynamicSession(Session inSession)
public void removeDynamicSession(SessionID inSessionID)
public SessionSettings getSettings()
protected Session createSession(SessionID sessionID) throws ConfigError
ConfigError
protected int getIntSetting(java.lang.String key) throws ConfigError
ConfigError
public boolean isLoggedOn()
protected void logoutAllSessions(boolean forceDisconnect)
protected void waitForLogout()
protected void logError(SessionID sessionID, org.apache.mina.common.IoSession protocolSession, java.lang.String message, java.lang.Throwable t)
protected void startSessionTimer()
protected void stopSessionTimer()
protected java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
public void setIoFilterChainBuilder(org.apache.mina.common.IoFilterChainBuilder ioFilterChainBuilder)
ioFilterChainBuilder
- IoFilterChainBuilder
protected org.apache.mina.common.IoFilterChainBuilder getIoFilterChainBuilder()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |