jrunx.connectorinstaller
Class ApacheInstaller

java.lang.Object
  |
  +--jrunx.connectorinstaller.WebServerInstaller
        |
        +--jrunx.connectorinstaller.ApacheInstaller

public class ApacheInstaller
extends WebServerInstaller

JRun 4.0 Installer for Apache connector.

Version:
JRun version 4.0
Author:
Carol Frampton (cframpton@macromedia.com)

Fields inherited from class jrunx.connectorinstaller.WebServerInstaller
jrunInfo, supportedVersionStr, wsBuildNum, wsInfo, wsMajorVer, wsMinorVer, wsVersionStr
 
Method Summary
 void getConnectorConfig()
          Retrieve the Apache connector filter configuration.
 WebServerState getStateWS()
           
 void installConnector()
          Install the Apache connector filter, restarting the Apache server if it can't be detected that it is already running.
 void installConnector(boolean bRestart)
          Install the Apache connector filter
 boolean isValidVersion()
           
 void modifyConnector()
          Modify the Apache connector filter configuration for the web server, restarting the Apache server if it can't be detected that it is already running.
 void modifyConnector(boolean bRestart)
          Modify the Apache connector filter configuration for the web server.
 void removeConnector()
          Remoave the Apache connector filter, restarting the Apache server if it can't be detected that it is already running.
 void removeConnector(boolean bRestart)
          Remove the Apache connector filter from the web server.
 void restartWS()
          Stop the web server
 void startWS()
          Start the web server.
 void stopWS()
          Stop the Apache web server.
 
Methods inherited from class jrunx.connectorinstaller.WebServerInstaller
createObject, createObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

installConnector

public void installConnector()
                      throws java.lang.Exception
Install the Apache connector filter, restarting the Apache server if it can't be detected that it is already running.
Overrides:
installConnector in class WebServerInstaller
Throws:
java.lang.Exception - if error during installation of filter

installConnector

public void installConnector(boolean bRestart)
                      throws java.lang.Exception
Install the Apache connector filter
Overrides:
installConnector in class WebServerInstaller
Parameters:
bRestart - if restart of Apache desired
Throws:
java.lang.Exception - if error during installation of filter

removeConnector

public void removeConnector()
                     throws java.lang.Exception
Remoave the Apache connector filter, restarting the Apache server if it can't be detected that it is already running.
Overrides:
removeConnector in class WebServerInstaller
Throws:
java.lang.Exception - if error during installation of filter

removeConnector

public void removeConnector(boolean bRestart)
                     throws java.lang.Exception
Remove the Apache connector filter from the web server.
Overrides:
removeConnector in class WebServerInstaller
Parameters:
bRestart - if restart of Apache desired
Throws:
java.lang.Exception - if error during removal of connector

modifyConnector

public void modifyConnector()
                     throws java.lang.Exception
Modify the Apache connector filter configuration for the web server, restarting the Apache server if it can't be detected that it is already running.
Overrides:
modifyConnector in class WebServerInstaller
Throws:
java.lang.Exception - if error during installation of filter

modifyConnector

public void modifyConnector(boolean bRestart)
                     throws java.lang.Exception
Modify the Apache connector filter configuration for the web server.
Overrides:
modifyConnector in class WebServerInstaller
Parameters:
bRestart - if restart of Apache desired
Throws:
java.lang.Exception - if error during removal of connector

getConnectorConfig

public void getConnectorConfig()
                        throws java.lang.Exception
Retrieve the Apache connector filter configuration.
Overrides:
getConnectorConfig in class WebServerInstaller
Throws:
java.lang.Exception - if error

startWS

public void startWS()
             throws WebServerException
Start the web server.
Overrides:
startWS in class WebServerInstaller
Throws:
java.lang.Exception - if error starting web server

stopWS

public void stopWS()
            throws WebServerException
Stop the Apache web server.
Overrides:
stopWS in class WebServerInstaller
Parameters:
arg - is not used
Throws:
java.lang.Exception - if error stopping web server

restartWS

public void restartWS()
               throws WebServerException
Stop the web server
Overrides:
restartWS in class WebServerInstaller
Parameters:
arg - is not used
Throws:
java.lang.Exception - if error stopping web server

getStateWS

public WebServerState getStateWS()
Overrides:
getStateWS in class WebServerInstaller

isValidVersion

public boolean isValidVersion()
                       throws ConnectorInstallerException
Overrides:
isValidVersion in class WebServerInstaller


Copyright � 2002 Macromedia Corporation. All Rights Reserved.