Package com.illumon.iris.db.v2.locations
Class TableDataProtocol.RemoteClient
java.lang.Object
com.fishlib.io.sched.NullIOHandler
com.fishlib.net.impl.nio.AbstractRemotePeer
com.fishlib.net.impl.nio.AbstractReadaheadRemotePeer
com.illumon.iris.db.v2.locations.TableDataProtocol.RemoteClient
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,com.fishlib.io.sched.IOHandler,com.fishlib.net.impl.nio.AbstractPeer,TableDataProtocol.Client
- Enclosing class:
- TableDataProtocol
public static class TableDataProtocol.RemoteClient extends com.fishlib.net.impl.nio.AbstractReadaheadRemotePeer implements TableDataProtocol.Client
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RemoteClient(int peerId, String name, com.fishlib.io.sched.IOJob job, com.fishlib.io.logger.Logger log, com.fishlib.io.sched.PooledMessage.Pool pool, com.fishlib.base.clock.Clock clock) -
Method Summary
Modifier and Type Method Description com.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput)protected voiddispatch(boolean bufferComplete)voidendJob(com.fishlib.io.sched.IOJob job)voidinitialize(TableDataProtocol.RequestHandler requestHandler)protected voidparse(com.fishlib.net.impl.nio.WObjectReader reader)voidsendColumnFileData(long requestKey, long startOffset, int length, com.fishlib.io.sched.Message data)voidsendColumnFileSize(long requestKey, long columnFileSize)voidsendColumnLocationExistence(long requestKey, boolean exists, boolean littleEndianByteOrder, boolean symbolTableExists)voidsendRequestCompletion(long requestKey)voidsendRequestRejection(long requestKey, TableDataProtocol.RequestRejectionType requestRejectionType, CharSequence rejectText)voidsendTableLocation(long requestKey, TableLocationKey locationKey)voidsendTableLocationUpdate(long requestKey, TableLocationState locationState)StringtoString()Methods inherited from class com.fishlib.net.impl.nio.AbstractReadaheadRemotePeer
getPeerId, handleIncomingMethods inherited from class com.fishlib.net.impl.nio.AbstractRemotePeer
addMessage, flush, flush, getByteCount, getJob, getLog, getOutput, getReader, getWriter, isShutdown, maybeFlush, maybeFlush, shutdownMethods inherited from class com.fishlib.io.sched.NullIOHandler
handleEOF, handleError, handleOutgoing, handleTimeout, startJob
-
Constructor Details
-
RemoteClient
public RemoteClient(int peerId, String name, com.fishlib.io.sched.IOJob job, com.fishlib.io.logger.Logger log, com.fishlib.io.sched.PooledMessage.Pool pool, com.fishlib.base.clock.Clock clock)
-
-
Method Details
-
initialize
-
parse
- Specified by:
parsein classcom.fishlib.net.impl.nio.AbstractReadaheadRemotePeer- Throws:
IOException
-
dispatch
protected void dispatch(boolean bufferComplete)- Specified by:
dispatchin classcom.fishlib.net.impl.nio.AbstractReadaheadRemotePeer
-
endJob
public void endJob(@NotNull com.fishlib.io.sched.IOJob job)- Specified by:
endJobin interfacecom.fishlib.io.sched.IOHandler- Specified by:
endJobin classcom.fishlib.net.impl.nio.AbstractRemotePeer
-
sendRequestRejection
public void sendRequestRejection(long requestKey, @NotNull TableDataProtocol.RequestRejectionType requestRejectionType, @NotNull CharSequence rejectText) throws IOException- Specified by:
sendRequestRejectionin interfaceTableDataProtocol.Client- Throws:
IOException
-
sendRequestCompletion
- Specified by:
sendRequestCompletionin interfaceTableDataProtocol.Client- Throws:
IOException
-
sendTableLocation
public void sendTableLocation(long requestKey, @NotNull TableLocationKey locationKey) throws IOException- Specified by:
sendTableLocationin interfaceTableDataProtocol.Client- Throws:
IOException
-
sendTableLocationUpdate
public void sendTableLocationUpdate(long requestKey, @NotNull TableLocationState locationState) throws IOException- Specified by:
sendTableLocationUpdatein interfaceTableDataProtocol.Client- Throws:
IOException
-
sendColumnLocationExistence
public void sendColumnLocationExistence(long requestKey, boolean exists, boolean littleEndianByteOrder, boolean symbolTableExists) throws IOException- Specified by:
sendColumnLocationExistencein interfaceTableDataProtocol.Client- Throws:
IOException
-
sendColumnFileSize
- Specified by:
sendColumnFileSizein interfaceTableDataProtocol.Client- Throws:
IOException
-
sendColumnFileData
public void sendColumnFileData(long requestKey, long startOffset, int length, @NotNull com.fishlib.io.sched.Message data) throws IOException- Specified by:
sendColumnFileDatain interfaceTableDataProtocol.Client- Throws:
IOException
-
toString
- Overrides:
toStringin classcom.fishlib.net.impl.nio.AbstractRemotePeer
-
append
public com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput)- Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable- Overrides:
appendin classcom.fishlib.net.impl.nio.AbstractRemotePeer
-