public final class ServiceProperties extends Object
| Constructor and Description |
|---|
ServiceProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultServiceVersion() |
LoggingProperties |
getLogging() |
MetricsProperties |
getMetrics() |
static ServiceProperties |
readServicePropertiesFromStream(InputStream inStream,
OperationContext opContext)
Deserializes the ServiceProperties object from an input stream.
|
byte[] |
serializeToByteArray(OperationContext opContext)
Writes the contents of the ServiceProperties to the stream in xml format.
|
void |
setDefaultServiceVersion(String defaultServiceVersion) |
void |
setLogging(LoggingProperties logging) |
void |
setMetrics(MetricsProperties metrics) |
public static ServiceProperties readServicePropertiesFromStream(InputStream inStream, OperationContext opContext) throws XMLStreamException, StorageException
inStream - the stream to read from.opContext - an object used to track the execution of the operationXMLStreamException - if the xml is invalid.StorageException - if unexpected xml is found.public String getDefaultServiceVersion()
public LoggingProperties getLogging()
public MetricsProperties getMetrics()
public byte[] serializeToByteArray(OperationContext opContext) throws XMLStreamException, StorageException
opContext - a tracking object for the requestXMLStreamException - if there is an error writing content to the stream.StorageExceptionpublic void setDefaultServiceVersion(String defaultServiceVersion)
defaultServiceVersion - the defaultServiceVersion to setpublic void setLogging(LoggingProperties logging)
logging - the logging to setpublic void setMetrics(MetricsProperties metrics)
metrics - the metrics to set/**
* 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.
*/