public class ChainMonitor extends AbstractContract<java.lang.Object,java.lang.Object>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChainMonitor.Parameters |
| Constructor and Description |
|---|
ChainMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(InitializationContext context)
Contract initialization.
|
void |
shutdown(ShutdownContext context)
Contract shutdown
|
isDuplicate, processBlock, processInvocation, processRequest, processTransaction, processVoucherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitminProductVersionpublic void init(InitializationContext context)
ContractInvoked once after loading the contract class, before any other callback. Use this callback to initialize long running services required by the contract.
context - the contract contextpublic void shutdown(ShutdownContext context)
ContractInvoked once before destroying the contract class, after any other callback. Use this callback to clean up long running services.
context - the contract context