Examples of ClientState


Examples of org.apache.cassandra.service.ClientState

    public static UntypedResultSet processInternal(String query)
    {
        try
        {
            ClientState state = new ClientState(true);
            QueryState qState = new QueryState(state);
            state.setKeyspace(Table.SYSTEM_KS);
            CQLStatement statement = getStatement(query, state).statement;
            statement.validate(state);
            ResultMessage result = statement.executeInternal(qState);
            if (result instanceof ResultMessage.Rows)
                return new UntypedResultSet(((ResultMessage.Rows)result).result);
View Full Code Here

Examples of org.apache.qpid.disttest.client.ClientState

        return _session.createQueue(clientQueueName);
    }

    private static void assertState(Client client, ClientState expectedState)
    {
        ClientState clientState = client.getState();
        assertEquals("Client should be in state: " + expectedState + " but is in state " + clientState, expectedState, clientState);
    }
View Full Code Here

Examples of org.rstudio.studio.client.workbench.model.ClientState

   }

   @Override
   protected void performAction(final boolean shouldSchedulePassive)
   {
      ClientState state = ClientState.create();
      try
      {
         events_.fireEvent(new SaveClientStateEvent(state));
      }
      catch (Exception e)
      {
         onComplete(shouldSchedulePassive);
         return;
      }

      if (state.isEmpty())
      {
         onComplete(shouldSchedulePassive);
         return;
      }

      server_.updateClientState(
            state.getTemporaryData(),
            state.getPersistentData(),
            state.getProjectPersistentData(),
            new ServerRequestCallback<Void>() {
               @Override
               public void onError(ServerError error)
               {
                  onComplete(shouldSchedulePassive);
View Full Code Here

Examples of org.teiid.dqp.internal.process.DQPCore.ClientState

        workContext.getSession().setSessionId(id.getConnectionID());
        workContext.getSession().setUserName("foo"); //$NON-NLS-1$
      }
        RequestWorkItem workItem = new RequestWorkItem(rm, requestMsg, null, null, id, workContext);
        workItem.setOriginalCommand(originalCommand);
        ClientState state = rm.getClientState(id.getConnectionID(), true);
        rm.addRequest(id, workItem, state);
        return workItem;
    }
View Full Code Here

Examples of org.teiid.dqp.internal.process.DQPCore.ClientState

        }
       
        TempTableStore tempTableStore = null;
        if(requestManager != null) {
            if (workItem != null) {
                ClientState state = requestManager.getClientState(workContext.getSessionId(), false);
                if (state != null) {
                  tempTableStore = state.sessionTables;
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.