public class SyncCustomersTask extends DBUTask
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncCustomersTask.SyncLogWriter
An inner class for persisting events to a log file and for sending alert
email messages when a configured severity level occurs.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Thread |
cvThread
The thread running the customer synchronization task.
|
private ICustomerMaintenance |
ivCustomerMaint
A reference to the Customer Maintenance Interface object.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
SyncCustomersTask()
Constructs a new instance of the customer synchronization task with a
null servlet or thread context. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRunning()
Answers if the task is currently running.
|
void |
miniSync(Customer flashCust)
Performs mini-sync for the given Flash customer if mini-sync is configured
and customer has not already been mini-synced.
|
void |
run()
Runs the customer synchronization task.
|
protected int[] |
synchronize(Customer flashCust,
boolean miniSync)
Updates the given Flash customer with information from the backend ERP
system.
|
getContext, setContextprivate static final long serialVersionUID
private static java.lang.Thread cvThread
private ICustomerMaintenance ivCustomerMaint
public SyncCustomersTask()
null servlet or thread context.
A CONTEXT MUST BE SET BEFORE INVOKING ANY OTHER METHODS.
.public void run()
Runnable
interface.public static boolean isRunning()
true if the task is currently running,
otherwise false.public void miniSync(Customer flashCust)
flashCust - (Customer) The Flash customer to process.protected int[] synchronize(Customer flashCust, boolean miniSync)
flashCust - (Customer) The Flash customer to update.miniSync - (boolean) true if invoking in mini-sync mode,
otherwise false.