public class RemoteFileRepository extends Object implements DeploymentFileRepository, org.jboss.msc.service.Service<RemoteFileRepository>
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static RemoteFileRepository |
addService(org.jboss.msc.service.ServiceTarget serviceTarget,
File localDeploymentFolder) |
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.
|
RemoteFileRepository |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static RemoteFileRepository addService(org.jboss.msc.service.ServiceTarget serviceTarget, File localDeploymentFolder)
public RemoteFileRepository getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<RemoteFileRepository>
IllegalStateException
IllegalArgumentException
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<RemoteFileRepository>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<RemoteFileRepository>
public final File[] getDeploymentFiles(byte[] deploymentHash)
DeploymentFileRepository
getDeploymentFiles
in interface DeploymentFileRepository
deploymentHash
- the hash of the deployment contentnull
if it is not foundpublic File getDeploymentRoot(byte[] deploymentHash)
DeploymentFileRepository
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 © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.