Managing Discovery Library Adapter states

You can use the methods described in this section to start, pause, resume, and shutdown a long-running DLA. Using these parameters is optional for the creation of a DLA.

Table 1 describes the methods for managing the state of DLAs.

Table 1. State methods
Method Description
pause()

Pause a long-running DLA. The return value is the state of the DLA after executing the call, either 3 (Pausing) or 4 (Paused) depending on whether the DLA is capable of immediately pausing.

By default, this method returns the current value of the state attribute.

resume()

Resume a long-running DLA. The return value is the state of the DLA after executing the call, either 5 (Resuming) or 2 (Running) depending on whether the DLA is capable of immediately resuming from a paused state.

By default, this method returns the current value of the state attribute.

shutdown()

Shut down a long-running DLA. The return value is the state of the DLA after executing the call, either 6 (Stopping) or 0 (Stopped) depending on whether the DLA is capable of immediately stopping from its current state.

By default, this method returns the current value of the state attribute.

start()

Start a DLA that has already been Initialized The return value is the state of the DLA after executing call, either 1 (Starting) or 2 (Running) depending on whether the DLA is capable of immediately entering a running state from a stopped state.

By default, this method returns the current value of the state attribute.