/** * Construct a new context. */ public CommandContext(String connectionID, String userName, Serializable commandPayload, String vdbName, Object vdbVersion, boolean collectNodeStatistics) { setConnectionID(connectionID); setUserName(userName); setCommandPayload(commandPayload); setVdbName(vdbName); setVdbVersion(vdbVersion.toString()); setCollectNodeStatistics(collectNodeStatistics); }
/** * Construct a new context. */ public CommandContext(String connectionID, String userName, Serializable commandPayload, String vdbName, Object vdbVersion, boolean collectNodeStatistics) { setConnectionID(connectionID); setUserName(userName); setCommandPayload(commandPayload); setVdbName(vdbName); setVdbVersion(vdbVersion.toString()); setCollectNodeStatistics(collectNodeStatistics); }
/** * Construct a new context. */ public CommandContext(String connectionID, String userName, Serializable commandPayload, String vdbName, Object vdbVersion, boolean collectNodeStatistics) { setConnectionID(connectionID); setUserName(userName); setCommandPayload(commandPayload); setVdbName(vdbName); setVdbVersion(vdbVersion.toString()); setCollectNodeStatistics(collectNodeStatistics); }
public ExecutionContextImpl(String vdbName, Object vdbVersion, Serializable executionPayload, String originalConnectionID, String connectorName, long requestId, String partId, String execCount) { commandContext = new CommandContext(); commandContext.setVdbName(vdbName); commandContext.setVdbVersion(vdbVersion.toString()); commandContext.setCommandPayload(executionPayload); commandContext.setConnectionID(originalConnectionID); commandContext.setRequestId(new RequestID(originalConnectionID, requestId)); this.connectorName = connectorName; this.partID = partId; this.executeCount = execCount; }
public ExecutionContextImpl(String vdbName, Object vdbVersion, Serializable executionPayload, String originalConnectionID, String connectorName, long requestId, String partId, String execCount) { commandContext = new CommandContext(); commandContext.setVdbName(vdbName); commandContext.setVdbVersion(vdbVersion.toString()); commandContext.setCommandPayload(executionPayload); commandContext.setConnectionID(originalConnectionID); commandContext.setRequestId(new RequestID(originalConnectionID, requestId)); this.connectorName = connectorName; this.partID = partId; this.executeCount = execCount; }
public ExecutionContextImpl(String vdbName, Object vdbVersion, Serializable executionPayload, String originalConnectionID, String connectorName, long requestId, String partId, String execCount) { commandContext = new CommandContext(); commandContext.setVdbName(vdbName); commandContext.setVdbVersion(vdbVersion.toString()); commandContext.setCommandPayload(executionPayload); commandContext.setConnectionID(originalConnectionID); commandContext.setRequestId(new RequestID(originalConnectionID, requestId)); this.connectorName = connectorName; this.partID = partId; this.executeCount = execCount; }
private AtomicRequestMessage helpSetupRequest(String sql, int nodeId, QueryMetadataInterface metadata) throws Exception { DQPWorkContext workContext = RealMetadataFactory.buildWorkContext(metadata, vdb); Command command = helpGetCommand(sql, metadata); RequestMessage original = new RequestMessage(); original.setExecutionId(id++); original.setPartialResults(true); RequestID requestID = workContext.getRequestID(original.getExecutionId()); context = new CommandContext(); context.setSession(workContext.getSession()); context.setVdbName("test"); //$NON-NLS-1$ context.setVdbVersion(1); context.setQueryProcessorFactory(new QueryProcessorFactoryImpl(dtm.getBufferManager(), dtm, new DefaultCapabilitiesFinder(), null, metadata)); workItem = TestDQPCoreRequestHandling.addRequest(rm, original, requestID, null, workContext); context.setWorkItem(workItem); AtomicRequestMessage request = new AtomicRequestMessage(original, workContext, nodeId); request.setCommand(command); request.setConnectorName("FakeConnectorID"); //$NON-NLS-1$ request.setCommandContext(context); return request; }