wsp-10329 Adding hyper-v replica to HyperV Provider. Server Part.

This commit is contained in:
Alexander Trofimov 2015-04-16 02:13:06 -04:00
parent 414414b11d
commit 41fd1230bf
23 changed files with 5194 additions and 37 deletions

View file

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public class CertificateInfo
{
public string Thumbprint { get; set; }
public string Subject { get; set; }
public string Title { get; set; }
}
}

View file

@ -0,0 +1,9 @@
namespace WebsitePanel.Providers.Virtualization
{
public enum ReplicaFrequency
{
Seconds30 = 30,
Minutes5 = 300,
Minutes15 = 900,
}
}

View file

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public enum ReplicaMode
{
None = 0,
ReplicationEnabled = 1,
IsReplicaServer = 2,
}
}

View file

@ -0,0 +1,23 @@
using System;
namespace WebsitePanel.Providers.Virtualization
{
public class ReplicationDetailInfo
{
public VmReplicationMode Mode { get; set; }
public ReplicationState State { get; set; }
public ReplicationHealth Health { get; set; }
public string HealthDetails { get; set; }
public string PrimaryServerName { get; set; }
public string ReplicaServerName { get; set; }
public DateTime FromTime { get; set; }
public DateTime ToTime { get; set; }
public string AverageSize { get; set; }
public string MaximumSize { get; set; }
public TimeSpan AverageLatency { get; set; }
public int Errors { get; set; }
public int SuccessfulReplications { get; set; }
public string PendingSize { get; set; }
public DateTime LastSynhronizedAt { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public enum ReplicationHealth
{
Critical,
Warning,
Normal,
NotApplicable,
}
}

View file

@ -0,0 +1,25 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public enum ReplicationState
{
Disabled,
Error,
FailOverWaitingCompletion,
FailedOver,
NotApplicable,
ReadyForInitialReplication,
Replicating,
Resynchronizing,
ResynchronizeSuspended,
Suspended,
SyncedReplicationComplete,
WaitingForInitialReplication,
WaitingForStartResynchronize,
}
}

View file

@ -0,0 +1,21 @@
namespace WebsitePanel.Providers.Virtualization
{
[Persistent]
public class VmReplication
{
[Persistent]
public string Thumbprint { get; set; }
[Persistent]
public string VhdToReplicate { get; set; }
[Persistent]
public ReplicaFrequency ReplicaFrequency { get; set; }
[Persistent]
public int AdditionalRecoveryPoints { get; set; }
[Persistent]
public int VSSSnapshotFrequencyHour { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WebsitePanel.Providers.Virtualization
{
public enum VmReplicationMode
{
None,
Primary,
Replica,
TestReplica,
}
}