corda / net.corda.core.context / InvocationOrigin

InvocationOrigin

sealed class InvocationOrigin

Represents the source of an action such as a flow start, an RPC, a shell command etc.

Types

Peer

data class Peer : InvocationOrigin

Origin was a message sent by a Peer.

RPC

data class RPC : InvocationOrigin

Origin was an RPC call.

Scheduled

data class Scheduled : InvocationOrigin

Origin was a scheduled activity.

Service

data class Service : InvocationOrigin

Origin was a Corda Service.

Shell

object Shell : InvocationOrigin

Origin was the Shell.

Functions

principal

abstract fun principal(): Principal

Returns the Principal for a given Actor.

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.

Inheritors

Peer

data class Peer : InvocationOrigin

Origin was a message sent by a Peer.

RPC

data class RPC : InvocationOrigin

Origin was an RPC call.

Scheduled

data class Scheduled : InvocationOrigin

Origin was a scheduled activity.

Service

data class Service : InvocationOrigin

Origin was a Corda Service.

Shell

object Shell : InvocationOrigin

Origin was the Shell.