C# Class Microsoft.WindowsAzure.Commands.CloudService.Development.EnableAzureMemcacheRoleCommand

Inheritance: CmdletBase
Afficher le fichier Open project: AzureRT/azure-sdk-tools Class Usage Examples

Private Properties

Свойство Type Description
AddClientDiagnosticLevelToConfig void
CachingConfigurationFactoryMethod void
EnableAzureMemcacheRoleProcess WebRole
EnableMemcache void
ExecuteCmdlet void
IsCacheEnabled bool
IsCacheWorkerRole bool
UpdateWebConfig void
Version180Configuration void

Méthodes publiques

Méthode Description
EnableAzureMemcacheRoleCommand ( ) : System

Private Methods

Méthode Description
AddClientDiagnosticLevelToConfig ( RoleSettings roleSettings ) : void
CachingConfigurationFactoryMethod ( CloudServiceProject cloudServiceProject, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Commands.Utilities.Common.XmlSchema.ServiceDefinitionSchema.ConfigurationSetting &configurationSettings, string sdkVersion ) : void

Factory method to apply memcache required configuration based on the installed SDK version.

EnableAzureMemcacheRoleProcess ( string roleName, string cacheWorkerRoleName, string rootPath ) : WebRole
EnableMemcache ( string roleName, string cacheWorkerRoleName, string &message, CloudServiceProject &cloudServiceProject ) : void

Main entry for enabling memcache.

ExecuteCmdlet ( ) : void
IsCacheEnabled ( Startup startup ) : bool

Checks if memcache is already enabled or not for the given role startup. It does this by checking the role startup task.

IsCacheWorkerRole ( WorkerRole workerRole ) : bool

Checks if the worker role is configured as caching worker role.

UpdateWebConfig ( string roleName, string cacheWorkerRoleName, string webConfigPath ) : void

Updates the web.cloud.config with to auto-discover the cache role.

Version180Configuration ( CloudServiceProject cloudServiceProject, string roleName, bool isWebRole, string cacheWorkerRole, Startup startup, Endpoints endpoints, LocalResources localResources, Commands.Utilities.Common.XmlSchema.ServiceDefinitionSchema.ConfigurationSetting &configurationSettings ) : void

Applies required configuration for enabling cache in SDK 1.8.0 version by: * Add MemcacheShim runtime installation. * Add startup task to install memcache shim on the client side. * Add default memcache internal endpoint. * Add cache diagnostic to local resources. * Add ClientDiagnosticLevel setting to service configuration. * Adjust web.config to enable auto discovery for the caching role.

Method Details

EnableAzureMemcacheRoleCommand() public méthode

public EnableAzureMemcacheRoleCommand ( ) : System
Résultat System