core.node / AbstractNode

# AbstractNode

`abstract class AbstractNode`

A base node implementation that can be customised either for production (with real implementations that do real I/O), or a mock implementation suitable for unit test environments.

### Constructors

<init> | `AbstractNode(dir: Path, configuration: NodeConfiguration, initialNetworkMapAddress: NodeInfo?, advertisedServices: Set<ServiceType>, platformClock: Clock)` A base node implementation that can be customised either for production (with real implementations that do real I/O), or a mock implementation suitable for unit test environments.

### Properties

_servicesThatAcceptUploads | `val _servicesThatAcceptUploads: ArrayList<AcceptsFileUpload>`
advertisedServices | `val advertisedServices: Set<ServiceType>`
api | `lateinit var api: APIServer`
configuration | `val configuration: NodeConfiguration`
dir | `val dir: Path`
identity | `lateinit var identity: IdentityService`
inNodeNetworkMapService | `var inNodeNetworkMapService: NetworkMapService?`
inNodeTimestampingService | `var inNodeTimestampingService: NodeTimestamperService?`
info | `val info: NodeInfo`
initialNetworkMapAddress | `val initialNetworkMapAddress: NodeInfo?`
interestRatesService | `lateinit var interestRatesService: Service`
keyManagement | `lateinit var keyManagement: E2ETestKeyManagementService`
log | `abstract val log: <ERROR CLASS>`
net | `lateinit var net: MessagingService`
networkMapSeq | `var networkMapSeq: Long` Sequence number of changes sent to the network map service, when registering/de-registering this node
networkMapServiceCallTimeout | `val networkMapServiceCallTimeout: Duration`
platformClock | `val platformClock: Clock`
serverThread | `abstract val serverThread: AffinityExecutor`
services | `val services: ServiceHub`
servicesThatAcceptUploads | `val servicesThatAcceptUploads: List<AcceptsFileUpload>`
smm | `lateinit var smm: StateMachineManager`
storage | `lateinit var storage: StorageService`
wallet | `lateinit var wallet: WalletService`

### Functions

constructStorageService | `open fun constructStorageService(attachments: NodeAttachmentService, checkpointStorage: CheckpointStorage, keypair: KeyPair, identity: Party): StorageServiceImpl`
findMyLocation | `open fun findMyLocation(): PhysicalLocation?`
initialiseStorageService | `open fun initialiseStorageService(dir: Path): StorageService`
makeIdentityService | `open fun makeIdentityService(): IdentityService`
makeInterestRatesOracleService | `open fun makeInterestRatesOracleService(): Unit`
makeMessagingService | `abstract fun makeMessagingService(): MessagingService`
makeNetworkMapService | `open fun makeNetworkMapService(): Unit`
makeTimestampingService | `open fun makeTimestampingService(): Unit`
start | `open fun start(): AbstractNode`
startMessagingService | `abstract fun startMessagingService(): Unit`
stop | `open fun stop(): Unit`

### Companion Object Properties

PRIVATE_KEY_FILE_NAME | `val PRIVATE_KEY_FILE_NAME: String`
PUBLIC_IDENTITY_FILE_NAME | `val PUBLIC_IDENTITY_FILE_NAME: String`

### Inheritors

MockNode | `class MockNode : AbstractNode`
Node | `class Node : AbstractNode` A Node manages a standalone server that takes part in the P2P network. It creates the services found in ServiceHub, loads important data off disk and starts listening for connections.