org.jboss.system.server.profileservice.repository
Class AbstractDeploymentRepository
java.lang.Object
org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
- All Implemented Interfaces:
- org.jboss.profileservice.spi.DeploymentRepository
- Direct Known Subclasses:
- BasicDeploymentRepository
public abstract class AbstractDeploymentRepository
- extends AbstractVFSProfileSource
- implements org.jboss.profileservice.spi.DeploymentRepository
A abstract VFS based deployment repository.
- Version:
- $Revision: 87267 $
- Author:
- Emanuel Muckenhuber
Field Summary |
protected static int |
ignoreFlags
The ignore flags. |
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource |
addDeployment, addedDeployment, addedDeployments, addVirtualFileCache, createDeployment, destroy, findDeploymentContent, getCachedVirtualFile, getCachedVirtualFile, getDeploymentFilter, getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs, isRecursiveScan, loadApplications, setDeploymentFilter, setRecursiveScan, updateLastModfied |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.profileservice.spi.DeploymentRepository |
addDeployment, addDeploymentContent, addDeploymentContent, getDeploymentNames, getDeployments, getLastModified, getModifiedDeployments, getRepositoryURIs, load, remove |
ignoreFlags
protected static final int ignoreFlags
- The ignore flags.
- See Also:
- Constant Field Values
AbstractDeploymentRepository
public AbstractDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
URI[] uris)
getProfileKey
public org.jboss.profileservice.spi.ProfileKey getProfileKey()
create
public void create()
throws Exception
- Specified by:
create
in interface org.jboss.profileservice.spi.DeploymentRepository
- Throws:
Exception
unload
public void unload()
- Specified by:
unload
in interface org.jboss.profileservice.spi.DeploymentRepository
acceptsDeployment
protected boolean acceptsDeployment(String name)
- Description copied from class:
AbstractVFSProfileSource
- Check if the deployment should be added.
- Overrides:
acceptsDeployment
in class AbstractVFSProfileSource
- Parameters:
name
- the deployment name
- Returns:
removeDeployment
public org.jboss.profileservice.spi.ProfileDeployment removeDeployment(String vfsPath)
throws Exception
- Description copied from class:
AbstractVFSProfileSource
- Remove a deployment from this source.
- Specified by:
removeDeployment
in interface org.jboss.profileservice.spi.DeploymentRepository
- Overrides:
removeDeployment
in class AbstractVFSProfileSource
- Parameters:
vfsPath
- the deployment name
- Returns:
- the deployment
- Throws:
Exception
getDeployment
public org.jboss.profileservice.spi.ProfileDeployment getDeployment(String vfsPath)
throws org.jboss.profileservice.spi.NoSuchDeploymentException
- Description copied from class:
AbstractVFSProfileSource
- Get the deployment
- Specified by:
getDeployment
in interface org.jboss.profileservice.spi.DeploymentRepository
- Overrides:
getDeployment
in class AbstractVFSProfileSource
- Parameters:
vfsPath
- the deployment
- Returns:
- the deployment or null if it does not exist
- Throws:
org.jboss.profileservice.spi.NoSuchDeploymentException
getDeploymentContent
public org.jboss.virtual.VirtualFile getDeploymentContent(String name)
throws IOException
- Specified by:
getDeploymentContent
in interface org.jboss.profileservice.spi.DeploymentRepository
- Throws:
IOException
getRepositoryNames
public String[] getRepositoryNames(String... names)
throws IOException
- Specified by:
getRepositoryNames
in interface org.jboss.profileservice.spi.DeploymentRepository
- Throws:
IOException
lockDeploymentContent
public int lockDeploymentContent(String vfsPath)
- Specified by:
lockDeploymentContent
in interface org.jboss.profileservice.spi.DeploymentRepository
unlockDeploymentContent
public int unlockDeploymentContent(String vfsPath)
- Specified by:
unlockDeploymentContent
in interface org.jboss.profileservice.spi.DeploymentRepository
getDeploymentContentFlags
public int getDeploymentContentFlags(String vfsPath)
- Specified by:
getDeploymentContentFlags
in interface org.jboss.profileservice.spi.DeploymentRepository
clearDeploymentContentFlags
public int clearDeploymentContentFlags(String vfsPath,
int flags)
- Specified by:
clearDeploymentContentFlags
in interface org.jboss.profileservice.spi.DeploymentRepository
hasDeploymentContentFlags
public boolean hasDeploymentContentFlags(String vfsPath,
int flag)
- Specified by:
hasDeploymentContentFlags
in interface org.jboss.profileservice.spi.DeploymentRepository
setDeploymentContentFlags
public int setDeploymentContentFlags(String vfsPath,
int flags)
- Specified by:
setDeploymentContentFlags
in interface org.jboss.profileservice.spi.DeploymentRepository
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.