DLC Operations

An Operation implements the IDlcOperation interface and is a Spring Bean.

IDlcOperation

  • process(DlcRequest request) - processes the incoming DLC Request.
  • getName() - returns the key for the operation, referenced by the operation parameter in the DLC Request.

Operations

The DLC comes with four operations, that can be triggered by submitting a request to the DataLoadControllerService.

  • LOAD - Loads data into the datastore.
  • UNLOAD - Unloads data from the datastore.
  • START_LISTEN - Starts listening for files, triggering a load operation when a file is detected.
  • LISTEN_STATUS - Gets the status of a listener.
  • STOP_LISTEN - Stops listening for files.

Custom Operations

The default DLC operations can be found in DefaultDlcOperationsConfig class. For information on how to customize the default operations and add new ones can be found in Custom Operations.

Garbage Collection

info

Performing Garbage Collections in the JVM is not guaranteed. It is up to the JVM to determine if it will perform a GC on our request or not.

It may be required to perform a Garbage Collection before or after executing a DLC operation. This can be done by adding one of the following key-value entries into your dlc request scope:

{
  "scope": {
    "performGcOnStart": true,
    "performGcOnCompletion": true
  }
}

These properties will:

  • "performGcOnStart": Runs a GC request before the Operation is executed.
  • "performGcOnCompletion": Runs a GC request after the Operation is completed