Package com.h2tcoin.takamaka.replica
Class ReplicaUtils
- java.lang.Object
-
- com.h2tcoin.takamaka.replica.ReplicaUtils
-
public class ReplicaUtils extends Object
- Author:
- francesco.pasetto@h2tcoin.com
-
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.client.RestHighLevelClientclient
-
Constructor Summary
Constructors Constructor Description ReplicaUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose()static voiddeleteAndCreateIndex(String index, int shards)static voidfullReIndexing()static voidindexing(int epoch, int slot, String blockhash)static StringlistTransactionsByAddress(String address)static StringlistTransactionsByAddressAndType(String address, String type)static StringlistTransactionsByAddressFrom(String address)static StringlistTransactionsByAddressTo(String address)static StringsearchTransactions(String data, int limit)static voidupdate()
-
-
-
Method Detail
-
deleteAndCreateIndex
public static void deleteAndCreateIndex(String index, int shards) throws IOException
- Throws:
IOException
-
indexing
public static void indexing(int epoch, int slot, String blockhash) throws FileNotFoundException, IOException- Throws:
FileNotFoundExceptionIOException
-
update
public static void update()
-
listTransactionsByAddressAndType
public static String listTransactionsByAddressAndType(String address, String type) throws IOException
- Throws:
IOException
-
listTransactionsByAddress
public static String listTransactionsByAddress(String address) throws IOException
- Throws:
IOException
-
listTransactionsByAddressFrom
public static String listTransactionsByAddressFrom(String address) throws IOException
- Throws:
IOException
-
listTransactionsByAddressTo
public static String listTransactionsByAddressTo(String address) throws IOException
- Throws:
IOException
-
searchTransactions
public static String searchTransactions(String data, int limit) throws IOException
- Throws:
IOException
-
fullReIndexing
public static void fullReIndexing()
-
close
public static void close() throws IOException- Throws:
IOException
-
-