Examples of reset()


Examples of org.jboss.as.cli.impl.DefaultParsedArguments.reset()

            ++firstCharIndex;
        }

        results.reset();
        final DefaultParsedArguments parsedArguments = (DefaultParsedArguments) ctx.getParsedArguments();
        parsedArguments.reset(null, null);
        try {
            CommandLineParser.parse(buffer, new CommandLineParser.CallbackHandler() {
                @Override
                public void argument(String name, int nameStart, String value, int valueStart, int end) throws CommandFormatException {
                    if(end > 0 && end < buffer.length()) {
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultCallbackHandler.reset()

                   final String thePath = nodePath.getValue(ctx.getParsedCommandLine());
                   if (thePath == null) {
                      return Collections.emptyList();
                   }

                   callback.reset();
                   try {
                       ParserUtil.parseOperationRequest(thePath, callback);
                   } catch (CommandFormatException e) {
                       return Collections.emptyList();
                   }
View Full Code Here

Examples of org.jboss.as.console.client.shared.state.ReloadState.reset()

        ReloadState reloadState = Console.MODULES.getReloadState();
        boolean staleModel = parseServerState(response, reloadState);

        reloadState.propagateChanges();

        if(!staleModel) reloadState.reset();

    }

    private static boolean parseServerState(ModelNode response, ReloadState reloadState) {
View Full Code Here

Examples of org.jboss.as.console.client.widgets.progress.ProgressElement.reset()

        final long s0 = System.currentTimeMillis();

        // TOD: provide proper API
        final ProgressElement progressElement = Footer.PROGRESS_ELEMENT;
        progressElement.reset();
        progressElement.tick();

        dispatcher.execute(new DMRAction(operation), new SimpleCallback<DMRResponse>() {

            @Override
View Full Code Here

Examples of org.jboss.as.ee.concurrent.handle.ResetContextHandle.reset()

                ConcurrentContext.pushCurrent(concurrentContext);
                for (SetupContextHandle handle : setupHandles) {
                    resetHandles.addFirst(handle.setup());
                }
            } catch (Error | RuntimeException e) {
                resetContextHandle.reset();
                throw e;
            }
            return resetContextHandle;
        }
View Full Code Here

Examples of org.jboss.byteman.synchronization.Timer.reset()

            Timer timer = timerMap.get(o);
            if (timer == null) {
                timer = new Timer();
                timerMap.put(o, timer);
            }
            return timer.reset();
        }
    }

    /**
     * cause the current thread to throw a runtime exception which will normally cause it to exit.
View Full Code Here

Examples of org.jboss.cache.InvocationContext.reset()

   {
      InvocationContext ctx = c.getInvocationContext();
      InvocationContext control;
      control = ctx.copy();

      control.reset();

      assertEquals("Should be equal", control, ctx);
   }

}
View Full Code Here

Examples of org.jboss.cache.util.ExposedByteArrayOutputStream.reset()

            throw t;
        
         // Reset the byte array and see if we can continue with persistent state
         // TODO reconsider this -- why are errors suppressed at all?
         sizes[0] = sizes[1] = 0;
         baos.reset();
         try {
            initializeStateTransfer(baos);
         }
         catch (Throwable t1) {
            log.error("failed re-initializing state transfer", t1);
View Full Code Here

Examples of org.jboss.classloading.spi.dependency.Module.reset()

         }
      }
      finally
      {
         cleanup(unit, module);
         module.reset();
      }
  }
  
   /**
    * Hook to perform cleanup on destruction of classloaader
View Full Code Here

Examples of org.jboss.errai.workspaces.client.widgets.WSTab.reset()

            }
        }

        tp.selectTab(destIdx);
       
        sourceTab.reset();
        targetTab.reset();

        super.onDrop(dragContext);
    }
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.