public abstract class AbstractXrootdOutboundRequest extends 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:
| kXR_char | streamid[2] |
| kXR_unt16 | requestid |
| kXR_char | parms[16] |
| kXR_int32 | dlen |
| kXR_char | data[dlen] |
For the purposes of the third-party-client, none of these make use of the data or data length fields.
| Modifier and Type | Field and Description |
|---|---|
protected int |
requestId |
protected int |
signingLevel |
protected int |
streamId |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXrootdOutboundRequest(int streamId,
int requestId) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
getParams(io.netty.buffer.ByteBuf buffer) |
protected abstract int |
getParamsLen() |
int |
getRequestId() |
int |
getStreamId() |
boolean |
isSigned(int level,
int override) |
void |
writeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
Marshals this request object into a buffer and writes
it to the context.
|
protected void |
writeToBuffer(io.netty.buffer.ByteBuf buffer) |
protected final int streamId
protected final int requestId
protected int signingLevel
protected AbstractXrootdOutboundRequest(int streamId,
int requestId)
public boolean isSigned(int level,
int override)
public int getStreamId()
getStreamId in interface XrootdOutboundRequestpublic int getRequestId()
public void writeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
XrootdOutboundRequestMarshals this request object into a buffer and writes it to the context.
writeTo in interface XrootdOutboundRequestprotected void writeToBuffer(io.netty.buffer.ByteBuf buffer)
protected abstract void getParams(io.netty.buffer.ByteBuf buffer)
protected abstract int getParamsLen()
Copyright © 2011–2018 dCache.org. All rights reserved.