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
Constructors Constructor Description ExportedTableHandleManager(ExportedObjectClient client, com.fishlib.io.logger.Logger log) -
Method Summary
Modifier and Type Method Description booleanaddPreemptiveSubscription(int handleId, BitSet columnsToSubscribe, boolean isViewport)com.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput)TablegetTableForHandle(int handleId)Gets the table for the given handle id.Object[]invokeMethod(int handleId, String methodName, Class[] argumentTypes, Object[] args)Inflatable<Table>makeHandleAndGetDescriptor(Table table)Inflatable<Table>makeHandleAndGetDescriptor(Table table, boolean preSubscribed, boolean preSubscribedViewport)voidonDisconnection()voidreleaseHandle(int handleId)booleanremovePreemptiveSubscription(int handleId)StringtoString()booleanupdatePreemptiveSubscription(int handleId, BitSet columnsToSubscribe)booleanupdateViewPort(int handleId, Index viewPort)booleanupdateViewportAndColumns(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:
appendin 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
-