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() |
void |
onDisconnect() |
void |
onHeartBeatTimeout() |
void |
onLogon() |
void |
onLogout() |
void |
onMissedHeartBeat() |
void |
onRefresh() |
void |
onReset() |
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, sendNotificationpublic 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()
throws IOException
SessionAdminMBeanreset in interface SessionAdminMBeanIOExceptionpublic 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()
onConnect in interface SessionStateListenerpublic void onDisconnect()
onDisconnect in interface SessionStateListenerpublic void onLogon()
onLogon in interface SessionStateListenerpublic void onLogout()
onLogout in interface SessionStateListenerpublic void onHeartBeatTimeout()
onHeartBeatTimeout in interface SessionStateListenerpublic void onMissedHeartBeat()
onMissedHeartBeat in interface SessionStateListenerpublic void onRefresh()
onRefresh in interface SessionStateListenerpublic void onReset()
onReset in interface SessionStateListenerpublic void sendTestRequest()
SessionAdminMBeansendTestRequest in interface SessionAdminMBeanpublic void sendHeartBeat()
SessionAdminMBeansendHeartBeat in interface SessionAdminMBeanpublic void sendLogoutMessage()
SessionAdminMBeansendLogoutMessage in interface SessionAdminMBeanCopyright © 2019. All rights reserved.