org.objectweb.easybeans.deployer
Interface IRemoteDeployer

All Known Implementing Classes:
RemoteDeployer

public interface IRemoteDeployer

Interface allowing to deploy some files. This interface will be exposed through JMX.

Author:
Florent Benoit

Method Summary
 void deploy(java.lang.String fileName)
          Deploy a file to a local deployer.
 void deployFile(java.lang.String fileName, byte[] fileContent)
          Dump the given bytes to a local file and then load this file by using a local deployer.
 java.lang.String dumpFile(java.lang.String fileName, byte[] fileContent)
          Dump the given bytes to a local file and then return the path to this file.
 void undeploy(java.lang.String fileName)
          Undeploy a file by using a local deployer.
 

Method Detail

deployFile

void deployFile(java.lang.String fileName,
                byte[] fileContent)
Dump the given bytes to a local file and then load this file by using a local deployer.

Parameters:
fileName - the name of the file to deploy
fileContent - the content of the given file

dumpFile

java.lang.String dumpFile(java.lang.String fileName,
                          byte[] fileContent)
Dump the given bytes to a local file and then return the path to this file.

Parameters:
fileName - the name of the file to deploy
fileContent - the content of the given file
Returns:
the path of the deployed file

deploy

void deploy(java.lang.String fileName)
Deploy a file to a local deployer.

Parameters:
fileName - the name of the file to deploy

undeploy

void undeploy(java.lang.String fileName)
Undeploy a file by using a local deployer.

Parameters:
fileName - the name of the file to undeploy