Package loginservice.model

Examples of loginservice.model.Session



  public String login() {
    log.debug("trying to login");
    ClusterManager clusterManager=clusterManagerFactory.getClusterManager();
    Session newSession=new Session();
    newSession=(Session) clusterManager.distribute(newSession);
    String sessionid=newSession.getId();
    return sessionid;
  }
View Full Code Here


 
  @DistributedExecution (DistributedExecutionTarget.KEY_OWNER)
  public void logout(String sessionID) {
    ClusterManager clusterManager=clusterManagerFactory.getClusterManager();
    System.out.println(clusterManager.getLocalMember()+":"+sessionID);
    Session session=(Session) clusterManager.get(sessionID, Session.class);
    if (session!=null) {
      clusterManager.remove(session);
    } else {
      throw new IllegalArgumentException("session not found");
    }
View Full Code Here

TOP

Related Classes of loginservice.model.Session

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.