|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@RolesAllowed(value="Admin.SystemAdmin") public interface CoreConfigAdmin
This interface describes the methods to configure MetaMatrix.
As a core interface, this administration is common to both the MetaMatrix server and MM Query.
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 |
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. |
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 |
LogConfiguration |
getLogConfiguration()
Get the LogConfiguration |
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. |
Method Detail |
---|
void setSystemProperty(java.lang.String propertyName, java.lang.String propertyValue) throws AdminException
propertyName
- 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.void updateSystemProperties(java.util.Properties properties) throws AdminException
properties
- Properties to set.
AdminException
- if there's a system error or if there's a user input error.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 setProperty(java.lang.String identifier, java.lang.String className, java.lang.String propertyName, java.lang.String propertyValue) throws AdminException
identifier
- 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.void updateProperties(java.lang.String identifier, java.lang.String className, java.util.Properties properties) throws AdminException
identifier
- 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.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.@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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |