[jboss-dev-forums] [Design of POJO Server] - Re: HDScanner scanPeriod
jaikiran
do-not-reply at jboss.com
Fri Apr 24 00:05:49 EDT 2009
"alesj" wrote :
|
| | protected boolean hasStructureBeenModifed(VirtualFile root, VFSDeploymentContext deploymentContext) throws IOException
| | {
| | ...
| | // check for addition
| | AddVisitor addVisitor = new AddVisitor(originalAttributes, getCache(), synchAdapter, tempRoot, root.getPathName().length());
| | root.visit(addVisitor);
| | }
| | return modified;
| | }
| |
|
| AddVisitor traverses over originals, checking if matching temp exists,
| if not, new file has been added --> solving your problem. ;-)
Assuming the HDScanner is set to run every 5 seconds, wouldn't this scanning for new files within the original deployment lead to time delays? From what i see, the AddVisitor looks for new files in the original deployments and these new files can be nested too. Which effectively means scanning the entire deployment every 5 seconds. I haven't given this change a try against the AS, so don't know whether i am talking sense :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226414#4226414
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226414
More information about the jboss-dev-forums
mailing list