public final class ControlPanelInfo extends Object
Modifier and Type | Method and Description |
---|---|
HostPort |
getAdminConnectorHostPort()
Gets the Administration Connector HostPort based in what is read in the configuration.
|
int |
getConnectTimeout()
Returns the timeout to establish the connection in milliseconds.
|
static ControlPanelInfo |
getInstance()
Returns a singleton for this instance.
|
ServerDescriptor |
getServerDescriptor()
Returns the last ServerDescriptor that has been retrieved.
|
ApplicationTrustManager |
getTrustManager()
Returns the trust manager to be used by this ControlPanelInfo (and in general by the control panel).
|
void |
regenerateDescriptor()
Regenerates the last found ServerDescriptor object.
|
void |
setConnection(ConnectionWrapper connWrapper)
Sets the dir context to be used by the ControlPanelInfo to retrieve monitoring and configuration information.
|
void |
setConnectTimeout(int connectTimeout)
Sets the timeout to establish the connection in milliseconds.
|
void |
setTrustManager(ApplicationTrustManager trustManager)
Sets the trust manager to be used by this ControlPanelInfo (and in general by the control panel).
|
public static ControlPanelInfo getInstance()
public ServerDescriptor getServerDescriptor()
public void setConnection(ConnectionWrapper connWrapper)
connWrapper
- the connection.public void regenerateDescriptor()
public ApplicationTrustManager getTrustManager()
public void setTrustManager(ApplicationTrustManager trustManager)
trustManager
- the trust manager to be used by this ControlPanelInfo.public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
0
to express no timeout.connectTimeout
- the timeout to establish the connection in milliseconds. Use 0
to express no timeout.public HostPort getAdminConnectorHostPort()
null
if
no Administration Connector HostPort was found.Copyright 2010-2018 ForgeRock AS.