public ApCreateKeyPairRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public AbstractApplicationRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbGetApplicationInstancesRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
        private string FindInstanceId(string ipAddress)
        {
            try
            {
                ApDashboardService service = new ApDashboardService();
                MonoscapeCredentials credentials = new MonoscapeCredentials(Settings.MonoscapeAccessKey, Settings.MonoscapeSecretKey);
                ApDescribeInstancesRequest request = new ApDescribeInstancesRequest(credentials);
                ApDescribeInstancesResponse response = service.DescribeInstances(request);

                foreach (Instance instance in response.Instances)
                {
                    if (instance.IpAddress.Equals(ipAddress))
                        return instance.InstanceId;
                }
            }
            catch (Exception)
            {
                Log.Error(this, "Could not find Instance ID of " + ipAddress);
            }
            return null;
        }
 public ApDescribeScalingHistoryRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public AbstractApplicationRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #7
0
 public EchoRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public NcDescribeApplicationsRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbGetApplicationScaleRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApRebootInstanceRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApAllocateAddressRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #12
0
 public FileTransferRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public NcDeployApplicationRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApRunInstancesRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbGetRequestQueueRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbRemoveRequestFromQueueRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #17
0
 public EchoRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbGetRoutingMeshRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #19
0
 public ApAuthorizeRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public LbRemoveApplicationInstanceRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApGetConfigurationSettingsRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #22
0
 public FileTransferRequest(MonoscapeCredentials credentials) : base(credentials)
 {
 }
 public ApDescribeImagesRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApUnSubscribeNodeRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
Beispiel #25
0
 public AbstractRequest(MonoscapeCredentials credentials)
 {
     Credentials = credentials;
 }
Beispiel #26
0
        private void SubscribeToApplicationGrid()
        {
            try
            {
                Console.WriteLine("Subscribing to Application Grid at: " + Settings.ApplicationGridEndPointURL);

                MonoscapeCredentials credentials = new MonoscapeCredentials(Settings.MonoscapeAccessKey, Settings.MonoscapeSecretKey);
                ApSubscribeNodeRequest request = new ApSubscribeNodeRequest(credentials);
                IPAddress hostIp = MonoscapeUtil.FindHostIpAddress();
                request.IpAddress = hostIp.ToString();
                request.IpAddress_ = hostIp;
                request.ApplicationGridServiceUrl = Settings.ApplicationGridServiceUrl;
                request.FileTransferServiceUrl = Settings.FileServerServiceUrl + "/wsHttp";
                IApNodeControllerService channel = EndPoints.GetApNodeControllerService();
                ApSubscribeNodeResponse response = channel.SubscribeNode(request);
                Database.Node = response.Node;

                Console.WriteLine("Subscribed successfully");
            }
            catch (EndpointNotFoundException e)
            {
                throw new MonoscapeException("Could not connect to the Application Grid", e);
            }
        }
 public ApDescribeAddressesRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApGetConsoleOutputRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public NcApplicationExistsRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public CcQuerySubscriptionsRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApStopApplicationRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApDeregisterImageRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public CcUpdateSubscriptionRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }
 public ApTerminateInstanceRequest(MonoscapeCredentials credentials)
     : base(credentials)
 {
 }