Class AbstractXrootdOutboundRequest
- java.lang.Object
-
- org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
-
- All Implemented Interfaces:
XrootdOutboundRequest
- Direct Known Subclasses:
OutboundAuthenticationRequest,OutboundChecksumRequest,OutboundCloseRequest,OutboundEndSessionRequest,OutboundLoginRequest,OutboundOpenReadOnlyRequest,OutboundReadRequest,OutboundSigverRequest
public abstract class AbstractXrootdOutboundRequest extends java.lang.Object implements XrootdOutboundRequest
Supports outgoing client requests to the source server in third-party copies. According to protocol, all client requests must have the following packet structure:
For the purposes of the third-party-client, none of these make use of the data or data length fields.kXR_char streamid[2] kXR_unt16 requestid kXR_char parms[16] kXR_int32 dlen kXR_char data[dlen]
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractXrootdOutboundRequest(int streamId, int requestId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidgetParams(io.netty.buffer.ByteBuf buffer)protected abstract intgetParamsLen()intgetRequestId()intgetStreamId()voidwriteTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Marshals this request object into a buffer and writes it to the context.protected voidwriteToBuffer(io.netty.buffer.ByteBuf buffer)
-
-
-
Method Detail
-
getStreamId
public int getStreamId()
- Specified by:
getStreamIdin interfaceXrootdOutboundRequest
-
getRequestId
public int getRequestId()
-
writeTo
public void writeTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Description copied from interface:XrootdOutboundRequestMarshals this request object into a buffer and writes it to the context.- Specified by:
writeToin interfaceXrootdOutboundRequest
-
writeToBuffer
protected void writeToBuffer(io.netty.buffer.ByteBuf buffer)
-
getParams
protected abstract void getParams(io.netty.buffer.ByteBuf buffer)
-
getParamsLen
protected abstract int getParamsLen()
-
-