|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fixengine.FIXServer
public class FIXServer
Generic FIXServer implementation.
Field Summary | |
---|---|
protected com.epam.fixengine.session.util.ConfigurationAdaptor |
configuration
|
protected com.epam.fixengine.manager.ConfiguredSessionRegister |
configuredSessionRegister
|
protected int[] |
ports
|
protected Server[] |
servers
|
Constructor Summary | |
---|---|
FIXServer()
|
|
FIXServer(Configuration conf)
Creates the fix server. |
Method Summary | |
---|---|
protected SessionAcceptorStrategyHandler |
getAcceptorStrategy(Configuration configuration)
|
String |
getConfigPath()
Path to config file |
List<SessionParameters> |
getRegisterAcceptorSession()
|
protected SessionTransportFactory |
getTransportFactory(Configuration configuration)
|
void |
registerAcceptorSession(SessionParameters sessionParameters)
Register the session parameters of acceptor. |
protected void |
registerConfiguredSessions()
|
void |
setConfigPath(String configPath)
Set path to config file |
void |
setListener(FIXServerListener listener)
Sets listener. |
void |
setLoginWaitTimeout(int loginWaitTimeout)
Sets login timeout. |
void |
setNic(String nic)
|
void |
setPort(int port)
Sets port to listen on. |
void |
setPorts(int... ports)
Sets ports to listen on. |
void |
setServer(Server server)
Replaces default TCPServer implementation with custom Server implementation. |
boolean |
start()
Actually starts the servers. |
void |
stop()
Stops the server. |
void |
unregisterAcceptorSession(SessionParameters sessionParameters)
Remove registered acceptor session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Server[] servers
protected final com.epam.fixengine.session.util.ConfigurationAdaptor configuration
protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
protected int[] ports
Constructor Detail |
---|
public FIXServer()
public FIXServer(Configuration conf)
Method Detail |
---|
protected SessionTransportFactory getTransportFactory(Configuration configuration)
protected SessionAcceptorStrategyHandler getAcceptorStrategy(Configuration configuration)
public void setServer(Server server)
server
- implementation specified by userServer
public void setListener(FIXServerListener listener)
listener
- - user specified listenerpublic void setLoginWaitTimeout(int loginWaitTimeout)
loginWaitTimeout
- the login timeout in milspublic void setPorts(int... ports)
ports
- ports to listen onpublic void setPort(int port)
port
- port to listen onpublic void setNic(String nic)
public boolean start() throws IOException
IOException
- if unable to start the server at least on one port. In this case the first received
exception will be thrown.protected void registerConfiguredSessions()
public void stop() throws IOException
IOException
- if stop was unsuccessfulpublic void registerAcceptorSession(SessionParameters sessionParameters)
sessionParameters
- the sessionParameterspublic void unregisterAcceptorSession(SessionParameters sessionParameters)
sessionParameters
- public List<SessionParameters> getRegisterAcceptorSession()
public String getConfigPath()
public void setConfigPath(String configPath)
configPath
- path to config file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |