Exemplo n.º 1
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return(TargetObject.GetType() == typeof(ZAwsEc2) &&
            ((ZAwsEc2)TargetObject).Id == Ec2.Id &&
            ((ZAwsEc2)TargetObject).AssociatedIP != null &&
            ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running);
 }
Exemplo n.º 2
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     if (TargetObject.GetType() == typeof(ZAwsEc2) && TargetObject.Name == Ec2Name && ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running)
     {
         try
         {
             ((ZAwsEc2)TargetObject).SshClient.SendLine("echo \"Testing if SSH is ready.\"");
             return(true);
         }
         catch
         {
             Program.TraceLine("Fail, will try again very soon.");
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 3
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return TargetObject.GetType() == typeof(ZAwsEc2)
         && ((ZAwsEc2)TargetObject).Id == Ec2.Id
         && ((ZAwsEc2)TargetObject).AssociatedIP != null
         && ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running;
 }
Exemplo n.º 4
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return TargetObject.GetType() == typeof(ZAwsSpotRequest)
         && TargetObject.Id == SpotRequestId
         && !string.IsNullOrWhiteSpace(((ZAwsSpotRequest)TargetObject).InstanceId);
 }
Exemplo n.º 5
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     if (TargetObject.GetType() == typeof(ZAwsEc2) && TargetObject.Name == Ec2Name && ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running)
     {
         try
         {
             ((ZAwsEc2)TargetObject).SshClient.SendLine("echo \"Testing if SSH is ready.\"");
             return true;
         }
         catch
         {
             Program.TraceLine("Fail, will try again very soon.");
             return false;
         }
     }
     else
     {
         return false;
     }
 }
Exemplo n.º 6
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return TargetObject.GetType() == typeof(ZAwsEc2) && TargetObject.Id == SpotRequest.InstanceId && ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running;
 }
Exemplo n.º 7
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return TargetObject.GetType() == typeof(ZAwsElasticIp) && !((ZAwsElasticIp)TargetObject).Associated && Ec2.Status == ZAwsEc2.Ec2Status.Running;
 }
Exemplo n.º 8
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return(TargetObject.GetType() == typeof(ZAwsElasticIp) && !((ZAwsElasticIp)TargetObject).Associated && Ec2.Status == ZAwsEc2.Ec2Status.Running);
 }
Exemplo n.º 9
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return(TargetObject.GetType() == typeof(ZAwsEc2) && TargetObject.Id == SpotRequest.InstanceId && ((ZAwsEc2)TargetObject).Status == ZAwsEc2.Ec2Status.Running);
 }
Exemplo n.º 10
0
 internal override bool WillHandle(ZAwsObject TargetObject)
 {
     return(TargetObject.GetType() == typeof(ZAwsSpotRequest) &&
            TargetObject.Id == SpotRequestId &&
            !string.IsNullOrWhiteSpace(((ZAwsSpotRequest)TargetObject).InstanceId));
 }