Class XrootdTpcClient


  • public class XrootdTpcClient
    extends java.lang.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 Detail

      • XrootdTpcClient

        public XrootdTpcClient​(java.lang.String userUrn,
                               XrootdTpcInfo info,
                               TpcDelayedSyncWriteHandler writeHandler,
                               java.util.concurrent.ScheduledExecutorService executorService)
    • Method Detail

      • cancelAttnFuture

        public boolean cancelAttnFuture()
      • canRedirect

        public boolean canRedirect()
      • configureRedirects

        public void configureRedirects​(XrootdTpcClient preceding)
      • connect

        public void connect​(io.netty.channel.nio.NioEventLoopGroup group,
                            java.util.List<ChannelHandlerFactory> plugins,
                            TpcSourceReadHandler readHandler)
                     throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • disconnect

        public void disconnect()
        Blocking call, returns when client is no longer running.

      • doClose

        public void doClose​(io.netty.channel.ChannelHandlerContext ctx)
      • doEndsession

        public void doEndsession​(io.netty.channel.ChannelHandlerContext ctx)
      • getExecutor

        public java.util.concurrent.ScheduledExecutorService getExecutor()
      • shutDown

        public void shutDown​(io.netty.channel.ChannelHandlerContext ctx)
      • startTimer

        public void startTimer​(io.netty.channel.ChannelHandlerContext ctx)
      • stopTimer

        public void stopTimer()
      • getChannelFuture

        public io.netty.channel.ChannelFuture getChannelFuture()
      • getAuthnHandlers

        public java.util.Map<java.lang.String,​io.netty.channel.ChannelHandler> getAuthnHandlers()
      • getCpsize

        public int getCpsize()
      • getCptype

        public int getCptype()
      • getErrno

        public int getErrno()
      • getError

        public java.lang.String getError()
      • getExpectedResponse

        public int getExpectedResponse()
      • getFhandle

        public int getFhandle()
      • getFlag

        public int getFlag()
      • getFullpath

        public java.lang.String getFullpath()
      • getPid

        public int getPid()
      • getPval

        public int getPval()
      • getStreamId

        public int getStreamId()
      • getUname

        public java.lang.String getUname()
      • getUserUrn

        public java.lang.String getUserUrn()
      • getWriteOffset

        public long getWriteOffset()
      • isOpenFile

        public boolean isOpenFile()
      • setAttnFuture

        public void setAttnFuture​(java.util.concurrent.ScheduledFuture attnFuture)
      • setCpsize

        public void setCpsize​(int cpsize)
      • setCptype

        public void setCptype​(int cptype)
      • setError

        public void setError​(java.lang.Throwable t)
      • setExpectedResponse

        public void setExpectedResponse​(int expectedRequestId)
      • setFhandle

        public void setFhandle​(int fhandle)
      • setFlag

        public void setFlag​(int flag)
      • setOpenFile

        public void setOpenFile​(boolean openFile)
      • setProtocolInfo

        public void setProtocolInfo​(SecurityInfo protocolInfo)
      • setPval

        public void setPval​(int pval)
      • setResponseTimeout

        public void setResponseTimeout​(long responseTimeout)
      • setSigningPolicy

        public void setSigningPolicy​(SigningPolicy signingPolicy)
      • setTlsSessionInfo

        public void setTlsSessionInfo​(TLSSessionInfo tlsSessionInfo)
      • setWriteOffset

        public void setWriteOffset​(long writeOffset)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object