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, processVoucher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
minProductVersion
public void init(InitializationContext context)
Contract
Invoked 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)
Contract
Invoked once before destroying the contract class, after any other callback. Use this callback to clean up long running services.
context
- the contract context