CloudSpatialAnchorSessionDiagnostics Class
- java.
lang. Object - com.
microsoft. azure. spatialanchors. CloudSpatialAnchorSessionDiagnostics
- com.
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. |
Session |
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
Creates a manifest of log files and submission information to be uploaded.
Parameters:
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:
setLogDirectory
public void setLogDirectory(String value)
Directory into which temporary log files and manifests are saved.
Parameters:
setLogLevel
public void setLogLevel(SessionLogLevel value)
Level of tracing to log.
Parameters:
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:
submitManifestAsync
public Future submitManifestAsync(final String manifestPath)
Submits a diagnostics manifest and cleans up its resources.
Parameters: