public class DeploymentArchive 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 |
---|
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, writeToArchiveFile
public 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.IOException
public DeploymentArchive(java.lang.String archiveDirOrArchiveFilename) throws java.io.IOException
archiveDirOrArchiveFile
- The file or directory with fed file contents on diskjava.io.IOException
public DeploymentArchive(java.io.File archiveDirOrArchiveFile) throws java.io.IOException
archiveDirOrArchiveFile
- The file or directory with fed file contents on diskjava.io.IOException
public 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.IOException
public DeploymentArchive(java.io.InputStream is) throws java.io.IOException
is
- The streamjava.io.IOException
public DeploymentArchive(PolicyArchive policyArchive, EnvironmentArchive environmentArchive) throws java.io.IOException, EntityStoreException
policyArchive
- The Policy ArchiveenvironmentArchive
- The Environment Archivejava.io.IOException
EntityStoreException
public 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.IOException
EntityStoreException
public 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.IOException
public 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.IOException
public 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.IOException
EntityStoreException
public java.util.Set<PortableESPK> getUnresolvedReferences() throws EntityStoreException, java.io.IOException
EntityStoreException
java.io.IOException
public void updatePolicyProperties(java.util.Map<java.lang.String,java.lang.String> props) throws java.io.IOException
props
- java.io.IOException
public void updateEnvironmentProperties(java.util.Map<java.lang.String,java.lang.String> props) throws java.io.IOException
props
- java.io.IOException
public void updateConfiguration(com.vordel.es.fed.FederatedEntityStore fedStore) throws java.io.IOException, EntityStoreException
fedStore
- java.io.IOException
EntityStoreException
protected void refreshArchiveData(java.util.Map<java.lang.String,byte[]> idDirContents) throws java.io.IOException
Archive
refreshArchiveData
in class Archive
java.io.IOException
public 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()
Archive
getFileExtension
in class Archive
public 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.IOException
EntityStoreException
public 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