Class ConnectClientRequest
java.lang.Object
org.opendaylight.controller.cluster.access.concepts.Message<T,C>
org.opendaylight.controller.cluster.access.concepts.Request<ClientIdentifier,ConnectClientRequest>
org.opendaylight.controller.cluster.access.commands.ConnectClientRequest
- All Implemented Interfaces:
Serializable,Immutable
@Beta
public final class ConnectClientRequest
extends Request<ClientIdentifier,ConnectClientRequest>
Request to connect a frontend instance to the backend. It carries basic information about the frontend:
- its coordinates in
Request.getReplyTo().
- its minimum supported ABI version
- its maximum supported ABI version
It also includes request stream sequencing information.
- Author:
- Robert Varga
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectClientRequest(ClientIdentifier identifier, ActorRef replyTo, ABIVersion minVersion, ABIVersion maxVersion) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoreObjects.ToStringHelperaddToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Add attributes to the output ofMessage.toString().protected ConnectClientRequestcloneAsVersion(ABIVersion version) Create a copy of this message which will serialize to a stream corresponding to the specified method.externalizableProxy(ABIVersion version) toRequestFailure(RequestException cause) Return aRequestFailurefor this request, caused by aRequestException.Methods inherited from class org.opendaylight.controller.cluster.access.concepts.Request
getReplyToMethods inherited from class org.opendaylight.controller.cluster.access.concepts.Message
getSequence, getTarget, getVersion, toString, toVersion, writeReplace
-
Constructor Details
-
ConnectClientRequest
public ConnectClientRequest(ClientIdentifier identifier, ActorRef replyTo, ABIVersion minVersion, ABIVersion maxVersion)
-
-
Method Details
-
getMinVersion
-
getMaxVersion
-
toRequestFailure
Description copied from class:RequestReturn aRequestFailurefor this request, caused by aRequestException.- Specified by:
toRequestFailurein classRequest<ClientIdentifier,ConnectClientRequest> - Parameters:
cause- Failure cause- Returns:
RequestFailurecorresponding to this request
-
externalizableProxy
protected AbstractRequestProxy<ClientIdentifier,ConnectClientRequest> externalizableProxy(ABIVersion version) - Specified by:
externalizableProxyin classRequest<ClientIdentifier,ConnectClientRequest>
-
cloneAsVersion
Description copied from class:MessageCreate a copy of this message which will serialize to a stream corresponding to the specified method. This method should be implemented by the concrete final message class and should invoke the equivalent ofMessage(Message, ABIVersion).- Specified by:
cloneAsVersionin classMessage<ClientIdentifier,ConnectClientRequest> - Parameters:
version- target ABI version- Returns:
- A message with the specified serialization stream
-
addToStringAttributes
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) Description copied from class:MessageAdd attributes to the output ofMessage.toString(). Subclasses wanting to contribute additional information should override this method. Any null attributes will be omitted from the output.- Overrides:
addToStringAttributesin classRequest<ClientIdentifier,ConnectClientRequest> - Parameters:
toStringHelper- aMoreObjects.ToStringHelperinstance- Returns:
- The
MoreObjects.ToStringHelperpassed in as argument
-