public class GpdbService extends Object
Examples of export withExportConfigurationand import withImportConfiguration:// Case 1: Operation without Event Listener. ExportConfiguration exportConfiguration = ExportConfiguration.builder(region).build(); GpdbService.exportRegion(exportConfiguration); ImportConfiguration importConfiguration = ImportConfiguration.builder(region).build(); GpdbService.importRegion(importConfiguration); // Case 2: Operation with Event Listener. ExportConfiguration exportConfiguration = ExportConfiguration.builder(region) .addOperationEventListener(listener) .build(); GpdbService.exportRegion(exportConfiguration); ImportConfiguration importConfiguration = ImportConfiguration.builder(region) .addOperationEventListener(listener) .build(); GpdbService.importRegion(importConfiguration);
| Modifier and Type | Method and Description |
|---|---|
static boolean |
cancelOperation(String operationId)
Terminate an operation that is in progress.
|
static ExportResult |
exportRegion(ExportConfiguration exportConfiguration)
Exports all entries from GemFire, breaking those entries up into the columns of specified Greenplum table.
|
static ImportResult |
importRegion(ImportConfiguration importConfiguration)
Import all rows from a Greenplum table, doing an upsert operation on the associated GemFire entries.
|
public static boolean cancelOperation(String operationId) throws io.pivotal.gemfire.gpdb.operations.OperationException
operationId - the operation identifier from the GGCMonitortrue if the operation is successfully cancelled, false otherwiseio.pivotal.gemfire.gpdb.operations.OperationException - if the cancel operation failedpublic static ExportResult exportRegion(ExportConfiguration exportConfiguration) throws io.pivotal.gemfire.gpdb.operations.OperationException
exportConfiguration.exportConfiguration - the object that details aspects of the configuration. See ExportConfigurationExportResult details of the export operation resultio.pivotal.gemfire.gpdb.operations.OperationException - if operation failedpublic static ImportResult importRegion(ImportConfiguration importConfiguration) throws io.pivotal.gemfire.gpdb.operations.OperationException
importConfiguration.
WARNING: No GemFire transactions are currently used, so this method can leave the
region in an inconsistent state if the import fails.
importConfiguration - the object that details aspects of the configurationImportResult details of the import operation resultio.pivotal.gemfire.gpdb.operations.OperationException - if operation failedCopyright © 2014–2023 Pivotal Software, Inc.. All rights reserved.