public class LocalDeploymentFileRepository extends Object implements DeploymentFileRepository
Constructor and Description |
---|
LocalDeploymentFileRepository(File deploymentRoot) |
Modifier and Type | Method and Description |
---|---|
void |
deleteDeployment(byte[] deploymentHash)
Deletes a deployment from the local file system
|
File[] |
getDeploymentFiles(byte[] deploymentHash)
Get the files associated with a given deployment.
|
File |
getDeploymentRoot(byte[] deploymentHash)
Gets the directory under which files associated with a given deployment
would be found.
|
public LocalDeploymentFileRepository(File deploymentRoot)
public File[] getDeploymentFiles(byte[] deploymentHash)
getDeploymentFiles
in interface DeploymentFileRepository
deploymentHash
- the hash of the deployment contentnull
if it is not foundpublic File getDeploymentRoot(byte[] deploymentHash)
getDeploymentRoot
in interface DeploymentFileRepository
deploymentHash
- the hash of the deployment contentnull
, even if the
deployment is unknownpublic void deleteDeployment(byte[] deploymentHash)
DeploymentFileRepository
deleteDeployment
in interface DeploymentFileRepository
deploymentHash
- the hash of the deployment contentCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.