Class StreamProxyValuesBackendSet
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.extensions.StreamProxyValuesBackendSet
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class StreamProxyValuesBackendSet
extends Object
implements Serializable
This class provides a data structure for holding information about the
configuration of backend sets as used by the stream proxy values extended
request.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamProxyValuesBackendSet(ASN1OctetString backendSetID, String[] hosts, int[] ports) Creates a new backend set with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamProxyValuesBackendSetdecode(ASN1Element element) Decodes the provided ASN.1 element as a backend set.encode()Encodes this backend set object in a form suitable for inclusion in the value of the stream proxy values extended request.Retrieves the backend set ID for this backend set.String[]getHosts()Retrieves the addresses of the servers for this backend set.int[]getPorts()Retrieves the ports of the servers for this backend set.toString()Retrieves a string representation of this stream proxy values backend set.voidtoString(StringBuilder buffer) Appends a string representation of this stream proxy values backend set to the provided buffer.
-
Constructor Details
-
StreamProxyValuesBackendSet
public StreamProxyValuesBackendSet(@NotNull ASN1OctetString backendSetID, @NotNull String[] hosts, @NotNull int[] ports) Creates a new backend set with the provided information.- Parameters:
backendSetID- The backend set ID for this backend set. It must not benull.hosts- The addresses of the servers for this backend set. It must not benullor empty, and it must have the same number of elements as theportsarray.ports- The ports of the servers for this backend set. It must not benullor empty, and it must have the same number of elements as thehostsarray.
-
-
Method Details
-
getBackendSetID
Retrieves the backend set ID for this backend set.- Returns:
- The backend set ID for this backend set.
-
getHosts
Retrieves the addresses of the servers for this backend set.- Returns:
- The addresses of the servers for this backend set.
-
getPorts
Retrieves the ports of the servers for this backend set.- Returns:
- The ports of the servers for this backend set.
-
encode
Encodes this backend set object in a form suitable for inclusion in the value of the stream proxy values extended request.- Returns:
- The encoded representation of this backend set.
-
decode
@NotNull public static StreamProxyValuesBackendSet decode(@NotNull ASN1Element element) throws LDAPException Decodes the provided ASN.1 element as a backend set.- Parameters:
element- The element to be decoded as a backend set.- Returns:
- The decoded backend set.
- Throws:
LDAPException- If the provided ASN.1 element cannot be decoded as a backend set.
-
toString
Retrieves a string representation of this stream proxy values backend set. -
toString
Appends a string representation of this stream proxy values backend set to the provided buffer.- Parameters:
buffer- The buffer to which the stream representation should be appended.
-