public static void replicateCommand(CacheSPI cache, VisitableCommand command) throws Throwable
{
ComponentRegistry cr = extractComponentRegistry(cache);
InterceptorChain ic = cr.getComponent(InterceptorChain.class);
ic.invoke(command);
}
public static void blockUntilViewsReceived(int timeout, List caches)
{
blockUntilViewsReceived((Cache[]) caches.toArray(new Cache[]{}), timeout);