예제 #1
0
 /// <summary>
 /// KAMONOHASHI管理化のステータス用コンストラクタ。
 /// 決まったstaticメンバしか利用しないようにprivate。
 /// </summary>
 private ContainerStatus(string key, ContainerStatusType type, string name)
 {
     this.Key       = key;
     this.Type      = type;
     this.Name      = name;
     this.IsDefined = true;
 }
예제 #2
0
 /// <summary>
 /// KAMONOHASHI管理外のステータス用コンストラクタ。
 /// </summary>
 public ContainerStatus(string name) : base()
 {
     if (name == "Failed")
     {
         this.Key       = Error.Key;
         this.Type      = Error.Type;
         this.Name      = Error.Name;
         this.IsDefined = Error.IsDefined;
     }
     else
     {
         this.Key       = name;
         this.Type      = ContainerStatusType.Running;
         this.Name      = name;
         this.IsDefined = false;
     }
 }