public final class ManagementConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AZURE_TEST_MODE
Defines the if the tests are run mocked.
|
static String |
CLOUD_SERVICE_NAME
Defines the cloud service name for the scheduler.
|
static String |
JOB_COLLECTION_NAME
Defines the job collection name for the scheduler.
|
static String |
KEYSTORE_PASSWORD
Defines the password of the keystore.
|
static String |
KEYSTORE_PATH
Defines the path of the keystore.
|
static String |
KEYSTORE_TYPE
Defines the type of the keystore.
|
static String |
SUBSCRIPTION_CLOUD_CREDENTIALS
Defines the subscription cloud credentials object of the Windows Azure
account.
|
static String |
SUBSCRIPTION_ID
Defines the subscription ID of the Windows Azure account.
|
static String |
URI
Defines the URI of service management.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
configure(String profile,
Configuration configuration,
URI uri,
String subscriptionId,
String token)
Creates a service management configuration with specified parameters.
|
static Configuration |
configure(String profile,
Configuration configuration,
URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword)
Creates a service management configuration with specified parameters.
|
static Configuration |
configure(String profile,
Configuration configuration,
URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword,
com.microsoft.windowsazure.core.utils.KeyStoreType keyStoreType)
Creates a service management configuration with specified parameters.
|
static Configuration |
configure(String profile,
Configuration configuration,
URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword,
com.microsoft.windowsazure.core.utils.KeyStoreType keyStoreType,
String cloudServiceName,
String jobCollectionName)
Creates a service management configuration for the scheduler.
|
static Configuration |
configure(String profile,
URI uri,
String subscriptionId,
String token) |
static Configuration |
configure(URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword)
Creates a service management configuration using specified URI, and
subscription ID.
|
static Configuration |
configure(URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword,
com.microsoft.windowsazure.core.utils.KeyStoreType type)
Creates a service management configuration using specified URI, and
subscription ID.
|
static Configuration |
configure(URI uri,
String subscriptionId,
String keyStoreLocation,
String keyStorePassword,
com.microsoft.windowsazure.core.utils.KeyStoreType type,
String cloudServiceName,
String jobCollectionName)
Creates a service management configuration using specified URI, and
subscription ID.
|
static boolean |
isPlayback()
Check current test mode (record/playback)
|
public static final String SUBSCRIPTION_CLOUD_CREDENTIALS
public static final String KEYSTORE_PATH
public static final String KEYSTORE_PASSWORD
public static final String KEYSTORE_TYPE
public static final String URI
public static final String AZURE_TEST_MODE
public static final String SUBSCRIPTION_ID
public static final String CLOUD_SERVICE_NAME
public static final String JOB_COLLECTION_NAME
public static Configuration configure(URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword) throws IOException
uri - A URI object that represents the URI of the
service end point.subscriptionId - A String object that represents the subscription
ID.keyStoreLocation - A String object that represents the key store
location.keyStorePassword - A String object that represents the key store
password.Configuration object that can be
used when creating an instance of the
ManagementContract class.IOException - Signals that an I/O exception has occurred.public static Configuration configure(URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword, com.microsoft.windowsazure.core.utils.KeyStoreType type) throws IOException
uri - the urisubscriptionId - A String object that represents the subscription
ID.keyStoreLocation - A String object that represents the key store
location.keyStorePassword - A String object that represents the key store
password.type - Type of key store.Configuration object that can be
used when creating an instance of the
ManagementContract class.IOException - Signals that an I/O exception has occurred.public static Configuration configure(URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword, com.microsoft.windowsazure.core.utils.KeyStoreType type, String cloudServiceName, String jobCollectionName) throws IOException
uri - A URI object that represents URI of the service
end point.subscriptionId - A String object that represents the subscription
ID.keyStoreLocation - A String object that represents the key store
location.keyStorePassword - A String object that represents the key store
password.type - Type of key store.cloudServiceName - for
A String object that represents the cloud service name
for scheduler job.jobCollectionName - A String object that represents the job collection
name for scheduler job.Configuration object that can be
used when creating an instance of the
ManagementContract class.IOException - If the key store location or its contents is invalid.public static Configuration configure(String profile, Configuration configuration, URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword) throws IOException
profile - A String object that represents the profile.configuration - A previously instantiated Configuration object.uri - A URI object that represents the URI of the
service end point.subscriptionId - A String object that represents the subscription
ID.keyStoreLocation - the key store locationkeyStorePassword - A String object that represents the password of
the keystore.Configuration object that can be used when
creating an instance of the ManagementContract
class.IOException - Signals that an I/O exception has occurred.public static Configuration configure(String profile, Configuration configuration, URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword, com.microsoft.windowsazure.core.utils.KeyStoreType keyStoreType) throws IOException
profile - A String object that represents the profile.configuration - A previously instantiated Configuration object.uri - A URI object that represents the URI of the service
end point.subscriptionId - A String object that represents the subscription
ID.keyStoreLocation - the key store locationkeyStorePassword - A String object that represents the password of
the keystore.keyStoreType - The type of key store.Configuration object that can be used when
creating an instance of the ManagementContract
class.IOException - Signals that an I/O exception has occurred.public static Configuration configure(String profile, Configuration configuration, URI uri, String subscriptionId, String keyStoreLocation, String keyStorePassword, com.microsoft.windowsazure.core.utils.KeyStoreType keyStoreType, String cloudServiceName, String jobCollectionName) throws IOException
profile - A String object that represents the profile.configuration - A previously instantiated Configuration object.uri - A URI object that represents the URI of the service
end point.subscriptionId - A String object that represents the subscription
ID.keyStoreLocation - A String object that represents the key store locationkeyStorePassword - A String object that represents the password of
the keystore.keyStoreType - The type of key store.cloudServiceName - A String object that represents the name of the cloud service.jobCollectionName - A String object that represents the name of the job collection.Configuration object that can be used when
creating an instance of the ManagementContract
class.IOException - Signals that an I/O exception has occurred.public static Configuration configure(String profile, URI uri, String subscriptionId, String token) throws IOException
IOExceptionpublic static Configuration configure(String profile, Configuration configuration, URI uri, String subscriptionId, String token) throws IOException
profile - A String object that represents the profile.configuration - A previously instantiated Configuration object.uri - A URI object that represents the URI of the
service end point.subscriptionId - A String object that represents the subscription
ID.
the keystore.token - The authentication tokenConfiguration object that can be used when
creating an instance of the ManagementContract
class.IOException - Signals that an I/O exception has occurred.public static boolean isPlayback()
/**
* 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.
*/