|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.safehaus.triplesec.guardian.ApplicationPolicyFactory
public abstract class ApplicationPolicyFactory
Connects to ApplicationPolicy and manages
ConnectionDrivers.
| Field Summary | |
|---|---|
static java.lang.String |
RETRY_COUNT
A property key that specifies the maxinum number of retries in case of connection failure in newInstance(String, Properties). |
static java.lang.String |
RETRY_DELAY
A property key that specified the delay in seconds between connection retries in newInstance(String, Properties). |
| Constructor Summary | |
|---|---|
ApplicationPolicyFactory()
|
|
| Method Summary | |
|---|---|
static boolean |
deregisterDriver(java.lang.Class driverClass)
Deregisters all ConnectionDrivers of the specified
driverClass type. |
static ApplicationPolicy |
newInstance(java.lang.String urls,
java.util.Properties info)
Connects to the ApplicationPolicy with the specified urls
and extra connection info using an appropriate ConnectionDriver. |
static boolean |
registerDriver(ConnectionDriver driver)
Registers a ConnectionDriver with this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RETRY_COUNT
newInstance(String, Properties).
public static final java.lang.String RETRY_DELAY
newInstance(String, Properties).
| Constructor Detail |
|---|
public ApplicationPolicyFactory()
| Method Detail |
|---|
public static boolean registerDriver(ConnectionDriver driver)
ConnectionDriver with this factory.
driver - the ConnectionDriver being registered
public static boolean deregisterDriver(java.lang.Class driverClass)
ConnectionDrivers of the specified
driverClass type.
driverClass - the type of ConnectionDrivers to deregister
public static ApplicationPolicy newInstance(java.lang.String urls,
java.util.Properties info)
throws GuardianException
ApplicationPolicy with the specified urls
and extra connection info using an appropriate ConnectionDriver.
URLs are separated by whitespace characters. This operation tries the specified URLs in random order to distribute server-side load.
urls - the whitespace-separated URLs of the ApplicationPolicyinfo - the extra information to pass to ConnectionDriver
GuardianException - if failed to connect to the store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||