ServiceContext 类

定义

Represents the service context that the service is operating under.

public class ServiceContext
继承
java.lang.Object
ServiceContext

构造函数

ServiceContext(NodeContext nodeContext, CodePackageActivationContext codePackageActivationContext, String serviceTypeName, URI serviceName, byte[] initializationData, UUID partitionId, long replicaOrInstanceId)

Initializes a new instance of the system.fabric.ServiceContext class.

方法

getCodePackageActivationContext()

Gets the code package activation context.

getInitializationData()

Gets the initialization data of the service.

getNodeContext()

Gets the node context for the node where the service replica is instantiated.

getPartitionId()

Gets the partition id.

getReplicaOrInstanceId()

Gets the stateful service replica id or the stateless service instance id.

getServiceName()

Get the service name.

getServiceTypeName()

Gets the service type name.

getTraceId()

Gets the trace id of the service.

Remarks:The trace id can be used as an identifier for generated traces.

适用于