com.metamatrix.dqp.embedded.configuration
Class VDBConfigurationReader

java.lang.Object
  extended by com.metamatrix.dqp.embedded.configuration.VDBConfigurationReader

public class VDBConfigurationReader
extends java.lang.Object

This is reader class for DEF file. This is light weight implementation of DEF reader,which does not come with any heavy weight as the config API or modeler stuff. At the same time it may not have all the flexibility. This is mainly used in the DQP configuration, it builds the Admin API objects as out puts.

Since:
4.3

Constructor Summary
VDBConfigurationReader()
           
 
Method Summary
static VDBArchive loadVDB(java.lang.String name, byte[] vdbContents)
          Load the combined VDB file and DEF file archive
static VDBArchive loadVDB(java.lang.String name, char[] defContents, byte[] vdbContents)
          Load the VDB from the contents given.
static VDBArchive loadVDB(java.net.URL vdbURL)
          Load the VDB at the given URL.
static java.util.HashMap<java.net.URL,VDBArchive> loadVDBS(java.net.URL[] urls)
          Load the VDBS at the given URLS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VDBConfigurationReader

public VDBConfigurationReader()
Method Detail

loadVDB

public static VDBArchive loadVDB(java.lang.String name,
                                 char[] defContents,
                                 byte[] vdbContents)
                          throws MetaMatrixComponentException
Load the VDB from the contents given.

Parameters:
defContents -
vdbContents -
Returns:
VDB - return the loaded VDB object with its configuration
Throws:
MetaMatrixComponentException
Since:
4.3

loadVDB

public static VDBArchive loadVDB(java.lang.String name,
                                 byte[] vdbContents)
                          throws MetaMatrixComponentException
Load the combined VDB file and DEF file archive

Parameters:
name -
vdbContents -
Returns:
Throws:
java.lang.Exception
MetaMatrixComponentException
Since:
4.3

loadVDB

public static VDBArchive loadVDB(java.net.URL vdbURL)
                          throws MetaMatrixComponentException
Load the VDB at the given URL. If this is DEF file look for same named VDB file

Parameters:
vdbURL -
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

loadVDBS

public static java.util.HashMap<java.net.URL,VDBArchive> loadVDBS(java.net.URL[] urls)
                                                           throws MetaMatrixComponentException
Load the VDBS at the given URLS. If the URL is does not point to a DEF or VDB then look for more VDB at that directory level and load any VDBs at that level.

Parameters:
vdbURLs -
Returns:
HashMap map of objects with (URL, VDBDefn)
Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.