org.jboss.system.tools
Class DeploymentScanner

java.lang.Object
  extended by org.jboss.system.tools.DeploymentScanner
All Implemented Interfaces:
DeploymentScannerMBean

public class DeploymentScanner
extends Object
implements DeploymentScannerMBean

Deployment scanner impl - hooking into ProfileService.

Author:
Ales Justin

Constructor Summary
DeploymentScanner(DeploymentRepositoryAdapter adapter)
           
 
Method Summary
 void addURL(String url)
          Add url to scanner.
 void addURL(URL url)
          Add url to scanner.
 void create()
          Create server home.
 boolean hasURL(String url)
          Does this repository contain a url.
 boolean hasURL(URL url)
          Does this repository contain a url.
 String[] listDeployedURLs()
          List deployed urls as strings.
protected  URL makeURL(String urlspec)
          A helper to make a URL from a full url, or a filespec.
 void removeURL(String url)
          Add url to scanner.
 void removeURL(URL url)
          Add url to scanner.
 void setServerConfig(org.jboss.bootstrap.spi.ServerConfig serverConfig)
          Set the server config.
 void start()
          Enable scanning.
 void stop()
          Disable scanning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentScanner

public DeploymentScanner(DeploymentRepositoryAdapter adapter)
Method Detail

create

public void create()
Create server home.


start

public void start()
Description copied from interface: DeploymentScannerMBean
Enable scanning.

Specified by:
start in interface DeploymentScannerMBean

stop

public void stop()
Description copied from interface: DeploymentScannerMBean
Disable scanning.

Specified by:
stop in interface DeploymentScannerMBean

addURL

public void addURL(String url)
            throws MalformedURLException,
                   URISyntaxException
Description copied from interface: DeploymentScannerMBean
Add url to scanner.

Specified by:
addURL in interface DeploymentScannerMBean
Parameters:
url - the url
Throws:
MalformedURLException - for any error
URISyntaxException - for any error

addURL

public void addURL(URL url)
            throws URISyntaxException
Description copied from interface: DeploymentScannerMBean
Add url to scanner.

Specified by:
addURL in interface DeploymentScannerMBean
Parameters:
url - the url
Throws:
URISyntaxException - for any error

removeURL

public void removeURL(String url)
               throws MalformedURLException,
                      URISyntaxException
Description copied from interface: DeploymentScannerMBean
Add url to scanner.

Specified by:
removeURL in interface DeploymentScannerMBean
Parameters:
url - the url
Throws:
MalformedURLException - for any error
URISyntaxException - for any error

removeURL

public void removeURL(URL url)
               throws URISyntaxException
Description copied from interface: DeploymentScannerMBean
Add url to scanner.

Specified by:
removeURL in interface DeploymentScannerMBean
Parameters:
url - the url
Throws:
URISyntaxException - for any error

hasURL

public boolean hasURL(String url)
               throws MalformedURLException,
                      URISyntaxException
Description copied from interface: DeploymentScannerMBean
Does this repository contain a url.

Specified by:
hasURL in interface DeploymentScannerMBean
Parameters:
url - the url
Returns:
true if the url is contained
Throws:
MalformedURLException - for any error
URISyntaxException - for any error

hasURL

public boolean hasURL(URL url)
               throws URISyntaxException
Description copied from interface: DeploymentScannerMBean
Does this repository contain a url.

Specified by:
hasURL in interface DeploymentScannerMBean
Parameters:
url - the url
Returns:
true if the url is contained
Throws:
URISyntaxException - for any error

listDeployedURLs

public String[] listDeployedURLs()
Description copied from interface: DeploymentScannerMBean
List deployed urls as strings.

Specified by:
listDeployedURLs in interface DeploymentScannerMBean
Returns:
the list of deployed urls

makeURL

protected URL makeURL(String urlspec)
               throws MalformedURLException
A helper to make a URL from a full url, or a filespec.

Parameters:
urlspec - the url string
Returns:
url based on server home
Throws:
MalformedURLException - for any error

setServerConfig

public void setServerConfig(org.jboss.bootstrap.spi.ServerConfig serverConfig)
Set the server config.

Parameters:
serverConfig - the server config


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