org.apache.accumulo.fate
Class ReadOnlyStore.ReadOnlyRepoWrapper<X>

java.lang.Object
  extended by org.apache.accumulo.fate.ReadOnlyStore.ReadOnlyRepoWrapper<X>
All Implemented Interfaces:
ReadOnlyRepo<X>
Enclosing class:
ReadOnlyStore<T>

protected static class ReadOnlyStore.ReadOnlyRepoWrapper<X>
extends Object
implements ReadOnlyRepo<X>

Decorates a Repo to make sure it is treated as a ReadOnlyRepo. Similar to ReadOnlyStore, won't allow subsequent user to cast a ReadOnlyRepo back to a mutable Repo.


Constructor Summary
ReadOnlyStore.ReadOnlyRepoWrapper(Repo<X> repo)
           
 
Method Summary
 String getDescription()
           
 long isReady(long tid, X environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyStore.ReadOnlyRepoWrapper

public ReadOnlyStore.ReadOnlyRepoWrapper(Repo<X> repo)
Parameters:
repo - may not be null
Method Detail

isReady

public long isReady(long tid,
                    X environment)
             throws Exception
Specified by:
isReady in interface ReadOnlyRepo<X>
Throws:
Exception

getDescription

public String getDescription()
Specified by:
getDescription in interface ReadOnlyRepo<X>


Copyright © 2015 Apache Accumulo Project. All rights reserved.