Package com.odiago.flumebase.server

Examples of com.odiago.flumebase.server.SessionId


      DummyExecEnv.class.getName());

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


  /** 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

  @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

      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

TOP

Related Classes of com.odiago.flumebase.server.SessionId

Copyright © 2018 www.massapicom. 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.