|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.deployment.support.RedeployURLScanner
public class RedeployURLScanner
This class scanns for list of URLs at intervals defined in scheduler and checks if there are changes. In case of changes it removes, adds or redploys modules from given URLs.
Nested Class Summary | |
---|---|
protected static class |
RedeployURLScanner.URLDetails
Internal representation of URL details |
Field Summary | |
---|---|
protected DeploymentManager |
manager
Reference to the deployment manager |
protected Map<URL,RedeployURLScanner.URLDetails> |
map
Map of URLs and URL details |
protected SimpleScheduler |
scheduler
Scheduler to check changes in this directory |
Constructor Summary | |
---|---|
RedeployURLScanner()
Constructor |
Method Summary | |
---|---|
void |
addURL(URL url,
Module module)
Adds new URL to be scanned for changes |
void |
destroy()
Removes this object from scheduler |
DeploymentManager |
getDeploymentManager()
Returns main deployer ( DeploymentManager ); |
SimpleScheduler |
getScheduler()
Returns scheduler ( SimpleScheduler ) |
protected SimpleScheduler |
getSchedulerInternal()
This method is used internally for scheduler to be obtained. |
void |
init()
Schedules running of this runnable object |
void |
removeURL(URL url)
Removes url |
void |
run()
Main method that scans for changes |
void |
setDeploymentManager(DeploymentManager manager)
Sets main deployer ( DeploymentManager ); |
void |
setScheduler(SimpleScheduler scheduler)
Sets scheduler ( SimpleScheduler ). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DeploymentManager manager
protected SimpleScheduler scheduler
protected Map<URL,RedeployURLScanner.URLDetails> map
Constructor Detail |
---|
public RedeployURLScanner()
Method Detail |
---|
public void init()
public void destroy()
public void run()
run
in interface Runnable
public DeploymentManager getDeploymentManager()
DeploymentManager
);
DeploymentManager
);public void setDeploymentManager(DeploymentManager manager)
DeploymentManager
);
manager
- main deployer (DeploymentManager
);public void setScheduler(SimpleScheduler scheduler)
SimpleScheduler
).
scheduler
- schedulerpublic SimpleScheduler getScheduler()
SimpleScheduler
)
protected SimpleScheduler getSchedulerInternal()
KernelScheduler
is
going to be used.
public void addURL(URL url, Module module)
url
- url (currently must be of file protocol)module
- moduel that is already loadedpublic void removeURL(URL url)
url
- url to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |