mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
Revert CORDA-296: added rpc that returns an observable for node state (#2091)
* Revert "CORDA-296: added rpc that returns an observable for node state (#2004)" This reverts commit7d1f7ab
* Revert "CORDA-296: added rpc that returns an observable for node state (#2004)" This reverts commit7d1f7ab
This commit is contained in:
@ -226,10 +226,6 @@ interface CordaRPCOps : RPCOps {
|
||||
/** Returns Node's NodeInfo, assuming this will not change while the node is running. */
|
||||
fun nodeInfo(): NodeInfo
|
||||
|
||||
/** Returns and [Observable] object with future states of the node. */
|
||||
@RPCReturnsObservables
|
||||
fun nodeStateObservable(): Observable<NodeState>
|
||||
|
||||
/**
|
||||
* Returns network's notary identities, assuming this will not change while the node is running.
|
||||
*
|
||||
@ -468,8 +464,3 @@ inline fun <T, A, B, C, D, E, F, reified R : FlowLogic<T>> CordaRPCOps.startTrac
|
||||
*/
|
||||
@CordaSerializable
|
||||
data class DataFeed<out A, B>(val snapshot: A, val updates: Observable<B>)
|
||||
|
||||
@CordaSerializable
|
||||
enum class NodeState {
|
||||
SHUTTING_DOWN
|
||||
}
|
@ -8,13 +8,11 @@ import net.corda.core.crypto.SignableData
|
||||
import net.corda.core.crypto.SignatureMetadata
|
||||
import net.corda.core.crypto.TransactionSignature
|
||||
import net.corda.core.flows.ContractUpgradeFlow
|
||||
import net.corda.core.messaging.NodeState
|
||||
import net.corda.core.node.services.*
|
||||
import net.corda.core.serialization.SerializeAsToken
|
||||
import net.corda.core.transactions.FilteredTransaction
|
||||
import net.corda.core.transactions.SignedTransaction
|
||||
import net.corda.core.transactions.TransactionBuilder
|
||||
import rx.Observable
|
||||
import java.security.PublicKey
|
||||
import java.sql.Connection
|
||||
import java.time.Clock
|
||||
@ -150,9 +148,6 @@ interface ServiceHub : ServicesForResolution {
|
||||
/** The [NodeInfo] object corresponding to our own entry in the network map. */
|
||||
val myInfo: NodeInfo
|
||||
|
||||
/** The [Observable] object used to communicate to RPC clients the state of the node. */
|
||||
val myNodeStateObservable: Observable<NodeState>
|
||||
|
||||
/**
|
||||
* Return the singleton instance of the given Corda service type. This is a class that is annotated with
|
||||
* [CordaService] and will have automatically been registered by the node.
|
||||
|
Reference in New Issue
Block a user