Package de.bamberg.ha.api.cluster

Examples of de.bamberg.ha.api.cluster.ClusterManager.distribute()


  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;
  }
 
  @DistributedExecution (DistributedExecutionTarget.KEY_OWNER)
View Full Code Here


  @Test
  public void test() throws Exception {
    ClusterManager manager=ClusterManagerFactoryImpl.getInstance().getClusterManager();
    TestClusterEntity e1=new TestClusterEntity();
    e1=(TestClusterEntity)manager.distribute(e1);
    assertNotNull(e1);
    assertNotNull(e1.getId());
   
    TestClusterEntity e2=(TestClusterEntity) manager.get(e1.getId(),TestClusterEntity.class);
    assertNotNull(e2);
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.