Package org.openbravo.scheduling.quartz
Interface OpenbravoJDBCDelegate
-
- All Known Implementing Classes:
OpenbravoOracleJDBCDelegate
,OpenbravoPostgreJDBCDelegate
public interface OpenbravoJDBCDelegate
Interface for Openbravo quartz JDBCDelegates
-
-
Field Summary
Fields Modifier and Type Field Description static String
COL_SCHEDULER_STATUS
static String
COUNT_STARTED_SCHEDULER_INSTANCES
static String
SCHEDULER_STATUS_STANDBY
static String
SCHEDULER_STATUS_STARTED
static String
UPDATE_SCHEDULER_STATE_EXTENDED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
schedulersStarted(Connection conn)
Gets if scheduler has been started in the clusterint
updateSchedulerStatus(Connection conn, String theInstanceId, long checkInTime, String status)
Updates scheduler status to provided status
-
-
-
Field Detail
-
COL_SCHEDULER_STATUS
static final String COL_SCHEDULER_STATUS
- See Also:
- Constant Field Values
-
SCHEDULER_STATUS_STANDBY
static final String SCHEDULER_STATUS_STANDBY
- See Also:
- Constant Field Values
-
SCHEDULER_STATUS_STARTED
static final String SCHEDULER_STATUS_STARTED
- See Also:
- Constant Field Values
-
UPDATE_SCHEDULER_STATE_EXTENDED
static final String UPDATE_SCHEDULER_STATE_EXTENDED
- See Also:
- Constant Field Values
-
COUNT_STARTED_SCHEDULER_INSTANCES
static final String COUNT_STARTED_SCHEDULER_INSTANCES
- See Also:
- Constant Field Values
-
-
Method Detail
-
updateSchedulerStatus
int updateSchedulerStatus(Connection conn, String theInstanceId, long checkInTime, String status) throws SQLException
Updates scheduler status to provided status- Parameters:
conn
- Connection to DBtheInstanceId
- Instance id of the schedulercheckInTime
- Time stamp when status has been updatedstatus
- Target status- Returns:
- Number of columns updated in DB (more than 0, scheduler status updated)
- Throws:
SQLException
- In case of SQL error
-
schedulersStarted
boolean schedulersStarted(Connection conn) throws SQLException
Gets if scheduler has been started in the cluster- Parameters:
conn
- Connection to DB- Returns:
- true if scheduler has been started, false otherwise
- Throws:
SQLException
- In case of SQL error
-
-