public class DeploymentArchive extends Archive
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION |
CHANGEDBY_PROPERTY, 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 |
|---|
DeploymentArchive() |
DeploymentArchive(com.vordel.es.fed.FederatedEntityStore fedStore,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
Construct a deployment archive from an entity store.
|
DeploymentArchive(java.io.File archiveDirOrArchiveFile)
Generate the DeploymentArchive from a file or directory on disk.
|
DeploymentArchive(java.io.File archiveDirOrArchiveFile,
boolean generateNewArchiveId)
Generate the DeploymentArchive from a file or directory on disk.
|
DeploymentArchive(java.io.File entityStoreDir,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
Create the archive from:-
a directory that contains the entity store
in-memory map of policy properties
in-memory map of env properties
|
DeploymentArchive(java.io.InputStream is)
Create archive from stream.
|
DeploymentArchive(PolicyArchive policyArchive,
EnvironmentArchive environmentArchive)
Create the archive from a PolicyArchive and a DeploymentArchive.
|
DeploymentArchive(PolicyArchive policyArchive,
EnvironmentArchive environmentArchive,
boolean checkForUnresolved)
Create the archive from a PolicyArchive and a DeploymentArchive.
|
DeploymentArchive(java.lang.String archiveDirOrArchiveFilename)
Generate the DeploymentArchive from a file or directory on disk.
|
DeploymentArchive(java.lang.String entityStoreDirname,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
Create the archive from:
a directory that contains the entity store
in-memory map of policy properties
in-memory map of env properties
|
DeploymentArchive(java.net.URL url)
Generate the DeploymentArchive from a URL
file:/c:/temp/archive.fed. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,EntityStore> |
getComponentEntityStores(java.lang.String outputDirname)
Extract archive contents to disk, and return 5 component stores
contained in archive.
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironmentProperties()
Get environment properties.
|
java.lang.String |
getFileExtension()
Get the file extension for the archive, i.e.
|
java.util.Map<java.lang.String,java.lang.String> |
getPolicyProperties()
Get policy properties
|
com.vordel.es.fed.assembly.StoreManager |
getStoreManager()
Get a StoreManager from archive contents.
|
java.util.Set<PortableESPK> |
getUnresolvedReferences()
Get a list of unresolved references in the entity store in the archive.
|
protected void |
refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents)
This function takes the in-memory data and resets the archive data.
|
void |
setEnvironmentProperties(java.util.Map<java.lang.String,java.lang.String> props)
Set environment properties
Do *not* use this method to update the policy properties in the archive binary data,
use updateEnvironmentProperties() instead.
|
void |
setPolicyProperties(java.util.Map<java.lang.String,java.lang.String> props)
Set policy properties.
|
void |
updateConfiguration(com.vordel.es.fed.FederatedEntityStore fedStore)
Update the FederatedEntityStore and the underlying binary archive data.
|
void |
updateEnvironmentProperties(java.util.Map<java.lang.String,java.lang.String> props)
Update the environment properties and the underlying binary archive data.
|
void |
updatePolicyProperties(java.util.Map<java.lang.String,java.lang.String> props)
Update the policy properties and the underlying binary archive data.
|
addBytesToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesFromDirToArchive, addEntityStoreFilesToArchive, addEntityStoreFilesToArchive, addFileToArchive, addManifestToArchive, addStoreMD5, copyManifestToProperties, copyRootPropertiesAndSetNewDefaultProps, createNewManifest, extractContentToDir, extractContentToDir, extractContentToDir, generateRootProperties, getConfigurationAssemblyFile, getData, getDefaultProperties, getDefaultProperties, getDirectoryContentsFromArchive, getEmptyDefaultProperties, getEntityStore, getFileContentsFromArchive, getId, getManifestFromArchive, getMergedStoreManager, getReadOnlyProperties, getRootManifestFromArchive, getRootProperties, isReadOnlyProperty, loadArchiveDataFromFile, loadArchiveDataFromStream, loadEnvironmentManifestFromDir, loadPolicyManifestFromDir, loadRootManifestFromDir, refreshArchiveData, setData, setRootProperties, updateRootProperties, writeToArchiveFile, writeToArchiveFilepublic static final java.lang.String FILE_EXTENSION
public DeploymentArchive()
public DeploymentArchive(java.net.URL url)
throws java.io.IOException
file:/c:/temp/archive.fed.url - The urljava.io.IOExceptionpublic DeploymentArchive(java.lang.String archiveDirOrArchiveFilename)
throws java.io.IOException
archiveDirOrArchiveFile - The file or directory with fed file contents on diskjava.io.IOExceptionpublic DeploymentArchive(java.io.File archiveDirOrArchiveFile)
throws java.io.IOException
archiveDirOrArchiveFile - The file or directory with fed file contents on diskjava.io.IOExceptionpublic DeploymentArchive(java.io.File archiveDirOrArchiveFile,
boolean generateNewArchiveId)
throws java.io.IOException
archiveDirOrArchiveFile - The file or directory with fed file contents on diskgenerateNewArchiveId - If true, and we are loading from a directory, then
generate a new id for the archive, i.e. do not use the id in the
manifest.mf on disk.java.io.IOExceptionpublic DeploymentArchive(java.io.InputStream is)
throws java.io.IOException
is - The streamjava.io.IOExceptionpublic DeploymentArchive(PolicyArchive policyArchive, EnvironmentArchive environmentArchive) throws java.io.IOException, EntityStoreException
policyArchive - The Policy ArchiveenvironmentArchive - The Environment Archivejava.io.IOExceptionEntityStoreExceptionpublic DeploymentArchive(PolicyArchive policyArchive, EnvironmentArchive environmentArchive, boolean checkForUnresolved) throws java.io.IOException, EntityStoreException
policyArchive - The Policy ArchiveenvironmentArchive - The Environment ArchivecheckForUnresolved - True if you wish to check for unresolved references and throw an exception
if there are any.java.io.IOExceptionEntityStoreExceptionpublic DeploymentArchive(java.lang.String entityStoreDirname,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
throws java.io.IOException
entityStoreDirname - Directory name containing entity store filespolicyProperties - Map of policy propertiesenvironmentProperties - Map of environment propertiesjava.io.IOExceptionpublic DeploymentArchive(java.io.File entityStoreDir,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
throws java.io.IOException
entityStoreDirname - Directory containing entity store filespolicyProperties - Map of policy propertiesenvironmentProperties - Map of environment propertiesjava.io.IOExceptionpublic DeploymentArchive(com.vordel.es.fed.FederatedEntityStore fedStore,
java.util.Map<java.lang.String,java.lang.String> policyProperties,
java.util.Map<java.lang.String,java.lang.String> environmentProperties)
throws java.io.IOException,
EntityStoreException
fedStore - The entity storepolicyProperties - Map of policy propertiesenvironmentProperties - Map of environment propertiesjava.io.IOExceptionEntityStoreExceptionpublic java.util.Set<PortableESPK> getUnresolvedReferences() throws EntityStoreException, java.io.IOException
EntityStoreExceptionjava.io.IOExceptionpublic void updatePolicyProperties(java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
props - java.io.IOExceptionpublic void updateEnvironmentProperties(java.util.Map<java.lang.String,java.lang.String> props)
throws java.io.IOException
props - java.io.IOExceptionpublic void updateConfiguration(com.vordel.es.fed.FederatedEntityStore fedStore)
throws java.io.IOException,
EntityStoreException
fedStore - java.io.IOExceptionEntityStoreExceptionprotected void refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents)
throws java.io.IOException
ArchiverefreshArchiveData in class Archivejava.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.String> getPolicyProperties()
public void setPolicyProperties(java.util.Map<java.lang.String,java.lang.String> props)
props - public java.util.Map<java.lang.String,java.lang.String> getEnvironmentProperties()
public void setEnvironmentProperties(java.util.Map<java.lang.String,java.lang.String> props)
props - public java.lang.String getFileExtension()
ArchivegetFileExtension in class Archivepublic java.util.Map<java.lang.String,EntityStore> getComponentEntityStores(java.lang.String outputDirname) throws java.io.IOException, EntityStoreException
outputDirname - The name of the directory to extract the archive tojava.io.IOExceptionEntityStoreExceptionpublic com.vordel.es.fed.assembly.StoreManager getStoreManager()
throws java.io.IOException
java.io.IOException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel