| org.enhydra.server.ApplicationServer
ApplicationServer | public interface ApplicationServer (Code) | | Description: This interface bridges the gap between Application
Server (Servlet Container) and Enhydra Server. Application Server must have
appropriate class, that implement this interface. That class is responsible
to call EnhydraServer.startup() after application server
initialization. It enable EnhydraServer to add/remove connections and
start/stop applications into Application Server.
Copyright: Copyright (c) 2002
Company:
author: Damir Milovic, damir@uns.ns.ac.yu version: 1.1 date: 9.12.2002 |
addConnection | public boolean addConnection(String type, String portNumber)(Code) | | Add a new connection for listening requests.
Parameters: type - connection type (e.g "http") Parameters: portNumber - port number. true if succeed, else false . |
addConnection | public boolean addConnection(String type, String portNumber, String password, String pathToKeyStoreFile)(Code) | | Add a new https connection for listening requests
Parameters: type - connection type (e.g "https") Parameters: portNumber - port number. Parameters: password - password needed for "https" connection. Parameters: pathToKeyStoreFile - pathname of the keystore file where you havestored the server certificate to be loaded true if succeed, else false . |
getConnectionTypes | public String[] getConnectionTypes()(Code) | | String representation of connection types that application server support. |
getConnections | public Hashtable getConnections()(Code) | | Get currently active connections.
key,value pairs (key = port, value = value) |
getInfo | public String getInfo()(Code) | | Application Server short description. |
getName | public String getName()(Code) | | Application Server name. |
getVersion | public String getVersion()(Code) | | Application Server version. |
removeConnection | public boolean removeConnection(String portNumber)(Code) | | Remove connection for listening requests.
Parameters: port - connection port number. true if succeed, else false . |
startApp | public boolean startApp(String appName)(Code) | | Start application.
Parameters: appName - Application name. true if succeed, else false . |
stop | public void stop()(Code) | | Shutdown Application Server
|
stopApp | public boolean stopApp(String appName)(Code) | | Stop application.
Parameters: appName - application name. true if succeed, else false . |
|
|