public abstract class AbstractServer extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected String |
bindAddress |
protected int |
delayOnStartup |
protected boolean |
isDebug |
protected javax.jdo.PersistenceManagerFactory |
pmf |
protected int |
portNumber |
protected String |
providerName |
protected String |
serverName |
protected ServerSocket |
serverSocket |
protected Map<Thread,AbstractSession> |
sessions |
protected String |
sslKeyPass |
protected String |
sslKeystoreFile |
protected String |
sslKeystorePass |
protected String |
sslKeystoreType |
protected Boolean |
sslNeedClientAuth |
protected String |
sslTruststoreFile |
protected String |
sslTruststorePass |
protected String |
sslTruststoreType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractServer(String serverName,
javax.jdo.PersistenceManagerFactory pmf,
String providerName,
String bindAddress,
int portNumber,
String sslKeystoreFile,
String sslKeystoreType,
String sslKeystorePass,
String sslKeyPass,
String sslTruststoreFile,
String sslTruststorePass,
String sslTruststoreType,
Boolean sslNeedClientAuth,
boolean isDebug,
int delayOnStartup)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bind()
Bind socket.
|
javax.jdo.PersistenceManagerFactory |
getPersistenceManagerFactory()
Get persistence manager factory.
|
String |
getProviderName()
Get configured provider name.
|
boolean |
isDebug()
Return true if debug mode.
|
abstract AbstractSession |
newSession(Socket socket,
AbstractServer server)
Create new session for socket for given server.
|
void |
pause()
Pause session.
|
void |
resume()
Resume session.
|
void |
run() |
protected final String serverName
protected final String bindAddress
protected final String sslKeystoreFile
protected final String sslKeystoreType
protected final String sslKeystorePass
protected final String sslKeyPass
protected final String sslTruststoreFile
protected final String sslTruststoreType
protected final String sslTruststorePass
protected final Boolean sslNeedClientAuth
protected final int portNumber
protected final String providerName
protected final boolean isDebug
protected final int delayOnStartup
protected final Map<Thread,AbstractSession> sessions
protected ServerSocket serverSocket
protected final javax.jdo.PersistenceManagerFactory pmf
protected AbstractServer(String serverName, javax.jdo.PersistenceManagerFactory pmf, String providerName, String bindAddress, int portNumber, String sslKeystoreFile, String sslKeystoreType, String sslKeystorePass, String sslKeyPass, String sslTruststoreFile, String sslTruststorePass, String sslTruststoreType, Boolean sslNeedClientAuth, boolean isDebug, int delayOnStartup)
serverName
- pmf
- providerName
- bindAddress
- portNumber
- sslKeystoreFile
- sslKeystoreType
- sslKeystorePass
- sslKeyPass
- sslTruststoreFile
- sslTruststorePass
- sslTruststoreType
- sslNeedClientAuth
- isDebug
- delayOnStartup
- public abstract AbstractSession newSession(Socket socket, AbstractServer server)
socket
- server
- public boolean bind() throws org.openmdx.base.exception.ServiceException
org.openmdx.base.exception.ServiceException
public void pause()
public void resume()
public String getProviderName()
public boolean isDebug()
public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.