public class ServiceProperties extends Object
QueueContract.getServiceProperties() and
QueueContract.getServiceProperties(QueueServiceOptions) and passed to
the server with calls to
QueueContract.setServiceProperties(ServiceProperties) and
QueueContract.setServiceProperties(ServiceProperties, QueueServiceOptions)
.
See the Get Queue Service Properties and Set Queue Service Properties documentation on MSDN for details of the underlying Queue Service REST API operations. See the Storage Analytics Overview documentation on MSDN for more information about logging and metrics.
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceProperties.Logging
This inner class represents the settings for logging on the Queue service
of the storage account.
|
static class |
ServiceProperties.Metrics
This inner class represents the settings for metrics on the Queue service
of the storage account.
|
static class |
ServiceProperties.RetentionPolicy
This inner class represents the retention policy settings for logging or
metrics on the Queue service of the storage account.
|
| Constructor and Description |
|---|
ServiceProperties() |
| Modifier and Type | Method and Description |
|---|---|
ServiceProperties.Logging |
getLogging()
Gets a reference to the
ServiceProperties.Logging instance in this
ServiceProperties instance. |
ServiceProperties.Metrics |
getMetrics()
Gets a reference to the
ServiceProperties.Metrics instance in this
ServiceProperties instance. |
ServiceProperties |
setLogging(ServiceProperties.Logging logging)
Sets the
ServiceProperties.Logging instance in this ServiceProperties
instance. |
ServiceProperties |
setMetrics(ServiceProperties.Metrics metrics)
Sets the
ServiceProperties.Metrics instance in this ServiceProperties
instance. |
public ServiceProperties.Logging getLogging()
ServiceProperties.Logging instance in this
ServiceProperties instance.
This ServiceProperties instance holds a local copy of the Queue
service properties when returned by a call to QueueContract
.getServiceProperties.
Note that changes to this value are not reflected in the Queue service
properties until they have been set on the storage account with a call to
QueueContract.setServiceProperties.
ServiceProperties.Logging instance in this
ServiceProperties instance.public ServiceProperties setLogging(ServiceProperties.Logging logging)
ServiceProperties.Logging instance in this ServiceProperties
instance.
Note that changes to this value are not reflected in the Queue service
properties until they have been set on the storage account with a call to
QueueContract.setServiceProperties.
logging - The ServiceProperties.Logging instance to set in this
ServiceProperties instance.ServiceProperties instance.public ServiceProperties.Metrics getMetrics()
ServiceProperties.Metrics instance in this
ServiceProperties instance.
This ServiceProperties instance holds a local copy of the Queue
service properties when returned by a call to QueueContract
.getServiceProperties.
Note that changes to this value are not reflected in the Queue service
properties until they have been set on the storage account with a call to
QueueContract.setServiceProperties.
ServiceProperties.Metrics instance in this
ServiceProperties instance.public ServiceProperties setMetrics(ServiceProperties.Metrics metrics)
ServiceProperties.Metrics instance in this ServiceProperties
instance.
Note that changes to this value are not reflected in the Queue service
properties until they have been set on the storage account with a call to
QueueContract.setServiceProperties.
metrics - The ServiceProperties.Metrics instance to set in this
ServiceProperties instance.ServiceProperties instance./**
* 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.
*/