public class XrootdTpcClient extends Object
Internal third-party copy client responsible for reading the source file and writing it to the local server.
A TpcClient is responsible for a single file transfer. It has its own channel/pipeline, and its lifecycle ends with the completion of the transfer, whereupon it is disconnected.
A client is bound to its channel handlers through injection.
| Constructor and Description |
|---|
XrootdTpcClient(String userUrn,
XrootdTpcInfo info,
TpcDelayedSyncWriteHandler writeHandler,
ScheduledExecutorService executorService) |
public XrootdTpcClient(String userUrn, XrootdTpcInfo info, TpcDelayedSyncWriteHandler writeHandler, ScheduledExecutorService executorService)
public boolean canRedirect()
public void configureRedirects(XrootdTpcClient preceding)
public void connect(io.netty.channel.nio.NioEventLoopGroup group,
List<ChannelHandlerFactory> plugins,
TpcSourceReadHandler readHandler)
throws InterruptedException
InterruptedExceptionpublic void disconnect()
Blocking call, returns when client is no longer running.
public void doClose(io.netty.channel.ChannelHandlerContext ctx)
public void doEndsession(io.netty.channel.ChannelHandlerContext ctx)
public ScheduledExecutorService getExecutor()
public void shutDown(io.netty.channel.ChannelHandlerContext ctx)
throws InterruptedException
InterruptedExceptionpublic io.netty.channel.ChannelFuture getChannelFuture()
public InboundAuthenticationResponse getAuthResponse()
public int getCpsize()
public int getCptype()
public int getErrno()
public String getError()
public int getExpectedResponse()
public int getFhandle()
public int getFlag()
public String getFullpath()
public XrootdTpcInfo getInfo()
public int getPid()
public int getPval()
public int getSeclvl()
public XrootdSessionIdentifier getSessionId()
public TpcSigverRequestHandler getSigverRequestHandler()
public int getStreamId()
public String getUname()
public String getUserUrn()
public TpcDelayedSyncWriteHandler getWriteHandler()
public long getWriteOffset()
public boolean isOpenFile()
public void setAuthResponse(InboundAuthenticationResponse authResponse)
public void setCpsize(int cpsize)
public void setCptype(int cptype)
public void setError(Throwable t)
public void setExpectedResponse(int expectedRequestId)
public void setFhandle(int fhandle)
public void setFlag(int flag)
public void setOpenFile(boolean openFile)
public void setPval(int pval)
public void setSeclvl(int seclvl)
public void setSessionId(XrootdSessionIdentifier sessionId)
public void setSigverRequestHandler(TpcSigverRequestHandler sigverRequestHandler)
public void setWriteOffset(long writeOffset)
Copyright © 2011–2018 dCache.org. All rights reserved.