public NetworkMapCacheBase
Subset of interface NetworkMapCache
that doesn't depend on an interface IdentityService
.
Modifier and Type | Interface and Description |
---|---|
static class |
NetworkMapCacheBase.DefaultImpls
Subset of
interface NetworkMapCache that doesn't depend on an interface IdentityService . |
Modifier and Type | Method and Description |
---|---|
void |
clearNetworkMapCache()
Clear all network map data from local node cache.
|
java.util.List<net.corda.core.node.NodeInfo> |
getAllNodes()
Return all
class NodeInfo s the node currently is aware of (including ourselves). |
NonExistentClass |
getChanged()
Tracks changes to the network map cache.
|
NodeInfo |
getNodeByAddress(NetworkHostAndPort address)
Look up the node info for a host and port.
|
NodeInfo |
getNodeByLegalName(CordaX500Name name)
Return a
class NodeInfo which has the given legal name for one of its identities, or null if no such node is found. |
CordaFuture<java.lang.Void> |
getNodeReady()
Future to track completion of the NetworkMapService registration.
|
java.util.List<net.corda.core.node.NodeInfo> |
getNodesByLegalIdentityKey(java.security.PublicKey identityKey)
Look up the node information entries for a specific identity key.
Note that normally there will be only one node for a key, but for clusters of nodes or distributed services there
can be multiple nodes.
|
java.util.List<net.corda.core.node.NodeInfo> |
getNodesByLegalName(CordaX500Name name)
Return a list of
class NodeInfo s which have the given legal name for one of their identities, or an empty list if no
such nodes are found. |
Party |
getNotary(CordaX500Name name)
Look up a well known identity of notary by legal name.
|
java.util.List<net.corda.core.identity.Party> |
getNotaryIdentities()
A list of notary services available on the network.
|
PartyInfo |
getPartyInfo(Party party)
Returns information about the party, which may be a specific node or a service
|
Party |
getPeerByLegalName(CordaX500Name name)
Look up the well known identity of a legal name. This should be used in preference
to well known identity lookup in the identity service where possible, as the network map is the authoritative
source of well known identities.
|
PartyAndCertificate |
getPeerCertificateByLegalName(CordaX500Name name)
Look up a well known identity (including certificate path) of a legal name. This should be used in preference
to well known identity lookup in the identity service where possible, as the network map is the authoritative
source of well known identities.
|
boolean |
isNotary(Party party)
Returns true if and only if the given
class Party is a notary, which is defined by the network parameters. |
boolean |
isValidatingNotary(Party party)
Returns true if and only if the given
class Party is validating notary. For every party that is a validating notary,
NetworkMapCacheBase.isNotary is also true. |
DataFeed<java.util.List,net.corda.core.node.services.NetworkMapCache.MapChange> |
track()
Atomically get the current party nodes and a stream of updates. Note that the Observable buffers updates until the
first subscriber is registered so as to avoid racing with early updates.
|
java.util.List<net.corda.core.identity.Party> getNotaryIdentities()
A list of notary services available on the network.
Note that the identities are sorted based on legal name, and the ordering might change once new notaries are introduced.
NonExistentClass getChanged()
Tracks changes to the network map cache.
CordaFuture<java.lang.Void> getNodeReady()
Future to track completion of the NetworkMapService registration.
DataFeed<java.util.List,net.corda.core.node.services.NetworkMapCache.MapChange> track()
Atomically get the current party nodes and a stream of updates. Note that the Observable buffers updates until the first subscriber is registered so as to avoid racing with early updates.
NodeInfo getNodeByLegalName(CordaX500Name name)
Return a class NodeInfo
which has the given legal name for one of its identities, or null if no such node is found.
NetworkMapCacheBase.getNodesByLegalName
instead.class NodeInfo
java.util.List<net.corda.core.node.NodeInfo> getNodesByLegalName(CordaX500Name name)
Return a list of class NodeInfo
s which have the given legal name for one of their identities, or an empty list if no
such nodes are found.
Normally there is at most one node for a legal name, but for distributed service identities (such as with a notary cluster) there can be multiple nodes sharing the same identity.
class NodeInfo
NodeInfo getNodeByAddress(NetworkHostAndPort address)
Look up the node info for a host and port.
PartyAndCertificate getPeerCertificateByLegalName(CordaX500Name name)
Look up a well known identity (including certificate path) of a legal name. This should be used in preference to well known identity lookup in the identity service where possible, as the network map is the authoritative source of well known identities.
Party getPeerByLegalName(CordaX500Name name)
Look up the well known identity of a legal name. This should be used in preference to well known identity lookup in the identity service where possible, as the network map is the authoritative source of well known identities.
java.util.List<net.corda.core.node.NodeInfo> getAllNodes()
Return all class NodeInfo
s the node currently is aware of (including ourselves).
class NodeInfo
java.util.List<net.corda.core.node.NodeInfo> getNodesByLegalIdentityKey(java.security.PublicKey identityKey)
Look up the node information entries for a specific identity key. Note that normally there will be only one node for a key, but for clusters of nodes or distributed services there can be multiple nodes.
PartyInfo getPartyInfo(Party party)
Returns information about the party, which may be a specific node or a service
Party getNotary(CordaX500Name name)
Look up a well known identity of notary by legal name.
boolean isNotary(Party party)
Returns true if and only if the given class Party
is a notary, which is defined by the network parameters.
class Party
boolean isValidatingNotary(Party party)
Returns true if and only if the given class Party
is validating notary. For every party that is a validating notary,
NetworkMapCacheBase.isNotary
is also true.
void clearNetworkMapCache()
Clear all network map data from local node cache.