org.mule.module.launcher
Class MuleDeploymentService.AppDirWatcher

java.lang.Object
  extended by org.mule.module.launcher.MuleDeploymentService.AppDirWatcher
All Implemented Interfaces:
Runnable
Enclosing class:
MuleDeploymentService

protected class MuleDeploymentService.AppDirWatcher
extends Object
implements Runnable

Not thread safe. Correctness is guaranteed by a single-threaded executor.


Field Summary
protected  File appsDir
           
protected  boolean dirty
           
 
Constructor Summary
MuleDeploymentService.AppDirWatcher(File appsDir)
           
 
Method Summary
protected  boolean isZombieApplication(File marker)
          Determines if a given URL points to the same file as an existing zombie application.
protected  void onNewExplodedApplication(String appName)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appsDir

protected File appsDir

dirty

protected volatile boolean dirty
Constructor Detail

MuleDeploymentService.AppDirWatcher

public MuleDeploymentService.AppDirWatcher(File appsDir)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

isZombieApplication

protected boolean isZombieApplication(File marker)
Determines if a given URL points to the same file as an existing zombie application.

Parameters:
marker - a pointer to a zip or exploded mule app (in the latter case an app's 'mule-config.xml' will be monitored for updates
Returns:
true if the URL already a zombie application and both file timestamps are the same.

onNewExplodedApplication

protected void onNewExplodedApplication(String appName)
                                 throws Exception
Parameters:
appName - application name as it appears in $MULE_HOME/apps
Throws:
Exception


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.