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(ContentReference reference)
Get the files associated with a given deployment.
|
File |
getDeploymentRoot(ContentReference reference)
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) |
deleteDeployment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteDeployment
public File getFile(String relativePath)
getFile
in interface HostFileRepository
relativePath
- Relative path to the filepublic File getConfigurationFile(String relativePath)
getConfigurationFile
in interface HostFileRepository
relativePath
- Relative path to the filepublic File[] getDeploymentFiles(ContentReference reference)
getDeploymentFiles
in interface DeploymentFileRepository
getDeploymentFiles
in class LocalDeploymentFileRepository
reference
- the reference of the deployment content.null
if it is not foundpublic File getDeploymentRoot(ContentReference reference)
getDeploymentRoot
in interface DeploymentFileRepository
getDeploymentRoot
in class LocalDeploymentFileRepository
reference
- the reference of the deployment content.null
, 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.StartException
public 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>
IllegalStateException
IllegalArgumentException
Copyright © 2023 JBoss by Red Hat. All rights reserved.