|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.fixengine.FIXServer
com.epam.fixengine.scheduler.ScheduledFIXServer
public class ScheduledFIXServer
FIXServer implementation that support scheduling of allow/deny policies for incoming connections.
| Field Summary |
|---|
| Fields inherited from class com.epam.fixengine.FIXServer |
|---|
configuration, configuredSessionRegister, ports, servers |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
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 |
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 |
startSession(SessionParameters params)
Allow connection to specified session manually. |
void |
stopSession(SessionParameters params)
Stop specified session and deny connection manually. |
| Methods inherited from class com.epam.fixengine.FIXServer |
|---|
getAcceptorStrategy, getConfigPath, getRegisterAcceptorSession, getTransportFactory, registerAcceptorSession, registerConfiguredSessions, setConfigPath, setLoginWaitTimeout, setNic, setPort, setPorts, setServer, start, stop, unregisterAcceptorSession |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledFIXServer()
public ScheduledFIXServer(boolean allowNonScheduledSession)
allowNonScheduledSession - false means that allowed only scheduled connection after server start.
All rest are denied by default.| Method Detail |
|---|
public void setListener(FIXServerListener listener)
FIXServer
setListener in class FIXServerlistener - - user specified listener
public void scheduleSessionStart(String cronExpr,
SessionParameters params)
cronExpr - CRON expressionparams - session detailsprotected void descheduleSessionStart(SessionParameters params)
public void startSession(SessionParameters params)
params - session details
public void scheduleSessionStop(String cronExpr,
SessionParameters params)
cronExpr - CRON expressionparams - session detailsprotected void descheduleSessionStop(SessionParameters params)
public void stopSession(SessionParameters params)
params - session detailspublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||