CloudSpatialAnchorSessionDiagnostics Class

  • java.lang.Object
    • com.microsoft.azure.spatialanchors.CloudSpatialAnchorSessionDiagnostics

public class CloudSpatialAnchorSessionDiagnostics

Use this class to configure session diagnostics that can be collected and submitted to improve system quality.

Method Summary

Modifier and Type Method and Description
Future<String> createManifestAsync(final String description)

Creates a manifest of log files and submission information to be uploaded.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

boolean getImagesEnabled()

Whether images should be logged.

String getLogDirectory()

Directory into which temporary log files and manifests are saved.

SessionLogLevel getLogLevel()

Level of tracing to log.

int getMaxDiskSizeInMB()

Approximate maximum disk space to be used, in megabytes. When this value is set to zero, no information will be written to disk.

void setImagesEnabled(boolean value)

Whether images should be logged.

void setLogDirectory(String value)

Directory into which temporary log files and manifests are saved.

void setLogLevel(SessionLogLevel value)

Level of tracing to log.

void setMaxDiskSizeInMB(int value)

Approximate maximum disk space to be used, in megabytes. When this value is set to zero, no information will be written to disk.

Future submitManifestAsync(final String manifestPath)

Submits a diagnostics manifest and cleans up its resources.

Method Details

createManifestAsync

public Future createManifestAsync(final String description)

Creates a manifest of log files and submission information to be uploaded.

Parameters:

description - Description to be added to the diagnostics manifest.

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getImagesEnabled

public boolean getImagesEnabled()

Whether images should be logged.

getLogDirectory

public String getLogDirectory()

Directory into which temporary log files and manifests are saved.

getLogLevel

public SessionLogLevel getLogLevel()

Level of tracing to log.

getMaxDiskSizeInMB

public int getMaxDiskSizeInMB()

Approximate maximum disk space to be used, in megabytes. When this value is set to zero, no information will be written to disk.

setImagesEnabled

public void setImagesEnabled(boolean value)

Whether images should be logged.

Parameters:

value - The new value.

setLogDirectory

public void setLogDirectory(String value)

Directory into which temporary log files and manifests are saved.

Parameters:

value - The new value.

setLogLevel

public void setLogLevel(SessionLogLevel value)

Level of tracing to log.

Parameters:

value - The new value.

setMaxDiskSizeInMB

public void setMaxDiskSizeInMB(int value)

Approximate maximum disk space to be used, in megabytes. When this value is set to zero, no information will be written to disk.

Parameters:

value - The new value.

submitManifestAsync

public Future submitManifestAsync(final String manifestPath)

Submits a diagnostics manifest and cleans up its resources.

Parameters:

manifestPath - Path to the manifest file to submit.

Applies to