Class ExportedTableHandleManager
java.lang.Object
com.illumon.iris.db.tables.remote.ExportedTableHandleManager
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
public class ExportedTableHandleManager
extends Object
implements com.fishlib.base.log.LogOutputAppendable
Exports tables to a RemoteTableHandleManager, for access via a proxy.
Used for a single client to a RemoteQueryProcessor.
-
Constructor Summary
ConstructorsConstructorDescriptionExportedTableHandleManager
(ExportedObjectClient client, com.fishlib.io.logger.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addPreemptiveSubscription
(int handleId, BitSet columnsToSubscribe, boolean isViewport) com.fishlib.base.log.LogOutput
append
(com.fishlib.base.log.LogOutput logOutput) getTableForHandle
(int handleId) Gets the table for the given handle id.Object[]
invokeMethod
(int handleId, String methodName, Class[] argumentTypes, Object[] args) makeHandleAndGetDescriptor
(Table table) makeHandleAndGetDescriptor
(Table table, boolean preSubscribed, boolean preSubscribedViewport) void
void
releaseHandle
(int handleId) boolean
removePreemptiveSubscription
(int handleId) toString()
boolean
updatePreemptiveSubscription
(int handleId, BitSet columnsToSubscribe) boolean
updateViewPort
(int handleId, Index viewPort) boolean
updateViewportAndColumns
(int handleId, Index viewPort, BitSet columnsToSubscribe)
-
Constructor Details
-
ExportedTableHandleManager
public ExportedTableHandleManager(@NotNull ExportedObjectClient client, @NotNull com.fishlib.io.logger.Logger log) - Parameters:
client
- The client statelog
- The log
-
-
Method Details
-
toString
-
append
public com.fishlib.base.log.LogOutput append(@NotNull com.fishlib.base.log.LogOutput logOutput) - Specified by:
append
in interfacecom.fishlib.base.log.LogOutputAppendable
-
makeHandleAndGetDescriptor
-
makeHandleAndGetDescriptor
public Inflatable<Table> makeHandleAndGetDescriptor(@NotNull Table table, boolean preSubscribed, boolean preSubscribedViewport) -
releaseHandle
public void releaseHandle(int handleId) -
getTableForHandle
Gets the table for the given handle id. Throws IllegalStateException if the handle does not exist.- Parameters:
handleId
- the integer ID for the handle- Returns:
- the table associated with the handleId
- Throws:
IllegalStateException
- if there is no such handle
-
onDisconnection
public void onDisconnection() -
invokeMethod
-
addPreemptiveSubscription
public boolean addPreemptiveSubscription(int handleId, @NotNull BitSet columnsToSubscribe, boolean isViewport) -
removePreemptiveSubscription
public boolean removePreemptiveSubscription(int handleId) -
updatePreemptiveSubscription
-
updateViewPort
-
updateViewportAndColumns
-