org.opencrx.application.adapter
Class AbstractServer
java.lang.Object
org.opencrx.application.adapter.AbstractServer
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- IMAPServer, LDAPServer
public abstract class AbstractServer
- extends Object
- implements Runnable
|
Constructor Summary |
protected |
AbstractServer(String serverName,
javax.jdo.PersistenceManagerFactory pmf,
String providerName,
String bindAddress,
int portNumber,
String sslKeystoreFile,
String sslKeystoreType,
String sslKeystorePass,
String sslKeyPass,
boolean isDebug,
int delayOnStartup)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverName
protected final String serverName
bindAddress
protected final String bindAddress
sslKeystoreFile
protected final String sslKeystoreFile
sslKeystoreType
protected final String sslKeystoreType
sslKeystorePass
protected final String sslKeystorePass
sslKeyPass
protected final String sslKeyPass
portNumber
protected final int portNumber
providerName
protected final String providerName
isDebug
protected final boolean isDebug
delayOnStartup
protected final int delayOnStartup
sessions
protected final Map<Thread,AbstractSession> sessions
serverSocket
protected ServerSocket serverSocket
pmf
protected final javax.jdo.PersistenceManagerFactory pmf
AbstractServer
protected AbstractServer(String serverName,
javax.jdo.PersistenceManagerFactory pmf,
String providerName,
String bindAddress,
int portNumber,
String sslKeystoreFile,
String sslKeystoreType,
String sslKeystorePass,
String sslKeyPass,
boolean isDebug,
int delayOnStartup)
newSession
public abstract AbstractSession newSession(Socket socket,
AbstractServer server)
bind
public boolean bind()
throws ServiceException
- Throws:
ServiceException
run
public void run()
- Specified by:
run in interface Runnable
pause
public void pause()
resume
public void resume()
getProviderName
public String getProviderName()
isDebug
public boolean isDebug()
getPersistenceManagerFactory
public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.