|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.failover.FailoverClient
public class FailoverClient
logic for hitting multiple resources checking for errors and timeouts for always availability.
Method Summary | ||
---|---|---|
static
|
failoverLogic(String connectionType,
boolean useThreads,
FailoverLogic<T> failoverLogic)
run failover logic, return the result from the logic |
|
static
|
failoverLogic(String connectionType,
FailoverLogic<T> failoverLogic)
run failover logic, return the result from the logic |
|
FailoverConfig |
getFailoverConfig()
cache the config as a field |
|
static void |
initFailoverClient(FailoverConfig failoverConfig)
get a failover client from memory or disk or make a new one |
|
static void |
main(String[] args)
test serialize and unserialize |
|
void |
setFailoverConfig(FailoverConfig failoverConfig1)
cache the config as a field |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public FailoverConfig getFailoverConfig()
public void setFailoverConfig(FailoverConfig failoverConfig1)
failoverConfig1
- public static void main(String[] args)
args
- public static void initFailoverClient(FailoverConfig failoverConfig)
failoverConfig
- config with the type we are talking aboutpublic static <T> T failoverLogic(String connectionType, FailoverLogic<T> failoverLogic)
T
- connectionType
- is the type of connectionfailoverLogic
-
public static <T> T failoverLogic(String connectionType, boolean useThreads, FailoverLogic<T> failoverLogic)
T
- connectionType
- is the type of connectionuseThreads
- is true if we should use threads, maybe pass false e.g.
if the system is not initted and it relies on something to get configuration.
generally true thoughfailoverLogic
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |