|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@RolesAllowed(value="Admin.SystemAdmin") public interface ConfigurationAdmin
This interface describes the methods to configure Teiid.
Method Summary | |
---|---|
void |
addConnectorArchive(byte[] archiveContents,
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 name,
char[] xmlFile,
AdminOptions options)
Import a ConnectorBinding into the Configuration. |
ConnectorBinding |
addConnectorBinding(java.lang.String name,
java.lang.String connectorTypeIdentifier,
java.util.Properties properties,
AdminOptions options)
Deploy a ConnectorBinding to Configuration |
void |
addConnectorType(java.lang.String name,
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 name,
byte[] vdbFile,
AdminOptions options)
Import a VDB file. |
void |
assignBindingsToModel(java.lang.String[] connectorBindingName,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String modelName)
|
void |
assignBindingToModel(java.lang.String connectorBindingName,
java.lang.String vdbName,
java.lang.String vdbVersion,
java.lang.String modelName)
Assign a ConnectorBinding to a VDB 's Model |
void |
deleteConnectorBinding(java.lang.String connectorBindingIdentifier)
Delete the ConnectorBinding from the Configuration |
void |
deleteConnectorType(java.lang.String name)
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. |
void |
deleteVDB(java.lang.String vdbName,
java.lang.String version)
Delete the VDB with the given name and version |
char[] |
exportConfiguration()
Export Configuration to character Array in XML format |
byte[] |
exportConnectorArchive(java.lang.String connectorTypeIdentifier)
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 connectorBindingIdentifier)
Export a ConnectorBinding to character Array in XML format |
char[] |
exportConnectorType(java.lang.String connectorTypeIdentifier)
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 |
LogConfiguration |
getLogConfiguration()
Get the LogConfiguration |
void |
setConnectorBindingProperty(java.lang.String deployedName,
java.lang.String propertyName,
java.lang.String propertyValue)
Set/update the property for the Connector Binding identified by the given deployed name. |
void |
setLogConfiguration(LogConfiguration config)
Set the LogConfiguration in the MetaMatrix Server |
void |
setLogListener(EmbeddedLogger listener)
Set the log listener to install into MM Query. |
void |
setProcessProperty(java.lang.String processIdentifier,
java.lang.String propertyName,
java.lang.String propertyValue)
Set a process level property. |
Method Detail |
---|
void assignBindingToModel(java.lang.String connectorBindingName, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName) throws AdminException
ConnectorBinding
to a VDB
's Model
connectorBindingName
- 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.void assignBindingsToModel(java.lang.String[] connectorBindingName, java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName) throws AdminException
AdminException
void setConnectorBindingProperty(java.lang.String deployedName, java.lang.String propertyName, java.lang.String propertyValue) throws AdminException
deployedName
- propertyName
- propertyValue
-
AdminException
void addConnectorType(java.lang.String name, char[] cdkFile) throws AdminException
name
- of the Connector Type to addcdkFile
- contents of File from Client
AdminException
- if there's a system error.void addConnectorArchive(byte[] archiveContents, AdminOptions options) throws AdminException
archiveContents
- contents of Fileoptions
- resolution option in case of conflict in the connector type
AdminException
- if there's a system error.void deleteConnectorType(java.lang.String name) throws AdminException
name
- String name of the Connector Type to delete
AdminException
- if there's a system error.ConnectorBinding addConnectorBinding(java.lang.String name, java.lang.String connectorTypeIdentifier, java.util.Properties properties, AdminOptions options) throws AdminException
ConnectorBinding
to Configuration
name
- is the Connector Binding name that will be added to ConfigurationconnectorTypeIdentifier
- 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.ConnectorBinding addConnectorBinding(java.lang.String name, char[] xmlFile, AdminOptions options) throws AdminException
ConnectorBinding
into the Configuration.
name
- 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.void deleteConnectorBinding(java.lang.String connectorBindingIdentifier) throws AdminException
ConnectorBinding
from the Configuration
connectorBindingIdentifier
-
AdminException
- if there's a system error.VDB addVDB(java.lang.String name, byte[] vdbFile, AdminOptions options) throws AdminException
VDB
file.
name
- 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.void deleteVDB(java.lang.String vdbName, java.lang.String version) throws AdminException
vdbName
- version
-
AdminException
@RolesAllowed(value="Admin.ReadOnlyAdmin") LogConfiguration getLogConfiguration() throws AdminException
LogConfiguration
AdminException
- if there's a system error.void setLogConfiguration(LogConfiguration config) throws AdminException
LogConfiguration
in the MetaMatrix Server
config
-
AdminException
- if there's a system error.void setLogListener(EmbeddedLogger listener) throws AdminException
listener
- The listener component
AdminException
- if there's a system error.void addExtensionModule(java.lang.String type, java.lang.String sourceName, byte[] source, java.lang.String description) throws AdminException
ExtensionModule
to the end of the list of modules.
type
- 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.void deleteExtensionModule(java.lang.String sourceName) throws AdminException
ExtensionModule
from the list of modules.
sourceName
- name (e.g. filename) of extension module
AdminException
- if there's a system error.byte[] exportExtensionModule(java.lang.String sourceName) throws AdminException
ExtensionModule
to byte array
sourceName
- unique identifier for the ExtensionModule
.
AdminException
char[] exportConfiguration() throws AdminException
AdminException
- if there's a system error.char[] exportConnectorBinding(java.lang.String connectorBindingIdentifier) throws AdminException
ConnectorBinding
to character Array in XML format
connectorBindingIdentifier
- the unique identifier for a ConnectorBinding
.
AdminException
- if there's a system error.char[] exportConnectorType(java.lang.String connectorTypeIdentifier) throws AdminException
connectorTypeIdentifier
- the unique identifier for for a ConnectorType
AdminException
- if there's a system error.byte[] exportConnectorArchive(java.lang.String connectorTypeIdentifier) throws AdminException
connectorTypeIdentifier
- the unique identifier for for a ConnectorType
AdminException
- if there's a system error.byte[] exportVDB(java.lang.String name, java.lang.String version) throws AdminException
name
- identifier of the VDB
version
- VDB
version
AdminException
- if there's a system error.void addUDF(byte[] modelFileContents, java.lang.String classpath) throws AdminException
modelFileContents
- - UDF contentsclasspath
- - classpath for the UDF
AdminException
void deleteUDF() throws AdminException
AdminException
void extensionModuleModified(java.lang.String name) throws AdminException
AdminException
void setProcessProperty(java.lang.String processIdentifier, java.lang.String propertyName, java.lang.String propertyValue) throws AdminException
processIdentifier
- - identifier for the process where the property needs to be setpropertyName
- - name of the propertypropertyValue
- - value of the property
AdminException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |