public class BTsHandler
extends java.lang.Object
Constructor and Description |
---|
BTsHandler(DBManLocalI _dbm,
java.lang.String _statusKey,
BTHandlerI _task,
java.lang.String _logPrefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getBOTsOfInterest() |
java.lang.Long |
getLastHandledBTId()
BE AWARE THAT THE VALUE RETURNED HERE IS ONLY FOR THE NODE WHERE THIS METHOD IS CALLED!
|
static java.lang.String |
getUnhandledBTsQuery(java.lang.Long lhbId,
java.util.Date dateFrom,
java.lang.Long[] botIds) |
static java.lang.String |
getUnhandledBTsQuery(java.lang.Long lhbId,
java.util.Date dateFrom,
java.lang.Long[] botIds,
boolean countOnly) |
void |
handleUnhandledBTs()
Handle all BTs that for some reason were not already handled.
|
void |
markBTAsHandled(java.lang.Long idBT)
Stores the idBT in the DB to memorize which BTs have already been handled
(storing the last ID is enough as IDs are always ascending).
|
void |
stop() |
public BTsHandler(DBManLocalI _dbm, java.lang.String _statusKey, BTHandlerI _task, java.lang.String _logPrefix)
public void stop()
public void handleUnhandledBTs() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Long getLastHandledBTId() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.lang.Long[] getBOTsOfInterest()
public static java.lang.String getUnhandledBTsQuery(java.lang.Long lhbId, java.util.Date dateFrom, java.lang.Long[] botIds)
public static java.lang.String getUnhandledBTsQuery(java.lang.Long lhbId, java.util.Date dateFrom, java.lang.Long[] botIds, boolean countOnly)
public void markBTAsHandled(java.lang.Long idBT)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.