public class MockNetworkNotarySpec
The spec for a notary which will used by the class MockNetwork
to automatically start a notary node. This notary will
become part of the network parameters used by all the nodes.
class MockNetwork
Constructor and Description |
---|
MockNetworkNotarySpec(CordaX500Name name,
boolean validating)
The spec for a notary which will used by the
class MockNetwork to automatically start a notary node. This notary will
become part of the network parameters used by all the nodes. |
MockNetworkNotarySpec(CordaX500Name name,
boolean validating,
java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
CordaX500Name |
component1()
The name of the notary node.
|
boolean |
component2()
Boolean for whether the notary is validating or non-validating.
|
MockNetworkNotarySpec |
copy(CordaX500Name name,
boolean validating)
The spec for a notary which will used by the
class MockNetwork to automatically start a notary node. This notary will
become part of the network parameters used by all the nodes. |
boolean |
equals(java.lang.Object p) |
java.lang.String |
getClassName()
String the optional name of a notary service class to load. If null, a builtin notary is loaded.
|
CordaX500Name |
getName()
The name of the notary node.
|
boolean |
getValidating()
Boolean for whether the notary is validating or non-validating.
|
int |
hashCode() |
void |
setClassName(java.lang.String p)
String the optional name of a notary service class to load. If null, a builtin notary is loaded.
|
java.lang.String |
toString() |
public MockNetworkNotarySpec(CordaX500Name name, boolean validating)
The spec for a notary which will used by the class MockNetwork
to automatically start a notary node. This notary will
become part of the network parameters used by all the nodes.
name
- The name of the notary node.validating
- Boolean for whether the notary is validating or non-validating.class MockNetwork
public MockNetworkNotarySpec(CordaX500Name name, boolean validating, java.lang.String className)
public java.lang.String getClassName()
String the optional name of a notary service class to load. If null, a builtin notary is loaded.
public void setClassName(java.lang.String p)
String the optional name of a notary service class to load. If null, a builtin notary is loaded.
public CordaX500Name getName()
The name of the notary node.
public boolean getValidating()
Boolean for whether the notary is validating or non-validating.
public CordaX500Name component1()
The name of the notary node.
public boolean component2()
Boolean for whether the notary is validating or non-validating.
public MockNetworkNotarySpec copy(CordaX500Name name, boolean validating)
The spec for a notary which will used by the class MockNetwork
to automatically start a notary node. This notary will
become part of the network parameters used by all the nodes.
class MockNetwork
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)