|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.vdb.api.VDBArchive
public class VDBArchive
Latest incarnation of the VDBContext, specifically for weeding out dependencies on the vdb.edit; So do put in Modeler dependencies here.
Field Summary | |
---|---|
static java.lang.String |
CACHED
|
static java.lang.String |
USE_CONNECTOR_METADATA
|
Constructor Summary | |
---|---|
VDBArchive(java.io.File vdb)
Build a VDB archive from the given zip file. |
|
VDBArchive(java.io.InputStream vdbStream)
Build VDB archive from given stream. |
Method Summary | |
---|---|
boolean |
cacheConnectorMetadata()
Whether to cache connector metadata |
void |
close()
Close the VDBArchive and do the cleanup. |
BasicVDBDefn |
getConfigurationDef()
Get the parsed object for the Configuration.def file. |
java.util.Set<java.lang.String> |
getConnectorMetadataModelNames()
Get the list of model names that will provide metadata |
char[] |
getDataRoles()
Get the Data roles file if one is defined |
java.io.File |
getDeployDirectory()
|
java.util.Set<java.lang.String> |
getEntries()
Return all files known by this metadata source |
java.io.File |
getFile(java.lang.String path)
Returns the file for the given path, which must exist in the entry set |
ModelInfo |
getModelInfo(java.lang.String name)
Get the model with the given name. |
java.lang.String |
getName()
|
short |
getStatus()
|
java.lang.String[] |
getVDBValidityErrors()
Returns errors, otherwise null for no validity errors. |
java.lang.String |
getVersion()
|
boolean |
isVisible(java.lang.String pathInVdb)
|
static VDBArchive |
loadVDB(java.net.URL vdbURL,
java.io.File deployDirectory)
|
static BasicVDBDefn |
readFromDef(java.io.InputStream defStream)
Load the VDB from DEF file. |
void |
saveFile(java.io.InputStream is,
java.lang.String path)
Save the stream to given path. |
void |
setName(java.lang.String name)
|
void |
setStatus(short status)
|
java.lang.String |
toString()
|
void |
updateConfigurationDef(BasicVDBDefn vdbDef)
Update the Configuration.def file, with supplied DEF object. |
void |
updateRoles(char[] roles)
Update/Add the data roles file in the archive. |
void |
write(java.io.OutputStream out)
Write the VDBArchive to the given output stream |
static byte[] |
writeToByteArray(VDBArchive vdb)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String USE_CONNECTOR_METADATA
public static java.lang.String CACHED
Constructor Detail |
---|
public VDBArchive(java.io.InputStream vdbStream) throws java.io.IOException
vdbStream
-
java.io.IOException
public VDBArchive(java.io.File vdb) throws java.io.IOException
vdb
-
java.io.IOException
Method Detail |
---|
public static VDBArchive loadVDB(java.net.URL vdbURL, java.io.File deployDirectory) throws java.io.IOException
java.io.IOException
public java.util.Set<java.lang.String> getConnectorMetadataModelNames()
MetadataSource
getConnectorMetadataModelNames
in interface MetadataSource
public boolean cacheConnectorMetadata()
MetadataSource
cacheConnectorMetadata
in interface MetadataSource
public void saveFile(java.io.InputStream is, java.lang.String path) throws java.io.IOException
MetadataSource
saveFile
in interface MetadataSource
java.io.IOException
public java.io.File getDeployDirectory()
public static BasicVDBDefn readFromDef(java.io.InputStream defStream) throws java.io.IOException
defStream
- - DEF file Stream;
java.io.IOException
public void updateConfigurationDef(BasicVDBDefn vdbDef) throws java.io.IOException
vdbDef
-
java.io.IOException
public void updateRoles(char[] roles) throws java.io.IOException
roles
- - contents of the roles file
java.io.IOException
public void close()
public BasicVDBDefn getConfigurationDef()
public char[] getDataRoles()
public java.lang.String[] getVDBValidityErrors()
public void write(java.io.OutputStream out) throws java.io.IOException
out
-
java.io.IOException
public java.lang.String getName()
getName
in interface MetadataSource
public void setName(java.lang.String name)
public java.lang.String getVersion()
public short getStatus()
public void setStatus(short status)
public java.util.Set<java.lang.String> getEntries()
MetadataSource
getEntries
in interface MetadataSource
public boolean isVisible(java.lang.String pathInVdb)
public static byte[] writeToByteArray(VDBArchive vdb) throws MetaMatrixComponentException
MetaMatrixComponentException
public java.lang.String toString()
toString
in class java.lang.Object
public java.io.File getFile(java.lang.String path)
MetadataSource
getFile
in interface MetadataSource
public ModelInfo getModelInfo(java.lang.String name)
MetadataSource
getModelInfo
in interface MetadataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |