public class LocalFileRepository extends LocalDeploymentFileRepository implements HostFileRepository, org.jboss.msc.service.Service<HostFileRepository>
| Constructor and Description |
|---|
LocalFileRepository(File repositoryRoot,
File deploymentRoot,
File configurationRoot) |
| Modifier and Type | Method and Description |
|---|---|
File |
getConfigurationFile(String relativePath)
Get a file relative to the configuration root.
|
File[] |
getDeploymentFiles(byte[] hash)
Get the files associated with a given deployment.
|
File |
getDeploymentRoot(byte[] hash)
Gets the directory under which files associated with a given deployment
would be found.
|
File |
getFile(String relativePath)
Get a file relative to the repository root.
|
HostFileRepository |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
deleteDeploymentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteDeploymentpublic File getFile(String relativePath)
getFile in interface HostFileRepositoryrelativePath - Relative path to the filepublic File getConfigurationFile(String relativePath)
getConfigurationFile in interface HostFileRepositoryrelativePath - Relative path to the filepublic File[] getDeploymentFiles(byte[] hash)
getDeploymentFiles in interface DeploymentFileRepositorygetDeploymentFiles in class LocalDeploymentFileRepositoryhash - the hash of the deployment contentnull if it is not foundpublic File getDeploymentRoot(byte[] hash)
getDeploymentRoot in interface DeploymentFileRepositorygetDeploymentRoot in class LocalDeploymentFileRepositoryhash - the hash of the deployment contentnull, even if the
deployment is unknownpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<HostFileRepository>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<HostFileRepository>public HostFileRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<HostFileRepository>IllegalStateExceptionIllegalArgumentExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.