public class ServerLoader extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ServerLoader(Map<ADSContext.ServerProperty,Object> serverProperties,
String dn,
String pwd,
ApplicationTrustManager trustManager,
int timeout,
Set<PreferredConnection> preferredLDAPURLs,
TopologyCacheFilter filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
InitialLdapContext |
createContext()
Create an InitialLdapContext based in the provide server properties and
authentication data provided in the constructor.
|
TopologyCacheException |
getLastException()
Returns the last exception that occurred while trying to generate
the ServerDescriptor object.
|
ServerDescriptor |
getServerDescriptor()
Returns the ServerDescriptor that could be retrieved.
|
void |
interrupt() |
void |
run()
The method where we try to generate the ServerDescriptor object.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ServerLoader(Map<ADSContext.ServerProperty,Object> serverProperties, String dn, String pwd, ApplicationTrustManager trustManager, int timeout, Set<PreferredConnection> preferredLDAPURLs, TopologyCacheFilter filter)
serverProperties
- the server properties of the server we want to
load.dn
- the DN that we must use to bind to the server.pwd
- the password that we must use to bind to the server.trustManager
- the ApplicationTrustManager to be used when we try
to connect to the server.timeout
- the timeout to establish the connection in milliseconds.
Use 0
to express no timeout.preferredLDAPURLs
- the list of preferred LDAP URLs that we want
to use to connect to the server. They will be used only if they correspond
to the URLs that we found in the the server properties.filter
- the topology cache filter to be used. This can be used not
to retrieve all the information.public ServerDescriptor getServerDescriptor()
public TopologyCacheException getLastException()
public void run()
public InitialLdapContext createContext() throws NamingException
NamingException
- if an error occurred while creating the
InitialLdapContext.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.