|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.dqp.embedded.admin.DQPConfigAdminImpl
public class DQPConfigAdminImpl
DQP implementation of the Config Admin API
| Constructor Summary | |
|---|---|
DQPConfigAdminImpl(EmbeddedConnectionFactoryImpl manager)
|
|
| Method Summary | |
|---|---|
protected AdminException |
accumulateProcessingException(AdminException parent,
java.lang.Exception e)
|
protected AdminException |
accumulateSystemException(AdminException parent,
java.lang.Exception e)
|
void |
addConnectorArchive(byte[] contents,
AdminOptions options)
Add Connector Type and all the required extension modules required by the this connector type into the system from the given file byte stream which is encoded inthe Connector Archive format. |
ConnectorBinding |
addConnectorBinding(java.lang.String deployName,
char[] xmlFile,
AdminOptions options)
Import a ConnectorBinding into the Configuration. |
ConnectorBinding |
addConnectorBinding(java.lang.String deployName,
java.lang.String type,
java.util.Properties properties,
AdminOptions options)
Deploy a ConnectorBinding to Configuration |
void |
addConnectorType(java.lang.String deployName,
char[] cdkFile)
Add Connector Type, will import Connector Type from a file |
void |
addExtensionModule(java.lang.String type,
java.lang.String sourceName,
byte[] source,
java.lang.String description)
Adds an ExtensionModule to the end of the list of modules. |
void |
addUDF(byte[] modelFileContents,
java.lang.String classpath)
Add User Defined Function model to the system. |
VDB |
addVDB(java.lang.String deployName,
byte[] vdbFile,
AdminOptions options)
Import a VDB file. |
void |
assignBindingToModel(java.lang.String deployedConnectorBindingName,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String modelName)
Assign a ConnectorBinding to a VDB's Model |
protected java.util.Collection |
convertPropertyDefinitions(ComponentType ctype,
java.util.Properties properties)
Convert a ComponentType and a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects |
protected java.util.Collection |
convertPropertyDefinitions(java.util.Properties properties)
Convert a set of properties into a Collection of com.metamatrix.admin.api.objects.PropertyDefinition objects |
protected java.lang.Object |
convertToAdminObjects(java.lang.Object src)
|
protected java.lang.Object |
convertToAdminObjects(java.lang.Object src,
java.lang.Object parent)
|
void |
deleteConnectorBinding(java.lang.String identifier)
Delete the ConnectorBinding from the Configuration |
void |
deleteConnectorType(java.lang.String deployName)
Delete Connector Type from Next Configuration |
void |
deleteExtensionModule(java.lang.String sourceName)
Deletes an ExtensionModule from the list of modules. |
void |
deleteUDF()
Delete the User Defined Function model. |
char[] |
exportConfiguration()
Export Configuration to character Array in XML format |
byte[] |
exportConnectorArchive(java.lang.String identifier)
Export Connector Archive, which is bundled connector type with its xml properties file and all the extension modules required by the this connector type |
char[] |
exportConnectorBinding(java.lang.String identifier)
Export a ConnectorBinding to character Array in XML format |
char[] |
exportConnectorType(java.lang.String identifier)
Export Connector Type to character array |
byte[] |
exportExtensionModule(java.lang.String sourceName)
Export an ExtensionModule to byte array |
byte[] |
exportVDB(java.lang.String name,
java.lang.String version)
Export VDB to byte array |
void |
extensionModuleModified(java.lang.String name)
Indicates that an extension module has changed |
protected java.util.Collection |
getAdminObjects(java.lang.String identifier,
java.lang.String className)
Get admin objects of the specified className that match the specified identifier. |
LogConfiguration |
getLogConfiguration()
Get the LogConfiguration |
EmbeddedConnectionFactoryImpl |
getManager()
|
SystemObject |
getSystem()
Get the system state. |
protected java.lang.String |
prettyPrintBindingNames(java.util.List bindings)
|
void |
setLogConfiguration(LogConfiguration config)
Set the LogConfiguration in the MetaMatrix Server |
void |
setProperty(java.lang.String identifier,
java.lang.String className,
java.lang.String propertyName,
java.lang.String propertyValue)
Set a Property for an AdminObject |
void |
setSystemProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Set system-wide property. |
void |
updateProperties(java.lang.String identifier,
java.lang.String className,
java.util.Properties properties)
Set several properties for an AdminObject. |
void |
updateSystemProperties(java.util.Properties properties)
Set several system-wide properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DQPConfigAdminImpl(EmbeddedConnectionFactoryImpl manager)
| Method Detail |
|---|
public void setSystemProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws AdminException
CoreConfigAdmin
setSystemProperty in interface CoreConfigAdminpropertyName - Name of the System PropertypropertyValue - Value of the System Property
AdminException - if there's a system error or if there's a user input error.CoreConfigAdmin.setSystemProperty(java.lang.String, java.lang.String)
public void updateSystemProperties(java.util.Properties properties)
throws AdminException
CoreConfigAdmin
updateSystemProperties in interface CoreConfigAdminproperties - Properties to set.
AdminException - if there's a system error or if there's a user input error.CoreConfigAdmin.updateSystemProperties(java.util.Properties)
public void setProperty(java.lang.String identifier,
java.lang.String className,
java.lang.String propertyName,
java.lang.String propertyValue)
throws AdminException
CoreConfigAdmin
setProperty in interface CoreConfigAdminidentifier - The unique identifier for for an AdminObject.className - The class name of the sub-interface of AdminObject you are setting the property for.
All of these sub-interfaces are in package com.metamatrix.admin.api.objects.
You may specify either the fully-qualified or unqualified classname.
For example "ConnectorBinding" or "com.metamatrix.admin.api.objects.ConnectorBinding".propertyName - String Property keypropertyValue - String value to update
AdminException - if there's a system error.CoreConfigAdmin.setProperty(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void updateProperties(java.lang.String identifier,
java.lang.String className,
java.util.Properties properties)
throws AdminException
CoreConfigAdmin
updateProperties in interface CoreConfigAdminidentifier - The unique identifier for for an AdminObject.className - The class name of the sub-interface of AdminObject you are setting the property for.
All of these sub-interfaces are in package com.metamatrix.admin.api.objects.
You may specify either the fully-qualified or unqualified classname.
For example "ConnectorBinding" or "com.metamatrix.admin.api.objects.ConnectorBinding".properties - Properties to set.
AdminException - if there's a system error or if there's a user input error.CoreConfigAdmin.updateProperties(java.lang.String, java.lang.String, java.util.Properties)
public void addConnectorType(java.lang.String deployName,
char[] cdkFile)
throws AdminException
CoreConfigAdmin
addConnectorType in interface CoreConfigAdmindeployName - of the Connector Type to addcdkFile - contents of File from Client
AdminException - if there's a system error.CoreConfigAdmin.addConnectorType(java.lang.String, char[])
public void deleteConnectorType(java.lang.String deployName)
throws AdminException
CoreConfigAdmin
deleteConnectorType in interface CoreConfigAdmindeployName - String name of the Connector Type to delete
AdminException - if there's a system error.CoreConfigAdmin.deleteConnectorType(java.lang.String)
public ConnectorBinding addConnectorBinding(java.lang.String deployName,
java.lang.String type,
java.util.Properties properties,
AdminOptions options)
throws AdminException
CoreConfigAdminConnectorBinding to Configuration
addConnectorBinding in interface CoreConfigAdmindeployName - is the Connector Binding name that will be added to Configurationtype - Name of the Connector Typeproperties - Name & Value pair need to deploy the Connector Bindingoptions - The perferred options when executing this method. There are choices about
what to do when a connector binding with the given identifier already exists in the system.
See the interface AdminOptions.OnConflict for details.
Another option is to ignore a binding connection password decrypt error, when adding a connector binding whose password was encrypted with a different keystore, so that the new password property can be set after the connector binding has been added.
ConnectorBinding representing the current property values and runtime state.
Note that if this is a system with multiple Processes, this method may actually create multiple deployed
Connector Bindings (one for each process). This method will return one of them, arbitrarily.
AdminException - if there's a system error.CoreConfigAdmin.addConnectorBinding(java.lang.String, java.lang.String, java.util.Properties, AdminOptions)
public ConnectorBinding addConnectorBinding(java.lang.String deployName,
char[] xmlFile,
AdminOptions options)
throws AdminException
CoreConfigAdminConnectorBinding into the Configuration.
addConnectorBinding in interface CoreConfigAdmindeployName - is the Connector Binding name that will be added to ConfigurationxmlFile - contents of XML file that will be sent to the server.options - The perferred options when executing this method. There are choices about
what to do when a connector binding with the given identifier already exists in the system.
See the interface AdminOptions.OnConflict for details.
Another option is to ignore a binding connection password decrypt error, when adding a connector binding whose password was encrypted with a different keystore, so that the new password property can be set after the connector binding has been added.
ConnectorBinding representing the current property values and runtime state.
Note that if this is a system with multiple Processes, this method may actually create multiple deployed
Connector Bindings (one for each process). This method will return one of them, arbitrarily.
AdminException - if there's a system error.CoreConfigAdmin.addConnectorBinding(java.lang.String, char[], AdminOptions)
public void deleteConnectorBinding(java.lang.String identifier)
throws AdminException
CoreConfigAdminConnectorBinding from the Configuration
deleteConnectorBinding in interface CoreConfigAdminAdminException - if there's a system error.CoreConfigAdmin.deleteConnectorBinding(java.lang.String)
public VDB addVDB(java.lang.String deployName,
byte[] vdbFile,
AdminOptions options)
throws AdminException
CoreConfigAdminVDB file.
addVDB in interface CoreConfigAdmindeployName - VDB NamevdbFile - byte array of the VDB Archiveoptions - The perferred options when executing this method. There are choices about
what to do when a connector binding with the given identifier already exists in the system.
VDB representing the current property values and runtime state.
AdminException - if there's a system error.CoreConfigAdmin.addVDB(java.lang.String, byte[], AdminOptions)
public void addExtensionModule(java.lang.String type,
java.lang.String sourceName,
byte[] source,
java.lang.String description)
throws AdminException
CoreConfigAdminExtensionModule to the end of the list of modules.
addExtensionModule in interface CoreConfigAdmintype - one of the known types of extension filesourceName - name (e.g. filename) of extension modulesource - actual contents of moduledescription - (optional) description of the extension module - may be null
AdminException - if there's a system error.CoreConfigAdmin.addExtensionModule(java.lang.String, java.lang.String, byte[], java.lang.String)
public void deleteExtensionModule(java.lang.String sourceName)
throws AdminException
CoreConfigAdminExtensionModule from the list of modules.
deleteExtensionModule in interface CoreConfigAdminsourceName - name (e.g. filename) of extension module
AdminException - if there's a system error.CoreConfigAdmin.deleteExtensionModule(java.lang.String)
public void assignBindingToModel(java.lang.String deployedConnectorBindingName,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String modelName)
throws AdminException
CoreConfigAdminConnectorBinding to a VDB's Model
assignBindingToModel in interface CoreConfigAdmindeployedConnectorBindingName - Name of the ConnectorBindingvdbName - Name of the VDBvdbVersion - Version of the VDBmodelName - Name of the Model to map Connector Binding
AdminException - if there's a system error or if there's a user input error.CoreConfigAdmin.assignBindingToModel(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public LogConfiguration getLogConfiguration()
throws AdminException
CoreConfigAdminLogConfiguration
getLogConfiguration in interface CoreConfigAdminAdminException - if there's a system error.CoreConfigAdmin.getLogConfiguration()
public void setLogConfiguration(LogConfiguration config)
throws AdminException
CoreConfigAdminLogConfiguration in the MetaMatrix Server
setLogConfiguration in interface CoreConfigAdminAdminException - if there's a system error.CoreConfigAdmin.setLogConfiguration(com.metamatrix.admin.api.objects.LogConfiguration)
public byte[] exportExtensionModule(java.lang.String sourceName)
throws AdminException
CoreConfigAdminExtensionModule to byte array
exportExtensionModule in interface CoreConfigAdminsourceName - unique identifier for the ExtensionModule.
AdminExceptionCoreConfigAdmin.exportExtensionModule(java.lang.String)
public char[] exportConfiguration()
throws AdminException
CoreConfigAdmin
exportConfiguration in interface CoreConfigAdminAdminException - if there's a system error.CoreConfigAdmin.exportConfiguration()
public char[] exportConnectorBinding(java.lang.String identifier)
throws AdminException
CoreConfigAdminConnectorBinding to character Array in XML format
exportConnectorBinding in interface CoreConfigAdminidentifier - the unique identifier for a ConnectorBinding.
AdminException - if there's a system error.CoreConfigAdmin.exportConnectorBinding(java.lang.String)
public char[] exportConnectorType(java.lang.String identifier)
throws AdminException
CoreConfigAdmin
exportConnectorType in interface CoreConfigAdminidentifier - the unique identifier for for a ConnectorType
AdminException - if there's a system error.CoreConfigAdmin.exportConnectorType(java.lang.String)
public byte[] exportVDB(java.lang.String name,
java.lang.String version)
throws AdminException
CoreConfigAdmin
exportVDB in interface CoreConfigAdminname - identifier of the VDBversion - VDB version
AdminException - if there's a system error.CoreConfigAdmin.exportVDB(java.lang.String, java.lang.String)
public void addConnectorArchive(byte[] contents,
AdminOptions options)
throws AdminException
CoreConfigAdmin
addConnectorArchive in interface CoreConfigAdmincontents - contents of Fileoptions - resolution option in case of conflict in the connector type
AdminException - if there's a system error.CoreConfigAdmin.addConnectorArchive(byte[], com.metamatrix.admin.api.objects.AdminOptions)
public byte[] exportConnectorArchive(java.lang.String identifier)
throws AdminException
CoreConfigAdmin
exportConnectorArchive in interface CoreConfigAdminidentifier - the unique identifier for for a ConnectorType
AdminException - if there's a system error.CoreConfigAdmin.exportConnectorArchive(java.lang.String)
public void addUDF(byte[] modelFileContents,
java.lang.String classpath)
throws AdminException
CoreConfigAdmin
addUDF in interface CoreConfigAdminmodelFileContents - - UDF contentsclasspath - - classpath for the UDF
AdminException
public void deleteUDF()
throws AdminException
CoreConfigAdmin
deleteUDF in interface CoreConfigAdminAdminException
public void extensionModuleModified(java.lang.String name)
throws AdminException
EmbeddedConfigAdmin
extensionModuleModified in interface EmbeddedConfigAdminAdminException
protected AdminException accumulateSystemException(AdminException parent,
java.lang.Exception e)
protected AdminException accumulateProcessingException(AdminException parent,
java.lang.Exception e)
protected java.lang.String prettyPrintBindingNames(java.util.List bindings)
public EmbeddedConnectionFactoryImpl getManager()
protected java.lang.Object convertToAdminObjects(java.lang.Object src)
protected java.lang.Object convertToAdminObjects(java.lang.Object src,
java.lang.Object parent)
public SystemObject getSystem()
protected java.util.Collection convertPropertyDefinitions(ComponentType ctype,
java.util.Properties properties)
ctype - properties -
protected java.util.Collection convertPropertyDefinitions(java.util.Properties properties)
ctype - properties -
protected java.util.Collection getAdminObjects(java.lang.String identifier,
java.lang.String className)
throws AdminException
identifier - className -
AdminException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||