C# Class CouchHostWorkerRole.WorkerRole

Inheritance: RoleEntryPoint
Show file Open project: CloudMetal/Windows-Azure-CouchDB

Public Methods

Method Description
OnStart ( ) : bool
OnStop ( ) : void
Run ( ) : void

Private Methods

Method Description
ContainerNameFromRoleId ( string roleId ) : string
CopyCouchFiles ( String couchInstallPath ) : void
CopyNodeFiles ( string nodePath, string nodeWebAppPath, string nodeInstallPath ) : void
CreateCouchDataDirs ( String vhdRootPath, string couchInstallPath, string &couchDataPath, string &couchLogPath ) : void
CreateCouchStorageVhd ( ) : String
ExecuteShellCommand ( String cmd, String args, bool waitForExit, String workingDir = null ) : Process
InitDiagnostics ( ) : void
InitRoleInfo ( ) : void
InitializeLogFile ( string vhdRootPath ) : void
Log ( string message, string category ) : void
SetupCouchEnvironment ( string vhdRootPath, string couchInstallPath, string couchDataPath, string couchLogPath ) : void
SetupReplication ( string replicationSrcAddress, bool bInitiate ) : bool
StartCouch ( ) : void
StartNode ( ) : void
UpdateReplication ( ) : void
_CouchProcess_Exited ( object sender, EventArgs e ) : void
_NodeProcess_Exited ( object sender, EventArgs e ) : void
processToExecuteCommand_ErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void
processToExecuteCommand_OutputDataReceived ( object sender, DataReceivedEventArgs e ) : void

Method Details

OnStart() public method

public OnStart ( ) : bool
return bool

OnStop() public method

public OnStop ( ) : void
return void

Run() public method

public Run ( ) : void
return void