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.RestHighLevelClient
client
-
Constructor Summary
Constructors Constructor Description ReplicaUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
close()
static void
deleteAndCreateIndex(String index, int shards)
static void
fullReIndexing()
static void
indexing(int epoch, int slot, String blockhash)
static String
listTransactionsByAddress(String address)
static String
listTransactionsByAddressAndType(String address, String type)
static String
listTransactionsByAddressFrom(String address)
static String
listTransactionsByAddressTo(String address)
static String
searchTransactions(String data, int limit)
static void
update()
-
-
-
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:
FileNotFoundException
IOException
-
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
-
-