AtgCatalogUpdater
The product catalog data updater
- Overview
- Design
- Constraints
- Attributes
-
Commands
- promptBuildstamp
- autoChangeDependencies
- Prepare-Data
- Update
- atgServersSwitchDataStores
- promptDatabase
- rdbsSwitchSchemaBinding
- promptTargetSchema
- promptSwitchingDatastore
- rdbsSchemasExportDmp
- rdbsSchemasImportDmp
- atgUpdateDatastoreModelObject
- autoUpdate
- UpdateNoDatasourceSwitch
- atgServersInvalidateCache
Overview
Design
- Super Type
- AtgDataUpdater
| Role | Concrete. (Objects can be created.) |
| Instance Names | Unique |
| Notification | true |
| Template Directory | |
| Data View | Children, proximity: 1 |
| Logger Name | AtgCatalogUpdater |
Constraints
Allowed Child Dependencies
- AtgDataBuilder 1
- AtgSite 1
- DefaultDeploymenttype1
- DefaultPackagename1
- DefaultPackagetype1
1: These types have a Singleton constraint. Only one instance may be added as a resource.
Allowed Parent Dependencies
- Node
Attributes
Defaults for Imported Attributes
| Name | Default |
|---|---|
| defaultdeploymenttype | AtgCatalogSchema |
| defaultpackagetype | AtgRdbCatalogData |
Commands
Note
Commandline options displayed in square brackets "[]" are optional. If an option expects arguments, then angle brackets are shown after the option "<>". Any default value is shown within the brackets.
promptBuildstamp
what buildstamp to use
- Usage
- promptBuildstamp [-session <update.session>]
Options
| Option | Description |
|---|---|
| session | session name |
autoChangeDependencies
automatically changes dependencies
- Usage
- autoChangeDependencies -buildstamp <> [-defaultpackagename <>] [-deploymenttype <AtgCatalogSchema>] [-failIfNotReplaced <true>] [-packagetype <AtgRdbCatalogData>] [-session <BuildAndUpdate.session>] [-version <>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| defaultpackagename | default package name if multiple versions exist |
| deploymenttype | type name |
| failIfNotReplaced | fails if no dependency change occurs |
| packagetype | type name |
| session | session id |
| version | package version |
Prepare-Data
exports schemas
- Usage
- Prepare-Data [-buildstamp <>] [-session <update.session>]
Workflow
Options
| Option | Description |
|---|---|
| buildstamp | buildstamp |
| session |
Update
runs the merchange data update process
- Usage
- Update -buildstamp <>
Workflow
- promptSwitchingDatastore
- rdbsSwitchSchemaBinding
- rdbsSchemasImportDmp
- atgServersSwitchDataStores
- atgServersInvalidateCache
- atgUpdateDatastoreModelObject
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
atgServersSwitchDataStores
calls atgs to switch their datastore
- Usage
- atgServersSwitchDataStores [-buildstamp <>] [-datastore <>] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| datastore | datasource to change to |
| session | session data |
promptDatabase
Prompts which database to use
- Usage
- promptDatabase [-session <update.session>]
Options
| Option | Description |
|---|---|
| session | session data |
rdbsSwitchSchemaBinding
calls rdb to swich their schema binding according to datasource
- Usage
- rdbsSwitchSchemaBinding [-buildstamp <>] [-fromschema <>] [-packagetype <>] [-schematype <AtgCatalogSchema>] [-session <update.session>] [-toschema <>] [-version <>]
Options
| Option | Description |
|---|---|
| buildstamp | buildstamp |
| fromschema | schema to switch from |
| packagetype | ignored |
| schematype | schema type |
| session | workflow session data |
| toschema | schema to switch to |
| version | ignored |
promptTargetSchema
prompts which schema to update
- Usage
- promptTargetSchema [-packagetype <>] [-session <update.session>] [-version <>]
Options
| Option | Description |
|---|---|
| packagetype | ignored |
| session | session file |
| version | ignored |
promptSwitchingDatastore
prompts which catalog datastore to use
- Usage
- promptSwitchingDatastore [-buildstamp <>] [-nolookup] [-prompt] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| nolookup | do not use the model to lookup the datastore info |
| prompt | interactively confirm toschema |
| session | session data |
rdbsSchemasExportDmp
export the catalog data from the authorative db
- Usage
- rdbsSchemasExportDmp [-buildstamp <>] [-rdbobject <dacc>] [-rdbtype <AtgOracleRdb>] [-schematype <AtgCatalogSchema>] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | buildstamp |
| rdbobject | object name |
| rdbtype | rdb type name |
| schematype | schema type |
| session | stored session data |
rdbsSchemasImportDmp
import the catalog data into the Site AtgOracleRdb
- Usage
- rdbsSchemasImportDmp -buildstamp <> [-schematype <AtgCatalogSchema>] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | buildstamp |
| schematype | schema type |
| session | workflow session data |
atgUpdateDatastoreModelObject
calls atgs to record their datastore
- Usage
- atgUpdateDatastoreModelObject [-buildstamp <>] [-datastore <>] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| datastore | datasource to change to |
| session | session data |
autoUpdate
runs the Update command
- Usage
- autoUpdate [-buildstamp <>] [-command <UpdateNoDatasourceSwitch>] [-session <BuildAndUpdate.session>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| command | command to run |
| session | session identifier |
UpdateNoDatasourceSwitch
runs the update process but does not switch data sources
- Usage
- UpdateNoDatasourceSwitch
Workflow
Success Handler
| build_rhweb@restorationhardware.com | |
| Subject | [${context.type}:${context.name} @ ${framework.node}] ${command.name} - SUCCESS |
| File | ${modules.dir}/Deployment/templates/notice.html |
atgServersInvalidateCache
requests ATG Servers to invalidate their cache
- Usage
- atgServersInvalidateCache [-buildstamp <>] [-session <update.session>]
Options
| Option | Description |
|---|---|
| buildstamp | build identifier |
| session | session data |


