Package org.jboss.cache.commands.read

Examples of org.jboss.cache.commands.read.ExistsCommand


    }

    lock.acquireLock(name, false);
    try {
      init();
      ExistsCommand command = commandsFactory.buildExistsNodeCommand(name);
      List resps = callRemote(command);
      boolean result = false;
      for (Object o:resps) {
        if (o != null && !(o instanceof Exception)) {
          List<Boolean> clusteredGetResp = (List<Boolean>) o;
View Full Code Here


   {
      if (usingMvcc)
      {
         InvocationContext ctx = invocationContextContainer.get();
         cacheStatusCheck(ctx);
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(fqn);
         return (Boolean) invoker.invoke(ctx, command);
      }
      else
      {
         return peek(fqn, false) != null;
View Full Code Here

      if (!isCacheReady() || !cache.getInvocationContext().isOriginLocal()) return false;

      lock.acquireLock(name, false);
      try
      {
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(name);
         Object resp = callRemote(command);
         return resp != null && (Boolean) resp;
      }
      finally
      {
View Full Code Here

      return command;
   }

   public ExistsCommand buildExistsNodeCommand(Fqn fqn)
   {
      ExistsCommand command = new ExistsCommand(fqn);
      command.initialize(dataContainer);
      return command;
   }
View Full Code Here

      ReplicableCommand command;
      switch (id)
      {
         case ExistsCommand.METHOD_ID:
         {
            ExistsCommand result = new ExistsCommand();
            result.initialize(dataContainer);
            command = result;
            break;
         }
         case GetChildrenNamesCommand.METHOD_ID:
         {
View Full Code Here

   {
      if (usingMvcc)
      {
         InvocationContext ctx = invocationContextContainer.get();
         cacheStatusCheck(ctx);
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(fqn);
         return (Boolean) invoker.invoke(ctx, command);
      }
      else
      {
         return peek(fqn, false) != null;
View Full Code Here

      if (!isCacheReady() || !cache.getInvocationContext().isOriginLocal()) return false;

      lock.acquireLock(name, false);
      try
      {
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(name);
         Object resp = callRemote(command);
         return resp != null && (Boolean) resp;
      }
      finally
      {
View Full Code Here

      return command;
   }

   public ExistsCommand buildExistsNodeCommand(Fqn fqn)
   {
      ExistsCommand command = new ExistsCommand(fqn);
      command.initialize(dataContainer);
      return command;
   }
View Full Code Here

      ReplicableCommand command;
      switch (id)
      {
         case ExistsCommand.METHOD_ID:
         {
            ExistsCommand result = new ExistsCommand();
            result.initialize(dataContainer);
            command = result;
            break;
         }
         case GetChildrenNamesCommand.METHOD_ID:
         {
View Full Code Here

   {
      if (usingMvcc)
      {
         InvocationContext ctx = invocationContextContainer.get();
         cacheStatusCheck(ctx);
         ExistsCommand command = commandsFactory.buildExistsNodeCommand(fqn);
         return (Boolean) invoker.invoke(ctx, command);
      }
      else
      {
         return peek(fqn, false) != null;
View Full Code Here

TOP

Related Classes of org.jboss.cache.commands.read.ExistsCommand

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.