convex.net.store.RemoteStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-peer Show documentation
Show all versions of convex-peer Show documentation
Convex Peer implementation and APIs
The newest version!
package convex.net.store;
import java.io.IOException;
import java.util.function.Consumer;
import convex.api.Convex;
import convex.core.data.ACell;
import convex.core.data.Hash;
import convex.core.data.Ref;
import convex.core.store.ACachedStore;
/**
* A Store implementation working over a Convex binary connection
*/
public class RemoteStore extends ACachedStore {
protected Convex convex;
public RemoteStore(Convex convex) {
this.convex=convex;
}
public RemoteStore create(Convex connection) {
return new RemoteStore(convex);
}
@Override
public Ref storeRef(Ref ref, int status, Consumer> noveltyHandler) {
// TODO Auto-generated method stub
return null;
}
@Override
public Ref storeTopRef(Ref ref, int status, Consumer> noveltyHandler) {
// TODO Auto-generated method stub
return null;
}
@Override
public Ref refForHash(Hash hash) {
// TODO Auto-generated method stub
return null;
}
@Override
public Hash getRootHash() throws IOException {
// TODO Auto-generated method stub
return null;
}
@Override
public Ref setRootData(T data) throws IOException {
// TODO Auto-generated method stub
return null;
}
@Override
public void close() {
convex.close();
}
@Override
public Ref checkCache(Hash h) {
// TODO Auto-generated method stub
return null;
}
@Override
public String shortName() {
// TODO Auto-generated method stub
return "Remote Store: "+convex.getHostAddress();
}
}