|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployer.RemoteDeployer
public final class RemoteDeployer
Deployer allowing deploy/undeploy functions on this container.
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_FOLDER
Folder to create in tmp folder. |
private EZBDeployer |
deployer
Link to a local deployer. |
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
RemoteDeployer(EZBServer embedded)
Build a Deployer for the given Embedded instance. |
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 deploy this file to 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. |
protected EZBDeployable |
getDeployable(java.lang.String fileName)
Gets a deployable for a given file. |
void |
undeploy(java.lang.String fileName)
Undeploy a file by using a local deployer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String DEFAULT_FOLDER
private static JLog logger
private EZBDeployer deployer
Constructor Detail |
---|
public RemoteDeployer(EZBServer embedded) throws EZBDeployerException
embedded
- the Server instance.
EZBDeployerException
- if the local deployer can't be accessed.Method Detail |
---|
public java.lang.String dumpFile(java.lang.String fileName, byte[] fileContent)
dumpFile
in interface IRemoteDeployer
fileName
- the name of the file to deployfileContent
- the content of the given file
public void deployFile(java.lang.String fileName, byte[] fileContent)
deployFile
in interface IRemoteDeployer
fileName
- the name of the file to deployfileContent
- the content of the given filepublic void deploy(java.lang.String fileName)
deploy
in interface IRemoteDeployer
fileName
- the name of the file to deployprotected EZBDeployable getDeployable(java.lang.String fileName)
fileName
- the name of the file
public void undeploy(java.lang.String fileName)
undeploy
in interface IRemoteDeployer
fileName
- the name of the file to undeploy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |