Package nxt
Interface BlockchainProcessor
-
- All Superinterfaces:
Observable<Block,BlockchainProcessor.Event>
public interface BlockchainProcessor extends Observable<Block,BlockchainProcessor.Event>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBlockchainProcessor.BlockNotAcceptedExceptionstatic classBlockchainProcessor.BlockOutOfOrderExceptionstatic classBlockchainProcessor.Eventstatic classBlockchainProcessor.TransactionNotAcceptedException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfullReset()voidfullScanWithShutdown()longgetGenesisBlockId()intgetInitialScanHeight()PeergetLastBlockchainFeeder()intgetLastBlockchainFeederHeight()intgetMinRollbackHeight()booleanisDownloading()booleanisProcessingBlock()booleanisScanning()java.util.List<? extends Block>popOffTo(int height)voidprocessPeerBlock(org.json.simple.JSONObject request)voidregisterDerivedTable(DerivedDbTable table)intrestorePrunedData()TransactionrestorePrunedTransaction(long transactionId)voidscan(int height, boolean validate)voidsetGetMoreBlocks(boolean getMoreBlocks)voidtrimDerivedTables()-
Methods inherited from interface nxt.util.Observable
addListener, removeListener
-
-
-
-
Method Detail
-
getLastBlockchainFeeder
Peer getLastBlockchainFeeder()
-
getLastBlockchainFeederHeight
int getLastBlockchainFeederHeight()
-
isScanning
boolean isScanning()
-
isDownloading
boolean isDownloading()
-
isProcessingBlock
boolean isProcessingBlock()
-
getMinRollbackHeight
int getMinRollbackHeight()
-
getInitialScanHeight
int getInitialScanHeight()
-
processPeerBlock
void processPeerBlock(org.json.simple.JSONObject request) throws NxtException- Throws:
NxtException
-
fullReset
void fullReset()
-
scan
void scan(int height, boolean validate)
-
fullScanWithShutdown
void fullScanWithShutdown()
-
setGetMoreBlocks
void setGetMoreBlocks(boolean getMoreBlocks)
-
popOffTo
java.util.List<? extends Block> popOffTo(int height)
-
registerDerivedTable
void registerDerivedTable(DerivedDbTable table)
-
trimDerivedTables
void trimDerivedTables()
-
restorePrunedData
int restorePrunedData()
-
restorePrunedTransaction
Transaction restorePrunedTransaction(long transactionId)
-
getGenesisBlockId
long getGenesisBlockId()
-
-