}
/*--Logic---------------------------------------------------*/
+ @Override
public void start() throws Exception {
if (started)
return;
}
configBase = new File(System.getProperty(Globals.CATALINA_BASE_PROP), "conf");
- if (engine != null) {
- configBase = new File(configBase, engine.getName());
- }
- if (host != null) {
- configBase = new File(configBase, hostname);
- }
+ configBase = new File(configBase, engine.getName());
+ configBase = new File(configBase, hostname);
// Retrieve the MBean server
mBeanServer = Registry.getRegistry(null, null).getMBeanServer();
*
* @see org.apache.catalina.ha.ClusterDeployer#stop()
*/
+ @Override
public void stop() throws LifecycleException {
started = false;
getCluster().removeClusterListener(this);
* if an input/output error was encountered during
* installation
*/
+ @Override
public void install(String contextPath, URL war) throws IOException {
Member[] members = getCluster().getMembers();
Member localMember = getCluster().getLocalMember();
* @exception IOException
* if an input/output error occurs during removal
*/
+ @Override
public void remove(String contextPath, boolean undeploy) throws IOException {
if (log.isInfoEnabled())
log.info("Cluster wide remove of web app " + contextPath);
*
* @see org.apache.catalina.ha.deploy.FileChangeListener#fileModified(java.io.File)
*/
+ @Override
public void fileModified(File newWar) {
try {
File deployWar = new File(getDeployDir(), newWar.getName());
*
* @see org.apache.catalina.ha.deploy.FileChangeListener#fileRemoved(java.io.File)
*/
+ @Override
public void fileRemoved(File removeWar) {
try {
String contextName = getContextName(removeWar);
*
* @see org.apache.catalina.ha.ClusterDeployer#backgroundProcess()
*/
+ @Override
public void backgroundProcess() {
if (started) {
count = (count + 1) % processDeployFrequency;