|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.jbossas.util.FileContentDelegate
public class FileContentDelegate
Delegate class used for manipulating artifacts in a JON plugin.
| Field Summary | |
|---|---|
protected File |
directory
|
| Constructor Summary | |
|---|---|
FileContentDelegate(File directory,
String fileEnding,
String packageTypeName)
|
|
| Method Summary | |
|---|---|
void |
createContent(org.rhq.core.domain.content.PackageDetails details,
File sourceContentFile,
boolean unzip,
boolean createBackup)
Creates a new package described by the specified details. |
void |
deleteContent(org.rhq.core.domain.content.PackageDetails details)
Deletes the underlying file for the specified package. |
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> |
discoverDeployedPackages()
|
InputStream |
getContent(org.rhq.core.domain.content.PackageDetails details)
Returns a stream from which the content of the specified package can be read. |
File |
getDirectory()
|
String |
getFileEnding()
|
String |
getPackageTypeName()
|
File |
getPath(org.rhq.core.domain.content.PackageDetails details)
|
String |
getSHA(File deploymentFile)
Retrieves the SHA256 for a deployed application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File directory
| Constructor Detail |
|---|
public FileContentDelegate(File directory,
String fileEnding,
String packageTypeName)
| Method Detail |
|---|
public String getFileEnding()
public String getPackageTypeName()
public File getDirectory()
public void createContent(org.rhq.core.domain.content.PackageDetails details,
File sourceContentFile,
boolean unzip,
boolean createBackup)
details - describes the package being createdcontent - content to be written for the package. NOTE this Stream will be closed by this method.unzip - if true, the content stream will be treated like a ZIP file and be unzipped as
it is written, using the package name as the base directory; if false thecreateBackup - If true, the original file will be backed up to file.bakshaString - the SHA-256 of the specified input streampublic File getPath(org.rhq.core.domain.content.PackageDetails details)
public InputStream getContent(org.rhq.core.domain.content.PackageDetails details)
details - package being loaded
null, an
exception is thrown if the content cannot be loadedpublic void deleteContent(org.rhq.core.domain.content.PackageDetails details)
details - package to deletepublic Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> discoverDeployedPackages()
public String getSHA(File deploymentFile)
deploymentFile - deployment file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||