public class CalypsoFactory extends Object
| Constructor and Description |
|---|
CalypsoFactory() |
| Modifier and Type | Method and Description |
|---|---|
CalypsoFactory |
addConode(ServerIdentity id) |
CalypsoFactory |
addConodes(List<ServerIdentity> ids) |
CalypsoRPC |
createConnection() |
CalypsoRPC |
initialiseNewCalypso(Signer admin)
Create a new skipchain.
|
CalypsoFactory |
setGenesis(SkipblockId genesis)
Set chain genesis (getId/hash of the fist block in the chain)
|
CalypsoFactory |
setLTSId(LTSId ltsId)
Sets the LTSId to use for all write and read requests.
|
public CalypsoFactory setGenesis(SkipblockId genesis)
genesis - the skipblock ID of the genesis blockIllegalStateException - when genesis can not be decoded or is too shortpublic CalypsoFactory setLTSId(LTSId ltsId)
ltsId - the lts id to usepublic CalypsoFactory addConode(ServerIdentity id)
public CalypsoFactory addConodes(List<ServerIdentity> ids)
ids - server identitiesIllegalArgumentException - when conode address is incorrectpublic CalypsoRPC createConnection() throws CothorityException
CothorityExceptionpublic CalypsoRPC initialiseNewCalypso(Signer admin) throws CothorityException
admin - the Signer who will be the adminCothorityException - if something goes wrongCopyright © 2019. All rights reserved.