C# 클래스 Microsoft.WindowsAzure.Commands.CloudService.Development.EnableAzureMemcacheRoleCommand

상속: CmdletBase
파일 보기 프로젝트 열기: AzureRT/azure-sdk-tools 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddClientDiagnosticLevelToConfig void
CachingConfigurationFactoryMethod void
EnableAzureMemcacheRoleProcess WebRole
EnableMemcache void
ExecuteCmdlet void
IsCacheEnabled bool
IsCacheWorkerRole bool
UpdateWebConfig void
Version180Configuration void

공개 메소드들

메소드 설명
EnableAzureMemcacheRoleCommand ( ) : System

비공개 메소드들

메소드 설명
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.

메소드 상세

EnableAzureMemcacheRoleCommand() 공개 메소드

public EnableAzureMemcacheRoleCommand ( ) : System
리턴 System