Package com.azure.storage.queue.models
Class QueueServiceStatistics
java.lang.Object
com.azure.storage.queue.models.QueueServiceStatistics
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueServiceStatistics>
public final class QueueServiceStatistics
extends Object
implements com.azure.xml.XmlSerializable<QueueServiceStatistics>
Stats for the storage service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QueueServiceStatistics class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueServiceStatistics
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of QueueServiceStatistics from the XmlReader.static QueueServiceStatistics
Reads an instance of QueueServiceStatistics 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
-
QueueServiceStatistics
public QueueServiceStatistics()Creates an instance of QueueServiceStatistics 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 QueueServiceStatistics object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<QueueServiceStatistics>
- 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<QueueServiceStatistics>
- Throws:
XMLStreamException
-
fromXml
public static QueueServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException Reads an instance of QueueServiceStatistics from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of QueueServiceStatistics 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 QueueServiceStatistics.
-
fromXml
public static QueueServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of QueueServiceStatistics 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 QueueServiceStatistics 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 QueueServiceStatistics.
-