net.corda.node.utilities

## Package net.corda.node.utilities

### Types

ANSIProgressObserver | `class ANSIProgressObserver` This observes the StateMachineManager and follows the progress of FlowLogics until they complete in the order they are added to the StateMachineManager.
ANSIProgressRenderer | `object ANSIProgressRenderer` Knows how to render a ProgressTracker to the terminal using coloured, emoji-fied output. Useful when writing small command line tools, demos, tests etc. Just set the progressTracker field and it will go ahead and start drawing if the terminal supports it. Otherwise it just prints out the name of the step whenever it changes.
AbstractJDBCHashMap | `abstract class AbstractJDBCHashMap<K : Any, V : Any, out T : JDBCHashedTable> : MutableMap<K, V>, AbstractMap<K, V>` A base class for a JDBC table backed hash map that iterates in insertion order by using an ever increasing sequence number on entries. Iterators supports remove() but entries are not really mutable and do not support setValue() method from MutableMap.MutableEntry.
AbstractJDBCHashSet | `abstract class AbstractJDBCHashSet<K : Any, out T : JDBCHashedTable> : MutableSet<K>, AbstractSet<K>` Base class for JDBC backed hash set that delegates to a JDBC backed hash map where the values are all Unit and not actually persisted. Iteration order is order of insertion. Iterators can remove().
AddOrRemove | `enum class AddOrRemove` Enum for when adding/removing something, for example adding or removing an entry in a directory.
AffinityExecutor | `interface AffinityExecutor : Executor` An extended executor interface that supports thread affinity assertions and short circuiting. This can be useful for ensuring code runs on the right thread, and also for unit testing.
CompositeKeyColumnType | `object CompositeKeyColumnType` ColumnType for marshalling to/from database on behalf of CompositeKey.
FiberBox | `class FiberBox<out T>` Modelled on ThreadBox, but with support for waiting that is compatible with Quasar Fibers and MutableClocks.
InstantColumnType | `object InstantColumnType` ColumnType for marshalling to/from database on behalf of java.time.Instant.
JDBCHashMap | `class JDBCHashMap<K : Any, V : Any> : AbstractJDBCHashMap<K, V, BlobMapTable>` A convenient JDBC table backed hash map with iteration order based on insertion order. See AbstractJDBCHashMap for further implementation details.
JDBCHashSet | `class JDBCHashSet<K : Any> : AbstractJDBCHashSet<K, BlobSetTable>` A convenient JDBC table backed hash set with iteration order based on insertion order. See AbstractJDBCHashSet and AbstractJDBCHashMap for further implementation details.
JDBCHashedTable | `open class JDBCHashedTable`
JsonSupport | `object JsonSupport` Utilities and serialisers for working with JSON representations of basic types. This adds Jackson support for the java.time API, some core types, and Kotlin data classes.
LocalDateColumnType | `object LocalDateColumnType` ColumnType for marshalling to/from database on behalf of java.time.LocalDate.
LocalDateTimeColumnType | `object LocalDateTimeColumnType` ColumnType for marshalling to/from database on behalf of java.time.LocalDateTime.
MutableClock | `abstract class MutableClock : Clock` An abstract class with helper methods for a type of Clock that might have its concept of "now" adjusted externally.
PartyColumns | `data class PartyColumns`
PublicKeyColumnType | `object PublicKeyColumnType` ColumnType for marshalling to/from database on behalf of PublicKey.
SecureHashColumnType | `object SecureHashColumnType` ColumnType for marshalling to/from database on behalf of SecureHash.
ServiceIdentityGenerator | `object ServiceIdentityGenerator`
StateRefColumns | `data class StateRefColumns`
StrandLocalTransactionManager | `class StrandLocalTransactionManager` A relatively close copy of the ThreadLocalTransactionManager in Exposed but with the following adjustments to suit our environment:
TestClock | `class TestClock : MutableClock, SerializeAsToken` A Clock that can have the date advanced for use in demos.
TxnNoteColumns | `data class TxnNoteColumns`
UUIDStringColumnType | `object UUIDStringColumnType` ColumnType for marshalling to/from database on behalf of UUID, always using a string representation.

### Extensions for External Classes

java.time.Clock |

### Properties

NODE_DATABASE_PREFIX | `const val NODE_DATABASE_PREFIX: String` Table prefix for all tables owned by the node module.

### Functions

bytesFromBlob | `fun <T : Any> bytesFromBlob(blob: Blob): SerializedBytes<T>`
bytesToBlob | `fun bytesToBlob(value: SerializedBytes<*>, finalizables: MutableList<() -> Unit>): Blob`
compositeKey | `fun <ERROR CLASS>.compositeKey(name: String): <ERROR CLASS>`
configureDatabase | `fun configureDatabase(props: Properties): <ERROR CLASS><Closeable, <ERROR CLASS>>`
createDatabaseTransaction | `fun createDatabaseTransaction(db: <ERROR CLASS>): <ERROR CLASS>`
databaseTransaction | `fun <T> databaseTransaction(db: <ERROR CLASS>, statement: <ERROR CLASS>.() -> T): T`
deserializeFromBlob | `fun <T : Any> deserializeFromBlob(blob: Blob): T`
instant | `fun <ERROR CLASS>.instant(name: String): <ERROR CLASS>`
isolatedTransaction | `fun <T> isolatedTransaction(database: <ERROR CLASS>, block: <ERROR CLASS>.() -> T): T`
localDate | `fun <ERROR CLASS>.localDate(name: String): <ERROR CLASS>`
localDateTime | `fun <ERROR CLASS>.localDateTime(name: String): <ERROR CLASS>`
main | `fun main(args: Array<String>): Unit`
party | `fun <ERROR CLASS>.party(nameColumnName: String, keyColumnName: String): <ERROR CLASS>`
publicKey | `fun <ERROR CLASS>.publicKey(name: String): <ERROR CLASS>` Table column helpers for use with Exposed, as per varchar etc.
secureHash | `fun <ERROR CLASS>.secureHash(name: String): <ERROR CLASS>`
serializeToBlob | `fun serializeToBlob(value: Any, finalizables: MutableList<() -> Unit>): Blob`
stateRef | `fun <ERROR CLASS>.stateRef(txIdColumnName: String, indexColumnName: String): <ERROR CLASS>`
txnNote | `fun <ERROR CLASS>.txnNote(txIdColumnName: String, txnNoteColumnName: String): <ERROR CLASS>`
uuidString | `fun <ERROR CLASS>.uuidString(name: String): <ERROR CLASS>`