System API

The DE Apex API includes methods to check the status of the DE job and to run the health checker programmatically.

Has Scheduler Failed

global static boolean hasSchedulerFailed()

Returns true if the most recent scheduler job has failed.  If the scheduler has failed, then Distribution Engine has stopped distributing until a restart is done manually or via the health checker.

Example

n2de.DistributionEngineGlobal.hasSchedulerFailed(); //true if scheduler has failed.

Run Health Checker

global static void runHealthChecker()

Runs the health checker to check and auto-restart DE in the event of any issues. 

Example

n2de.DistributionEngineGlobal.runHealthChecker(); //Run the health checker

How did we do?

Rejection API

Contact