public class ScheduledFIXServer extends FIXServer
configuration, servers
Constructor and Description |
---|
ScheduledFIXServer()
Create instance of server that allow connection by default after server start if it was not denied by schedule.
|
ScheduledFIXServer(boolean allowNonScheduledSession)
Create instance of server.
|
ScheduledFIXServer(boolean allowNonScheduledSession,
TimeZone timeZone)
Create instance of server.
|
ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config) |
ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config,
boolean allowNonScheduledSession) |
ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config,
boolean allowNonScheduledSession,
TimeZone timeZone)
Create instance of server.
|
ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config,
TimeZone timeZone) |
ScheduledFIXServer(TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
void |
allowSessions()
Allow all incoming connection by default.
|
void |
cancelServerSchedule()
Cancel scheduled tasks for allow/deny connection.
|
void |
cancelSessionSchedule(SessionParameters params)
Cancel all scheduled tasks for specified session and allow default connection behaviour for it.
|
void |
denySessions()
Deny all incoming connection by default.
|
protected void |
descheduleAllowSessions() |
protected void |
descheduleDenySessions() |
void |
descheduleSession(SessionParameters params) |
protected void |
descheduleSessionStart(SessionParameters params) |
protected void |
descheduleSessionStop(SessionParameters params) |
void |
scheduleAllowSessions(String cronExpr)
Schedule time to allow all incoming connection by default.
|
void |
scheduleDenySessions(String cronExpr)
Schedule time to deny all incoming connection by default.
|
void |
scheduleSession(SessionParameters params,
String startCronExpr,
String stopCronExpr) |
void |
scheduleSessionStart(String cronExpr,
SessionParameters params)
Schedule the start of period when incoming connections for specified session are allowed.
|
void |
scheduleSessionStop(String cronExpr,
SessionParameters params)
Schedule the end of period when incoming connections for specified session are allowed.
|
void |
setListener(FIXServerListener listener)
Sets listener.
|
void |
setServerSchedule(String allowCronExpr,
String denyCronExpr) |
void |
startSession(SessionParameters params)
Allow connection to specified session manually.
|
void |
stop()
Stops the server.
|
void |
stopSession(SessionParameters params)
Stop specified session and deny connection manually.
|
addServer, addServerStatusListener, clearServers, closePort, createServer, deleteServer, getAcceptorStrategy, getConfigPath, getConfiguredServerSocketFactory, getNic, getOpenPorts, getPorts, getRegisterAcceptorSession, getServer, getTransportFactory, handleAutoClose, isStarted, onAddSession, onRemoveSession, openPort, openPort, openPort, openPort, registerAcceptorSession, registerConfiguredSessions, removeServerStatusListener, setConfigPath, setConnectionValidator, setIncomingConnectionExecutor, setLoginWaitTimeout, setNic, setPort, setPorts, setPorts, setServer, start, stopAndDeleteServer, unregisterAcceptorSession, validateBeforeRegistration
public ScheduledFIXServer()
public ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config)
public ScheduledFIXServer(TimeZone timeZone)
public ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config, TimeZone timeZone)
public ScheduledFIXServer(boolean allowNonScheduledSession)
allowNonScheduledSession
- false means that allowed only scheduled connection after server start.
All rest are denied by default.public ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config, boolean allowNonScheduledSession)
public ScheduledFIXServer(boolean allowNonScheduledSession, TimeZone timeZone)
allowNonScheduledSession
- false means that allowed only scheduled connection after server start.
All rest are denied by default.public ScheduledFIXServer(com.epam.fixengine.configuration.Configuration config, boolean allowNonScheduledSession, TimeZone timeZone)
allowNonScheduledSession
- false means that allowed only scheduled connection after server start.
All rest are denied by default.public void setListener(FIXServerListener listener)
FIXServer
setListener
in class FIXServer
listener
- - user specified listenerpublic void scheduleSessionStart(String cronExpr, SessionParameters params)
cronExpr
- CRON expressionparams
- session detailsprotected void descheduleSessionStart(SessionParameters params)
public void startSession(SessionParameters params)
params
- session detailspublic void scheduleSessionStop(String cronExpr, SessionParameters params)
cronExpr
- CRON expressionparams
- session detailspublic void stop() throws IOException
FIXServer
stop
in class FIXServer
IOException
- if stop was unsuccessfulprotected void descheduleSessionStop(SessionParameters params)
public void stopSession(SessionParameters params)
params
- session detailspublic void scheduleSession(SessionParameters params, String startCronExpr, String stopCronExpr)
public void descheduleSession(SessionParameters params)
public void cancelSessionSchedule(SessionParameters params)
params
- session detailspublic void scheduleAllowSessions(String cronExpr)
cronExpr
- CRON expressionprotected void descheduleAllowSessions()
public void scheduleDenySessions(String cronExpr)
cronExpr
- CRON expressionprotected void descheduleDenySessions()
public void cancelServerSchedule()
public void allowSessions()
public void denySessions()
Copyright © 2000–2022 EPAM Systems. All rights reserved.