Class OperationContext
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationContext
-
public class OperationContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,Object>messagePropertiesprivate IAzureMessagermessagerprivate static OperationContextNULLprivate Operationoperationprivate Map<String,String>telemetryProperties
-
Constructor Summary
Constructors Constructor Description OperationContext(Operation operation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperationContextaction()static OperationContextcurrent()OperationContextgetAction()IAzureMessagergetMessager()private static OperationContextgetNull(Operation operation)OperationContextgetParent()StringgetProperty(String key)voidsetMessageProperty(String key, String val)voidsetTelemetryProperties(Map<String,String> properties)voidsetTelemetryProperty(String key, String val)
-
-
-
Field Detail
-
NULL
private static final OperationContext NULL
-
messager
private IAzureMessager messager
-
-
Method Detail
-
getMessager
@Nonnull public IAzureMessager getMessager()
-
getAction
@Nonnull public OperationContext getAction()
-
getParent
@Nullable public OperationContext getParent()
-
current
@Nonnull public static OperationContext current()
-
action
@Nonnull public static OperationContext action()
-
getNull
@Nonnull private static OperationContext getNull(@Nullable Operation operation)
-
-