@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class StreamProxyValuesBackendSet extends java.lang.Object implements java.io.Serializable
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
StreamProxyValuesBackendSet(ASN1OctetString backendSetID,
java.lang.String[] hosts,
int[] ports)
Creates a new backend set with the provided information.
|
Modifier and Type | Method and Description |
---|---|
static StreamProxyValuesBackendSet |
decode(ASN1Element element)
Decodes the provided ASN.1 element as a backend set.
|
ASN1Element |
encode()
Encodes this backend set object in a form suitable for inclusion in the
value of the stream proxy values extended request.
|
ASN1OctetString |
getBackendSetID()
Retrieves the backend set ID for this backend set.
|
java.lang.String[] |
getHosts()
Retrieves the addresses of the servers for this backend set.
|
int[] |
getPorts()
Retrieves the ports of the servers for this backend set.
|
java.lang.String |
toString()
Retrieves a string representation of this stream proxy values backend set.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this stream proxy values backend set to
the provided buffer.
|
public StreamProxyValuesBackendSet(@NotNull ASN1OctetString backendSetID, @NotNull java.lang.String[] hosts, @NotNull int[] ports)
backendSetID
- The backend set ID for this backend set. It must not
be null
.hosts
- The addresses of the servers for this backend set.
It must not be null
or empty, and it must
have the same number of elements as the ports
array.ports
- The ports of the servers for this backend set. It
must not be null
or empty, and it must have
the same number of elements as the hosts
array.@NotNull public ASN1OctetString getBackendSetID()
@NotNull public java.lang.String[] getHosts()
@NotNull public int[] getPorts()
@NotNull public ASN1Element encode()
@NotNull public static StreamProxyValuesBackendSet decode(@NotNull ASN1Element element) throws LDAPException
element
- The element to be decoded as a backend set.LDAPException
- If the provided ASN.1 element cannot be decoded as
a backend set.@NotNull public java.lang.String toString()
toString
in class java.lang.Object