Package com.azure.storage.blob.models
Class BlobServiceStatistics
java.lang.Object
com.azure.storage.blob.models.BlobServiceStatistics
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlobServiceStatistics>
public final class BlobServiceStatistics
extends Object
implements com.azure.xml.XmlSerializable<BlobServiceStatistics>
Stats for the storage service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlobServiceStatistics
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of BlobServiceStatistics from the XmlReader.static BlobServiceStatistics
Reads an instance of BlobServiceStatistics from the XmlReader.Get the geoReplication property: Geo-Replication information for the Secondary Storage Service.setGeoReplication
(GeoReplication geoReplication) Set the geoReplication property: Geo-Replication information for the Secondary Storage Service.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlobServiceStatistics
public BlobServiceStatistics()Creates an instance of BlobServiceStatistics class.
-
-
Method Details
-
getGeoReplication
Get the geoReplication property: Geo-Replication information for the Secondary Storage Service.- Returns:
- the geoReplication value.
-
setGeoReplication
Set the geoReplication property: Geo-Replication information for the Secondary Storage Service.- Parameters:
geoReplication
- the geoReplication value to set.- Returns:
- the BlobServiceStatistics object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlobServiceStatistics>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlobServiceStatistics>
- Throws:
XMLStreamException
-
fromXml
public static BlobServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of BlobServiceStatistics from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of BlobServiceStatistics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the BlobServiceStatistics.
-
fromXml
public static BlobServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of BlobServiceStatistics from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.rootElementName
- Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.- Returns:
- An instance of BlobServiceStatistics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
XMLStreamException
- If an error occurs while reading the BlobServiceStatistics.
-