public class EnvironmentArchive extends Archive
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION |
CONFIGS, data, DESCRIPTION_DEFAULT_PROPERTY, ENV_SETTINGS_STORE, ENVIRONMENT_MANIFEST_FILE, environmentStoreTypes, ID_DEFAULT_PROPERTY, MANIFEST_DIR, MANIFEST_FILE, NAME_DEFAULT_PROPERTY, POLICY_MANIFEST_FILE, policyStoreTypes, rootProperties, TIMESTAMP_DEFAULT_PROPERTY, VERSION_DEFAULT_PROPERTY, VERSIONCOMMENT_DEFAULT_PROPERTY
Constructor and Description |
---|
EnvironmentArchive() |
EnvironmentArchive(DeploymentArchive deploymentArchive)
Create a Environment Archive from a Deployment Archive.
|
EnvironmentArchive(java.io.File archiveDirOrArchiveFile)
Generate the EnvironmentArchive off a file or directory on disk.
|
EnvironmentArchive(java.io.File archiveDirOrArchiveFile,
boolean createFromFedExtractDir)
Generate the EnvironmentArchive off a file or directory on disk.
|
EnvironmentArchive(java.io.File entityStoreDir,
java.util.Map<java.lang.String,java.lang.String> environmentRootProperties)
Create the environment archive from:-
a directory that contains the entity store files for the environment archive
in-memory map of root properties
|
EnvironmentArchive(java.io.InputStream is)
Create archive from stream.
|
EnvironmentArchive(java.lang.String archiveDirOrArchiveFilename)
Generate the EnvironmentArchive off a file or directory on disk.
|
EnvironmentArchive(java.lang.String archiveDirOrArchiveFilename,
boolean createFromFedExtractDir)
Generate the EnvironmentArchive off a file or directory on disk.
|
EnvironmentArchive(java.lang.String entityStoreDirname,
java.util.Map<java.lang.String,java.lang.String> environmentRootProperties)
Create the environment archive from:-
a directory that contains the entity store files for the environment archive
in-memory map of root properties
|
EnvironmentArchive(java.net.URL url)
Generate the EnvironmentArchive from a URL e.g.
|
Modifier and Type | Method and Description |
---|---|
com.vordel.es.fed.FederatedEntityStore |
getEntityStore()
Not supported for EnvironmentArchive.
|
java.lang.String |
getFileExtension()
Get the file extension for the archive, i.e.
|
protected void |
refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents)
This function takes the in-memory data and resets the archive data.
|
addBytesToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesToArchive, addEntityStoreFilesToArchive, addFileToArchive, addManifestToArchive, addStoreMD5, copyManifestToProperties, copyRootPropertiesAndSetNewDefaultProps, createNewManifest, extractContentToDir, extractContentToDir, extractContentToDir, generateRootProperties, getConfigurationAssemblyFile, getData, getDefaultProperties, getDefaultProperties, getDirectoryContentsFromArchive, getEmptyDefaultProperties, getFileContentsFromArchive, getId, getManifestFromArchive, getMergedStoreManager, getReadOnlyProperties, getRootManifestFromArchive, getRootProperties, isReadOnlyProperty, loadArchiveDataFromFile, loadArchiveDataFromStream, loadEnvironmentManifestFromDir, loadPolicyManifestFromDir, loadRootManifestFromDir, refreshArchiveData, setData, setRootProperties, updateRootProperties, writeToArchiveFile, writeToArchiveFile
public static final java.lang.String FILE_EXTENSION
public EnvironmentArchive()
public EnvironmentArchive(java.net.URL url) throws java.io.IOException
file:/c:/temp/archive.env
.url
- The urljava.io.IOException
public EnvironmentArchive(java.lang.String archiveDirOrArchiveFilename) throws java.io.IOException
archiveDirOrArchiveFile
- The file or directory with .env file contents on diskjava.io.IOException
public EnvironmentArchive(java.lang.String archiveDirOrArchiveFilename, boolean createFromFedExtractDir) throws java.io.IOException, EntityStoreException
archiveDirOrArchiveFile
- The file or directory with .env file contents on diskcreateFromFedExtractDir
- If true, and we are loading from a directory, the
directory must have full .fed file content (not .env file content).java.io.IOException
EntityStoreException
public EnvironmentArchive(java.io.File archiveDirOrArchiveFile) throws java.io.IOException
archiveDirOrArchiveFile
- The file or directory with .env file contents on diskjava.io.IOException
public EnvironmentArchive(java.io.File archiveDirOrArchiveFile, boolean createFromFedExtractDir) throws java.io.IOException
archiveDirOrArchiveFile
- The file or directory with .env file contents on diskcreateFromFedExtractDir
- If true, and we are loading from a directory, the
directory must have full .fed file content (not .env file content).java.io.IOException
public EnvironmentArchive(java.lang.String entityStoreDirname, java.util.Map<java.lang.String,java.lang.String> environmentRootProperties) throws java.io.IOException, EntityStoreException
entityStoreDirname
- Directory containing entity store filesrootProperties
- Map of root propertiesjava.io.IOException
EntityStoreException
public EnvironmentArchive(java.io.File entityStoreDir, java.util.Map<java.lang.String,java.lang.String> environmentRootProperties) throws java.io.IOException, EntityStoreException
entityStoreDir
- Directory containing entity store filesenvironmentRootProperties
- Map of root propertiesjava.io.IOException
EntityStoreException
public EnvironmentArchive(java.io.InputStream is) throws java.io.IOException
is
- The streamjava.io.IOException
public EnvironmentArchive(DeploymentArchive deploymentArchive) throws java.io.IOException, EntityStoreException
deploymentArchive
- The deployment archiveIOException,
- EntityStoreExceptionjava.io.IOException
EntityStoreException
protected void refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents) throws java.io.IOException
refreshArchiveData
in class Archive
java.io.IOException
public com.vordel.es.fed.FederatedEntityStore getEntityStore() throws java.io.IOException, EntityStoreException
getEntityStore
in class Archive
java.io.IOException
EntityStoreException
public java.lang.String getFileExtension()
Archive
getFileExtension
in class Archive
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel