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, sendNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onConnectException
public SessionAdmin(Session session, ObjectName connectorName, ObjectName settingsName)
public String getID()
public String getTargetCompID()
SessionAdminMBean
getTargetCompID
in interface SessionAdminMBean
public String getTargetSubID()
SessionAdminMBean
getTargetSubID
in interface SessionAdminMBean
public String getTargetLocationID()
SessionAdminMBean
getTargetLocationID
in interface SessionAdminMBean
public String getSenderCompID()
SessionAdminMBean
getSenderCompID
in interface SessionAdminMBean
public String getSenderSubID()
SessionAdminMBean
getSenderSubID
in interface SessionAdminMBean
public String getSenderLocationID()
SessionAdminMBean
getSenderLocationID
in interface SessionAdminMBean
public String getBeginString()
SessionAdminMBean
getBeginString
in interface SessionAdminMBean
public boolean isLoggedOn()
isLoggedOn
in interface SessionAdminMBean
public String getRemoteIPAddress()
public void reset()
SessionAdminMBean
reset
in interface SessionAdminMBean
public int getNextSenderMsgSeqNum() throws IOException
SessionAdminMBean
getNextSenderMsgSeqNum
in interface SessionAdminMBean
IOException
public void setNextSenderMsgSeqNum(int next) throws IOException
SessionAdminMBean
setNextSenderMsgSeqNum
in interface SessionAdminMBean
next
- next sender message sequence numberIOException
public void setNextTargetMsgSeqNum(int next) throws IOException
SessionAdminMBean
setNextTargetMsgSeqNum
in interface SessionAdminMBean
next
- the next target message sequence numberIOException
public int getNextTargetMsgSeqNum() throws IOException
SessionAdminMBean
getNextTargetMsgSeqNum
in interface SessionAdminMBean
IOException
public String[] getMessages(int startSequence, int endSequence) throws IOException
IOException
public void disconnect() throws IOException
SessionAdminMBean
disconnect
in interface SessionAdminMBean
IOException
public void resetSequence(int nextSeqNum) throws SessionNotFound
SessionAdminMBean
resetSequence
in interface SessionAdminMBean
SessionNotFound
protected void doSend(Message message, SessionID sessionID) throws SessionNotFound
SessionNotFound
public void logon()
SessionAdminMBean
logon
in interface SessionAdminMBean
public void logoff()
SessionAdminMBean
logoff
in interface SessionAdminMBean
public boolean isReconnectEnabled()
public String getHost()
public String getProcessID()
public ObjectName getConnectorName()
getConnectorName
in interface SessionAdminMBean
public boolean getCheckCompID()
getCheckCompID
in interface SessionAdminMBean
public String getLogClassName()
getLogClassName
in interface SessionAdminMBean
public int getLogonTimeout()
getLogonTimeout
in interface SessionAdminMBean
public int getLogoutTimeout()
getLogoutTimeout
in interface SessionAdminMBean
public String getMessageFactoryClassName()
getMessageFactoryClassName
in interface SessionAdminMBean
public String getMessageStoreClassName()
getMessageStoreClassName
in interface SessionAdminMBean
public boolean getRedundantResendRequestsAllowed()
getRedundantResendRequestsAllowed
in interface SessionAdminMBean
public boolean getRefreshOnLogon()
getRefreshOnLogon
in interface SessionAdminMBean
public boolean getResetOnDisconnect()
getResetOnDisconnect
in interface SessionAdminMBean
public boolean getResetOnLogout()
getResetOnLogout
in interface SessionAdminMBean
public boolean isLogonAlreadySent()
isLogonAlreadySent
in interface SessionAdminMBean
public boolean isLogonReceived()
isLogonReceived
in interface SessionAdminMBean
public boolean isLogonSendNeeded()
isLogonSendNeeded
in interface SessionAdminMBean
public boolean isLogonSent()
isLogonSent
in interface SessionAdminMBean
public boolean isLogonTimedOut()
isLogonTimedOut
in interface SessionAdminMBean
public boolean isLogoutReceived()
isLogoutReceived
in interface SessionAdminMBean
public boolean isLogoutSent()
isLogoutSent
in interface SessionAdminMBean
public boolean isLogoutTimedOut()
isLogoutTimedOut
in interface SessionAdminMBean
public void setLogonTimeout(int seconds)
setLogonTimeout
in interface SessionAdminMBean
public void setLogoutTimeout(int seconds)
setLogoutTimeout
in interface SessionAdminMBean
public boolean isUsingDataDictionary()
isUsingDataDictionary
in interface SessionAdminMBean
public String getSessionID()
SessionAdminMBean
getSessionID
in interface SessionAdminMBean
public boolean getEnabled()
getEnabled
in interface SessionAdminMBean
public String getStartTime()
getStartTime
in interface SessionAdminMBean
public String getConnectionRole()
getConnectionRole
in interface SessionAdminMBean
public void postDeregister()
postDeregister
in interface MBeanRegistration
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void onConnect()
SessionStateListener
onConnect
in interface SessionStateListener
public void onDisconnect()
SessionStateListener
onDisconnect
in interface SessionStateListener
public void onLogon()
SessionStateListener
onLogon
in interface SessionStateListener
public void onLogout()
SessionStateListener
onLogout
in interface SessionStateListener
public void onHeartBeatTimeout()
SessionStateListener
onHeartBeatTimeout
in interface SessionStateListener
public void onMissedHeartBeat()
SessionStateListener
onMissedHeartBeat
in interface SessionStateListener
public void onRefresh()
SessionStateListener
onRefresh
in interface SessionStateListener
public void onResendRequestSent(int beginSeqNo, int endSeqNo, int currentEndSeqNo)
SessionStateListener
onResendRequestSent
in interface SessionStateListener
beginSeqNo
- 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)
SessionStateListener
onSequenceResetReceived
in interface SessionStateListener
newSeqNo
- NewSeqNo from SequenceResetgapFillFlag
- GapFillFlag from SequenceResetpublic void onResendRequestSatisfied(int beginSeqNo, int endSeqNo)
SessionStateListener
onResendRequestSatisfied
in interface SessionStateListener
beginSeqNo
- first seqnum that was requestedendSeqNo
- last seqnum that was requestedpublic void onReset()
SessionStateListener
onReset
in interface SessionStateListener
public void sendTestRequest()
SessionAdminMBean
sendTestRequest
in interface SessionAdminMBean
public void sendHeartBeat()
SessionAdminMBean
sendHeartBeat
in interface SessionAdminMBean
public void sendLogoutMessage()
SessionAdminMBean
sendLogoutMessage
in interface SessionAdminMBean
Copyright © 2021. All rights reserved.