Examples of releaseRemoteLock()


Examples of org.jboss.as.clustering.lock.AbstractClusterLockSupport.RpcTarget.releaseRemoteLock()

       
        verify(handler).lockFromCluster(eq("test"), eq(caller1), anyLong());

        assertEquals(RemoteLockResponse.Flag.OK, rsp.flag);

        target.releaseRemoteLock("test", caller2);
       
        verify(handler, never()).unlockFromCluster("test", caller2);
    }

}
View Full Code Here

Examples of org.jboss.ha.framework.server.lock.AbstractClusterLockSupport.RpcTarget.releaseRemoteLock()

      replay(handler);
     
      RemoteLockResponse rsp = target.remoteLock("test", caller1, 1);
      assertEquals(RemoteLockResponse.Flag.OK, rsp.flag);
     
      target.releaseRemoteLock("test", caller2);
     
      verify(partition);
      verify(handler);
   }
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.