public abstract class CloudTracing extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addTracingInterceptor(CloudTracingInterceptor cloudTracingInterceptor)
Add a tracing interceptor to be notified of changes.
|
static void |
configuration(String source,
String name,
String value) |
static void |
enter(String invocationId,
Object instance,
String method,
HashMap<String,Object> parameters) |
static void |
error(String invocationId,
Exception ex) |
static void |
exit(String invocationId,
Object result) |
static List<CloudTracingInterceptor> |
getInterceptors()
Gets the collection of tracing interceptors to notify.
|
static boolean |
getIsEnabled()
Gets the value indicating whether tracing is enabled.
|
static long |
getNextInvocationId() |
static void |
information(String message) |
static void |
information(String message,
Object... parameters) |
static void |
receiveResponse(String invocationId,
org.apache.http.HttpResponse response) |
static boolean |
removeTracingInterceptor(CloudTracingInterceptor cloudTracingInterceptor)
Remove a tracing interceptor from change notifications.
|
static void |
sendRequest(String invocationId,
org.apache.http.HttpRequest request) |
static void |
setIsEnabled(boolean enabled)
Sets the value indicating whether tracing is enabled.
|
public static List<CloudTracingInterceptor> getInterceptors()
public static boolean getIsEnabled()
public static void setIsEnabled(boolean enabled)
enabled - Boolean value indicating if tracing is enabled.public static void addTracingInterceptor(CloudTracingInterceptor cloudTracingInterceptor)
cloudTracingInterceptor - The tracing interceptor.public static boolean removeTracingInterceptor(CloudTracingInterceptor cloudTracingInterceptor)
cloudTracingInterceptor - The tracing interceptor.public static long getNextInvocationId()
public static void information(String message)
public static void enter(String invocationId, Object instance, String method, HashMap<String,Object> parameters)
public static void sendRequest(String invocationId, org.apache.http.HttpRequest request)
public static void receiveResponse(String invocationId, org.apache.http.HttpResponse response)
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/