|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouperClient.failover.FailoverConfig
public class FailoverConfig
configuration of a failover connection type
Nested Class Summary | |
---|---|
static class |
FailoverConfig.FailoverStrategy
failover strategy to employ with each pool type |
Constructor Summary | |
---|---|
FailoverConfig()
|
Method Summary | |
---|---|
void |
copyFromArgument(FailoverConfig failoverConfig)
copy a failover client from another |
int |
getAffinitySeconds()
if we are active/active, then the same connection will be used for a certain number of seconds. |
List<String> |
getConnectionNames()
names of the connections in the pool, if it is active/standby, then these are ordered from more important to less important |
List<String> |
getConnectionNamesSecondTier()
names of the connections in the pool, note that the "connectionNames" list will be tried first if same number of errors recently |
String |
getConnectionType()
string that identifies this failover config from other failover config, e.g. |
int |
getExtraTimeoutSeconds()
after all connections have been attempted, it will wait for this long to see if any finish |
FailoverConfig.FailoverStrategy |
getFailoverStrategy()
actice/active or active/standby |
int |
getMinutesToKeepErrors()
minutes to remember that there was an error for a connection name of a connection type |
int |
getSecondsForClassesToLoad()
if your app has a slow startup time, and the initial connections are timing out esp if you arent just using the command line client (e.g. |
int |
getTimeoutSeconds()
when a connection is attempted, this is the timeout that it will use before trying another connection |
void |
setAffinitySeconds(int affinitySeconds1)
if we are active/active, then the same connection will be used for a certain number of seconds. |
void |
setConnectionNames(List<String> connectionNames1)
names of the connections in the pool, if it is active/standby, then these are ordered from more important to less important |
void |
setConnectionNamesSecondTier(List<String> connectionNamesSecondTier1)
names of the connections in the pool, note that the "connectionNames" list will be tried first if same number of errors recently |
void |
setConnectionType(String connectionType1)
string that identifies this failover config from other failover config, e.g. |
void |
setExtraTimeoutSeconds(int extraTimeoutSeconds1)
after all connections have been attempted, it will wait for this long to see if any finish |
void |
setFailoverStrategy(FailoverConfig.FailoverStrategy failoverStrategy1)
actice/active or active/standby |
void |
setMinutesToKeepErrors(int minutesToKeepErrors1)
minutes to remember that there was an error for a connection name of a connection type |
void |
setSecondsForClassesToLoad(int secondsForClassesToLoad1)
if your app has a slow startup time, and the initial connections are timing out esp if you arent just using the command line client (e.g. |
void |
setTimeoutSeconds(int timeoutSeconds1)
when a connection is attempted, this is the timeout that it will use before trying another connection |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailoverConfig()
Method Detail |
---|
public void copyFromArgument(FailoverConfig failoverConfig)
failoverConfig
- public int getSecondsForClassesToLoad()
public void setSecondsForClassesToLoad(int secondsForClassesToLoad1)
secondsForClassesToLoad1
- public String getConnectionType()
public void setConnectionType(String connectionType1)
connectionType1
- public List<String> getConnectionNamesSecondTier()
public void setConnectionNamesSecondTier(List<String> connectionNamesSecondTier1)
connectionNamesSecondTier1
- public List<String> getConnectionNames()
public void setConnectionNames(List<String> connectionNames1)
connectionNames1
- public int getMinutesToKeepErrors()
public void setMinutesToKeepErrors(int minutesToKeepErrors1)
minutesToKeepErrors1
- public FailoverConfig.FailoverStrategy getFailoverStrategy()
public void setFailoverStrategy(FailoverConfig.FailoverStrategy failoverStrategy1)
failoverStrategy1
- public int getAffinitySeconds()
public void setAffinitySeconds(int affinitySeconds1)
affinitySeconds1
- public int getTimeoutSeconds()
public void setTimeoutSeconds(int timeoutSeconds1)
timeoutSeconds1
- public int getExtraTimeoutSeconds()
public void setExtraTimeoutSeconds(int extraTimeoutSeconds1)
extraTimeoutSeconds1
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |