org.jboss.deployers.plugins.scanner
Class VFSDeploymentScannerImpl

java.lang.Object
  extended by org.jboss.deployers.plugins.scanner.VFSDeploymentScannerImpl
All Implemented Interfaces:
Runnable

public class VFSDeploymentScannerImpl
extends Object
implements Runnable

A DeploymentScanner built on the ProfileService and MainDeployer.

Version:
$Revision: 85526 $
Author:
Dimitris Andreadis, Scott.Stark@jboss.org

Constructor Summary
VFSDeploymentScannerImpl()
           
 
Method Summary
 void addURI(URI uri)
           
 org.jboss.virtual.VirtualFileFilter getFilterInstance()
           
 boolean getRecursiveSearch()
           
 int getScanCount()
           
 ScheduledExecutorService getScanExecutor()
           
 long getScanPeriod()
           
 List<URI> getURIList()
           
 boolean hasURI(URI uri)
           
protected  void incScanCount()
          Inc the scanCount and to a notifyAll.
 boolean isScanEnabled()
          Are deployment scans enabled.
 void removeURI(URI uri)
           
 void resetScanCount()
           
 void run()
          Executes scan
 void scan()
           
 void setFilterInstance(org.jboss.virtual.VirtualFileFilter filter)
           
 void setMainDeployer(org.jboss.deployers.client.spi.main.MainDeployer deployer)
           
 void setRecursiveSearch(boolean recurse)
           
 void setScanEnabled(boolean scanEnabled)
          Enable/disable deployment scans.
 void setScanExecutor(ScheduledExecutorService scanExecutor)
           
 void setScanPeriod(long period)
           
 void setURIList(List<URI> list)
          Set uris to scan
 void setURIs(String listspec)
          Set the urls to scan
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSDeploymentScannerImpl

public VFSDeploymentScannerImpl()
Method Detail

setMainDeployer

public void setMainDeployer(org.jboss.deployers.client.spi.main.MainDeployer deployer)

getFilterInstance

public org.jboss.virtual.VirtualFileFilter getFilterInstance()

setFilterInstance

public void setFilterInstance(org.jboss.virtual.VirtualFileFilter filter)

getScanExecutor

public ScheduledExecutorService getScanExecutor()
Returns:
Returns the scanExecutor.

setScanExecutor

public void setScanExecutor(ScheduledExecutorService scanExecutor)
Parameters:
scanExecutor - The scanExecutor to set.

getScanPeriod

public long getScanPeriod()

setScanPeriod

public void setScanPeriod(long period)

isScanEnabled

public boolean isScanEnabled()
Are deployment scans enabled.

Returns:
whether scan is enabled

getScanCount

public int getScanCount()

resetScanCount

public void resetScanCount()

setScanEnabled

public void setScanEnabled(boolean scanEnabled)
Enable/disable deployment scans.

Parameters:
scanEnabled - true to enable scans, false to disable.

setURIs

public void setURIs(String listspec)
             throws URISyntaxException,
                    IOException
Set the urls to scan

Parameters:
listspec - the urls
Throws:
URISyntaxException
IOException

setURIList

public void setURIList(List<URI> list)
                throws IOException
Set uris to scan

Parameters:
list - the urls to scan
Throws:
IOException

getURIList

public List<URI> getURIList()

setRecursiveSearch

public void setRecursiveSearch(boolean recurse)

getRecursiveSearch

public boolean getRecursiveSearch()

addURI

public void addURI(URI uri)
            throws IOException
Throws:
IOException

removeURI

public void removeURI(URI uri)
               throws IOException
Throws:
IOException

hasURI

public boolean hasURI(URI uri)

start

public void start()
           throws Exception
Throws:
Exception

run

public void run()
Executes scan

Specified by:
run in interface Runnable

stop

public void stop()

scan

public void scan()
          throws Exception
Throws:
Exception

incScanCount

protected void incScanCount()
Inc the scanCount and to a notifyAll.



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.