|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.cluster.singleton.QueryHelper
weblogic.cluster.singleton.QueryHelperImpl
public class QueryHelperImpl
Helper class for ClusterMaster to determine servers that are unresponsive and to find lease owners. Queries for lease management. Each lease has an associated timeout which is calculated as (SYSDATE - TIMEOUT). TIMEOUT is initially caclulated as an absolute time in the future (ie. SYSDATE + interval), without renewal TIMEOUT will eventually be in the past and SYSDATE - TIMEOUT will become positive.
Field Summary |
---|
Fields inherited from class weblogic.cluster.singleton.QueryHelper |
---|
TIME_AS_FRACTION_OF_DAY |
Constructor Summary | |
---|---|
QueryHelperImpl(String tableName,
String domainName,
String clusterName,
int dbtype)
|
Method Summary | |
---|---|
protected String |
addToDate(String column,
int seconds)
Returns an sql snippet that adds the specifed number of seconds to the date value. |
protected String |
compareDates(String date1,
String date2)
Returns an sql snippet that compares the two specified dates. |
protected String |
getTimeFunction()
Returns a query that returns the current time & date, down to at least seconds precision. |
Methods inherited from class weblogic.cluster.singleton.QueryHelper |
---|
getAbdicateLeaseQuery, getAcquireLeaseQuery, getAssumeLeaseQuery, getDBType, getDeleteMachineQuery, getInsertMachineQuery, getLeaseOwnerQuery, getPreviousLeaseOwnerQuery, getRenewAllLeasesQuery, getRenewLeaseQuery, getRenewLeasesQuery, getRetrieveMachineQuery, getUnresponsiveMigratableServersQuery, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryHelperImpl(String tableName, String domainName, String clusterName, int dbtype)
Method Detail |
---|
protected String addToDate(String column, int seconds)
QueryHelper
addToDate
in class QueryHelper
column
- date variable to add toseconds
- number of seconds to add to column
protected String compareDates(String date1, String date2)
QueryHelper
compareDates
in class QueryHelper
protected String getTimeFunction()
QueryHelper
getTimeFunction
in class QueryHelper
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |