Package com.illumon.iris.db.v2.locations
Class TableDataProtocol.RemoteServer
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.RemoteServer
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,com.fishlib.io.sched.IOHandler,com.fishlib.net.impl.nio.AbstractPeer,TableDataProtocol.Server
- Enclosing class:
- TableDataProtocol
public static class TableDataProtocol.RemoteServer extends com.fishlib.net.impl.nio.AbstractReadaheadRemotePeer implements TableDataProtocol.Server
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RemoteServer(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.ResponseHandler responseHandler)protected voidparse(com.fishlib.net.impl.nio.WObjectReader reader)voidsendColumnFileDataRequest(long requestKey, TableKey tableKey, TableLocationKey locationKey, CharSequence columnName, ColumnFileType columnFileType, long startOffset, int minimumLength)voidsendColumnFileSizeRequest(long requestKey, TableKey tableKey, TableLocationKey locationKey, CharSequence columnName, ColumnFileType columnFileType, long requiredSize)voidsendColumnLocationExistenceRequest(long requestKey, TableKey tableKey, TableLocationKey locationKey, CharSequence columnName)voidsendTableLocationRefreshRequest(long requestKey, boolean subscribe, TableKey tableKey, TableLocationKey locationKey)voidsendTableLocationsRequest(long requestKey, boolean subscribe, TableKey tableKey)voidsendUnsubscribeRequest(long requestKey, long requestKeyToUnsubscribe)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
-
RemoteServer
public RemoteServer(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
public void initialize(@NotNull TableDataProtocol.ResponseHandler responseHandler) throws IOException- Throws:
IOException
-
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
-
sendUnsubscribeRequest
public void sendUnsubscribeRequest(long requestKey, long requestKeyToUnsubscribe) throws IOException- Specified by:
sendUnsubscribeRequestin interfaceTableDataProtocol.Server- Throws:
IOException
-
sendTableLocationsRequest
public void sendTableLocationsRequest(long requestKey, boolean subscribe, @NotNull TableKey tableKey) throws IOException- Specified by:
sendTableLocationsRequestin interfaceTableDataProtocol.Server- Throws:
IOException
-
sendTableLocationRefreshRequest
public void sendTableLocationRefreshRequest(long requestKey, boolean subscribe, @NotNull TableKey tableKey, @NotNull TableLocationKey locationKey) throws IOException- Specified by:
sendTableLocationRefreshRequestin interfaceTableDataProtocol.Server- Throws:
IOException
-
sendColumnLocationExistenceRequest
public void sendColumnLocationExistenceRequest(long requestKey, @NotNull TableKey tableKey, @NotNull TableLocationKey locationKey, @NotNull CharSequence columnName) throws IOException- Specified by:
sendColumnLocationExistenceRequestin interfaceTableDataProtocol.Server- Throws:
IOException
-
sendColumnFileSizeRequest
public void sendColumnFileSizeRequest(long requestKey, @NotNull TableKey tableKey, @NotNull TableLocationKey locationKey, @NotNull CharSequence columnName, @NotNull ColumnFileType columnFileType, long requiredSize) throws IOException- Specified by:
sendColumnFileSizeRequestin interfaceTableDataProtocol.Server- Throws:
IOException
-
sendColumnFileDataRequest
public void sendColumnFileDataRequest(long requestKey, @NotNull TableKey tableKey, @NotNull TableLocationKey locationKey, @NotNull CharSequence columnName, @NotNull ColumnFileType columnFileType, long startOffset, int minimumLength) throws IOException- Specified by:
sendColumnFileDataRequestin interfaceTableDataProtocol.Server- 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
-