Examples of SessionId


Examples of com.odiago.flumebase.server.SessionId

      DummyExecEnv.class.getName());

  @Override
  public SessionId connect() {
    // Do nothing.
    return new SessionId(0);
  }
View Full Code Here

Examples of com.odiago.flumebase.server.SessionId

  /** Given a Configuration that has SUBMITTER_SESSION_ID_KEY set, return the
   * UserSession corresponding to this SessionId. This is used to resolve the
   * submitter of a LocalFlow, FlowSpecification, etc.
   */
  private UserSession getSessionForConf(Configuration conf) {
    SessionId id = new SessionId(conf.getLong(SUBMITTER_SESSION_ID_KEY, -1));
    return getSession(id);
  }
View Full Code Here

Examples of com.odiago.flumebase.server.SessionId

  @Override
  public SessionId connect() throws IOException {
    Runtime.getRuntime().addShutdownHook(new ShutdownThread());
    mLocalThread.start();
    mConnected = true;
    return new SessionId(0); // Local user is always session 0.
  }
View Full Code Here

Examples of com.odiago.flumebase.server.SessionId

      Configuration flowConf = newFlow.getConf();
      if (flowConf.getBoolean(AUTO_WATCH_FLOW_KEY, DEFAULT_AUTO_WATCH_FLOW)) {
        // Subscribe to this flow before running it, so we guarantee the user
        // sees all the results.
        long idNum = flowConf.getLong(SUBMITTER_SESSION_ID_KEY, -1);
        SessionId submitterSessionId = new SessionId(idNum);
        UserSession session = getSession(submitterSessionId);
        if (session != null) {
          activeFlowData.addSession(session);
        } else {
          LOG.warn("Invalid session id number: " + idNum);
View Full Code Here

Examples of com.persistit.SessionId

    private static final Logger log = LoggerFactory.getLogger(PersistitTransaction.class);

    private static Queue<SessionId> sessionPool = new ConcurrentLinkedQueue<SessionId>();

    private static SessionId getSessionId() {
        SessionId s = sessionPool.poll();
        if (s == null) {
            s = new SessionId();
        }
        return s;
    }
View Full Code Here

Examples of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionId

   
    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new SessionId();
    }
View Full Code Here

Examples of org.apache.activemq.apollo.openwire.command.SessionId

    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new SessionId();
    }
View Full Code Here

Examples of org.apache.activemq.command.SessionId

        }
        return null;
    }

    public Response processAddProducer(ProducerInfo info) throws Exception {
        SessionId sessionId = info.getProducerId().getParentId();
        ConnectionId connectionId = sessionId.getParentId();
        TransportConnectionState cs = lookupConnectionState(connectionId);
        SessionState ss = cs.getSessionState(sessionId);
        if (ss == null) {
            throw new IllegalStateException(
                                            "Cannot add a producer to a session that had not been registered: "
View Full Code Here

Examples of org.apache.activemq.command.SessionId

        }
        return null;
    }

    public Response processRemoveProducer(ProducerId id) throws Exception {
        SessionId sessionId = id.getParentId();
        ConnectionId connectionId = sessionId.getParentId();
        TransportConnectionState cs = lookupConnectionState(connectionId);
        SessionState ss = cs.getSessionState(sessionId);
        if (ss == null) {
            throw new IllegalStateException(
                                            "Cannot remove a producer from a session that had not been registered: "
View Full Code Here

Examples of org.apache.activemq.command.SessionId

        broker.removeProducer(cs.getContext(), ps.getInfo());
        return null;
    }

    public Response processAddConsumer(ConsumerInfo info) throws Exception {
        SessionId sessionId = info.getConsumerId().getParentId();
        ConnectionId connectionId = sessionId.getParentId();
        TransportConnectionState cs = lookupConnectionState(connectionId);
        SessionState ss = cs.getSessionState(sessionId);
        if (ss == null) {
            throw new IllegalStateException(
                                            broker.getBrokerName() + " Cannot add a consumer to a session that had not been registered: "
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.