public class SessionAdmin extends NotificationBroadcasterSupport implements SessionAdminMBean, MBeanRegistration, SessionStateListener
| Constructor and Description |
|---|
SessionAdmin(Session session,
ObjectName connectorName,
ObjectName settingsName) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Tell the session to disconnect (implies logoff)
|
protected void |
doSend(Message message,
SessionID sessionID)
Helper method to be overridden by tests that handles sending out the message.
|
String |
getBeginString()
Get the begin string (FIX version) for the session
|
boolean |
getCheckCompID() |
String |
getConnectionRole() |
ObjectName |
getConnectorName() |
boolean |
getEnabled() |
String |
getHost() |
String |
getID() |
String |
getLogClassName() |
int |
getLogonTimeout() |
int |
getLogoutTimeout() |
String |
getMessageFactoryClassName() |
String[] |
getMessages(int startSequence,
int endSequence) |
String |
getMessageStoreClassName() |
int |
getNextSenderMsgSeqNum()
Get the next sender message sequence number.
|
int |
getNextTargetMsgSeqNum()
Get the next target message sequence number.
|
String |
getProcessID() |
boolean |
getRedundantResendRequestsAllowed() |
boolean |
getRefreshOnLogon() |
String |
getRemoteIPAddress() |
boolean |
getResetOnDisconnect() |
boolean |
getResetOnLogout() |
String |
getSenderCompID()
Get the sender company ID for the session.
|
String |
getSenderLocationID()
Get the sender company location ID for the session.
|
String |
getSenderSubID()
Get the sender company subID for the session.
|
String |
getSessionID()
Get the session ID.
|
String |
getStartTime() |
String |
getTargetCompID()
Get the target company ID for the session.
|
String |
getTargetLocationID()
Get the target location ID for the session.
|
String |
getTargetSubID()
Get the target subID for the session.
|
boolean |
isLoggedOn() |
boolean |
isLogonAlreadySent() |
boolean |
isLogonReceived() |
boolean |
isLogonSendNeeded() |
boolean |
isLogonSent() |
boolean |
isLogonTimedOut() |
boolean |
isLogoutReceived() |
boolean |
isLogoutSent() |
boolean |
isLogoutTimedOut() |
boolean |
isReconnectEnabled() |
boolean |
isUsingDataDictionary() |
void |
logoff()
Tell the session to logoff.
|
void |
logon()
Tell the session to logon.
|
void |
onConnect()
Called when connection has been established.
|
void |
onDisconnect()
Called when connection has been disconnected.
|
void |
onHeartBeatTimeout()
Called when Heartbeat timeout has been detected.
|
void |
onLogon()
Called when session has been logged on.
|
void |
onLogout()
Called when session has been logged out.
|
void |
onMissedHeartBeat()
Called when TestRequest is sent out due to missed Heartbeat.
|
void |
onRefresh()
Called when message store gets refreshed on Logon.
|
void |
onResendRequestSatisfied(int beginSeqNo,
int endSeqNo)
Called when a received ResendRequest has been satisfied.
|
void |
onResendRequestSent(int beginSeqNo,
int endSeqNo,
int currentEndSeqNo)
Called when ResendRequest has been sent out.
|
void |
onReset()
Called when message store gets reset.
|
void |
onSequenceResetReceived(int newSeqNo,
boolean gapFillFlag)
Called when SequenceReset has been received.
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
reset()
Reset the session's sequence numbers and clear it's resend log.
|
void |
resetSequence(int nextSeqNum)
Reset current sequence number
|
void |
sendHeartBeat()
Send a heartBeat message
|
void |
sendLogoutMessage()
Send a logout message
|
void |
sendTestRequest()
Send a test Request message
|
void |
setLogonTimeout(int seconds) |
void |
setLogoutTimeout(int seconds) |
void |
setNextSenderMsgSeqNum(int next)
Set the next sender message sequence number.
|
void |
setNextTargetMsgSeqNum(int next)
Set the next target message sequence number.
|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonConnectExceptionpublic SessionAdmin(Session session, ObjectName connectorName, ObjectName settingsName)
public String getID()
public String getTargetCompID()
SessionAdminMBeangetTargetCompID in interface SessionAdminMBeanpublic String getTargetSubID()
SessionAdminMBeangetTargetSubID in interface SessionAdminMBeanpublic String getTargetLocationID()
SessionAdminMBeangetTargetLocationID in interface SessionAdminMBeanpublic String getSenderCompID()
SessionAdminMBeangetSenderCompID in interface SessionAdminMBeanpublic String getSenderSubID()
SessionAdminMBeangetSenderSubID in interface SessionAdminMBeanpublic String getSenderLocationID()
SessionAdminMBeangetSenderLocationID in interface SessionAdminMBeanpublic String getBeginString()
SessionAdminMBeangetBeginString in interface SessionAdminMBeanpublic boolean isLoggedOn()
isLoggedOn in interface SessionAdminMBeanpublic String getRemoteIPAddress()
public void reset()
SessionAdminMBeanreset in interface SessionAdminMBeanpublic int getNextSenderMsgSeqNum()
throws IOException
SessionAdminMBeangetNextSenderMsgSeqNum in interface SessionAdminMBeanIOExceptionpublic void setNextSenderMsgSeqNum(int next)
throws IOException
SessionAdminMBeansetNextSenderMsgSeqNum in interface SessionAdminMBeannext - next sender message sequence numberIOExceptionpublic void setNextTargetMsgSeqNum(int next)
throws IOException
SessionAdminMBeansetNextTargetMsgSeqNum in interface SessionAdminMBeannext - the next target message sequence numberIOExceptionpublic int getNextTargetMsgSeqNum()
throws IOException
SessionAdminMBeangetNextTargetMsgSeqNum in interface SessionAdminMBeanIOExceptionpublic String[] getMessages(int startSequence, int endSequence) throws IOException
IOExceptionpublic void disconnect()
throws IOException
SessionAdminMBeandisconnect in interface SessionAdminMBeanIOExceptionpublic void resetSequence(int nextSeqNum)
throws SessionNotFound
SessionAdminMBeanresetSequence in interface SessionAdminMBeanSessionNotFoundprotected void doSend(Message message, SessionID sessionID) throws SessionNotFound
SessionNotFoundpublic void logon()
SessionAdminMBeanlogon in interface SessionAdminMBeanpublic void logoff()
SessionAdminMBeanlogoff in interface SessionAdminMBeanpublic boolean isReconnectEnabled()
public String getHost()
public String getProcessID()
public ObjectName getConnectorName()
getConnectorName in interface SessionAdminMBeanpublic boolean getCheckCompID()
getCheckCompID in interface SessionAdminMBeanpublic String getLogClassName()
getLogClassName in interface SessionAdminMBeanpublic int getLogonTimeout()
getLogonTimeout in interface SessionAdminMBeanpublic int getLogoutTimeout()
getLogoutTimeout in interface SessionAdminMBeanpublic String getMessageFactoryClassName()
getMessageFactoryClassName in interface SessionAdminMBeanpublic String getMessageStoreClassName()
getMessageStoreClassName in interface SessionAdminMBeanpublic boolean getRedundantResendRequestsAllowed()
getRedundantResendRequestsAllowed in interface SessionAdminMBeanpublic boolean getRefreshOnLogon()
getRefreshOnLogon in interface SessionAdminMBeanpublic boolean getResetOnDisconnect()
getResetOnDisconnect in interface SessionAdminMBeanpublic boolean getResetOnLogout()
getResetOnLogout in interface SessionAdminMBeanpublic boolean isLogonAlreadySent()
isLogonAlreadySent in interface SessionAdminMBeanpublic boolean isLogonReceived()
isLogonReceived in interface SessionAdminMBeanpublic boolean isLogonSendNeeded()
isLogonSendNeeded in interface SessionAdminMBeanpublic boolean isLogonSent()
isLogonSent in interface SessionAdminMBeanpublic boolean isLogonTimedOut()
isLogonTimedOut in interface SessionAdminMBeanpublic boolean isLogoutReceived()
isLogoutReceived in interface SessionAdminMBeanpublic boolean isLogoutSent()
isLogoutSent in interface SessionAdminMBeanpublic boolean isLogoutTimedOut()
isLogoutTimedOut in interface SessionAdminMBeanpublic void setLogonTimeout(int seconds)
setLogonTimeout in interface SessionAdminMBeanpublic void setLogoutTimeout(int seconds)
setLogoutTimeout in interface SessionAdminMBeanpublic boolean isUsingDataDictionary()
isUsingDataDictionary in interface SessionAdminMBeanpublic String getSessionID()
SessionAdminMBeangetSessionID in interface SessionAdminMBeanpublic boolean getEnabled()
getEnabled in interface SessionAdminMBeanpublic String getStartTime()
getStartTime in interface SessionAdminMBeanpublic String getConnectionRole()
getConnectionRole in interface SessionAdminMBeanpublic void postDeregister()
postDeregister in interface MBeanRegistrationpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void onConnect()
SessionStateListeneronConnect in interface SessionStateListenerpublic void onDisconnect()
SessionStateListeneronDisconnect in interface SessionStateListenerpublic void onLogon()
SessionStateListeneronLogon in interface SessionStateListenerpublic void onLogout()
SessionStateListeneronLogout in interface SessionStateListenerpublic void onHeartBeatTimeout()
SessionStateListeneronHeartBeatTimeout in interface SessionStateListenerpublic void onMissedHeartBeat()
SessionStateListeneronMissedHeartBeat in interface SessionStateListenerpublic void onRefresh()
SessionStateListeneronRefresh in interface SessionStateListenerpublic void onResendRequestSent(int beginSeqNo,
int endSeqNo,
int currentEndSeqNo)
SessionStateListeneronResendRequestSent in interface SessionStateListenerbeginSeqNo - first seqnum that gets requestedendSeqNo - last seqnum that gets requestedcurrentEndSeqNo - last seqnum of range that gets requested on
chunked ResendRequestspublic void onSequenceResetReceived(int newSeqNo,
boolean gapFillFlag)
SessionStateListeneronSequenceResetReceived in interface SessionStateListenernewSeqNo - NewSeqNo from SequenceResetgapFillFlag - GapFillFlag from SequenceResetpublic void onResendRequestSatisfied(int beginSeqNo,
int endSeqNo)
SessionStateListeneronResendRequestSatisfied in interface SessionStateListenerbeginSeqNo - first seqnum that was requestedendSeqNo - last seqnum that was requestedpublic void onReset()
SessionStateListeneronReset in interface SessionStateListenerpublic void sendTestRequest()
SessionAdminMBeansendTestRequest in interface SessionAdminMBeanpublic void sendHeartBeat()
SessionAdminMBeansendHeartBeat in interface SessionAdminMBeanpublic void sendLogoutMessage()
SessionAdminMBeansendLogoutMessage in interface SessionAdminMBeanCopyright © 2021. All rights reserved.