All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.savvis.vpdc.VPDCProviderMetadata Maven / Gradle / Ivy

The newest version!
/**
 * Licensed to jclouds, Inc. (jclouds) under one or more
 * contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  jclouds licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.jclouds.savvis.vpdc;

import static org.jclouds.compute.config.ComputeServiceProperties.TEMPLATE;

import java.net.URI;
import java.util.Properties;

import org.jclouds.providers.ProviderMetadata;
import org.jclouds.providers.internal.BaseProviderMetadata;

/**
 * Implementation of {@link org.jclouds.types.ProviderMetadata} for Savvis Symphony VPDC services.
 * 
 * @author Kedar Dave
 */
public class VPDCProviderMetadata extends BaseProviderMetadata {

   public static Builder builder() {
      return new Builder();
   }

   @Override
   public Builder toBuilder() {
      return builder().fromProviderMetadata(this);
   }

   public VPDCProviderMetadata() {
      super(builder());
   }

   public VPDCProviderMetadata(Builder builder) {
      super(builder);
   }

   public static Properties defaultProperties() {
      Properties properties = new Properties();
      properties.setProperty(TEMPLATE, "osFamily=RHEL,os64Bit=true");
      return properties;
   }

   public static class Builder extends BaseProviderMetadata.Builder {

      protected Builder() {
         id("savvis-symphonyvpdc")
         .name("Savvis Symphony VPDC")
         .apiMetadata(new VPDCApiMetadata())
         .homepage(URI.create("https://api.savvis.net/doc/spec/api/index.html"))
         .console(URI.create("https://www.savvisstation.com"))
            /**
 * {@inheritDoc}
 * list of data centers from savvisstation colocation guide 
 * https://www.savvisstation.com/DocumentViewer?GUID=a95f0387-cbfe-43eb-b25b-4f2b0f68498f&sessionid=SavvisCCC%3ac9a8984b9655b01916be587e5204b2cf
 * Once we have confirmation from Savvis as to what data centers are used for vpdc deployments,
 * iso codes for those will be entered here
 * 
 * City                       Code
 *    Lithia Springs, GA            AT1
*  Waltham, MA                BO1
*  Waltham, MA                BO2
*  Waltham, MA                B03
*  Elk Grove Village, IL         CH3
*  Chicago, IL                CH4 
*  Sterling, VA               DC2
*  Sterling, VA               DC3
*  Sterling, VA               DC4 Phase I 
*   Sterling, VA              DC4 Phase II
*  Fort Worth, TX             DL1 
*  Fort Worth, TX                DL2 
*  El Segundo, CA                LA1 
*  Jersey City, NJ            NJ1
*  Weehawken, NJ              NJ2
*  Piscataway, NJ                NJ3
*  Piscataway, NJ 2nd floor      NJ3
*  Weehawken, NJ              NJ2X
*  Irvine, CA                 OC2
*  Santa Clara, CA            SC4
*  Santa Clara, CA            SC5
*  Santa Clara, CA            SC8
*  Santa Clara, CA            SC9
*  Tukwila, WA 1st floor         SE2
*  Montreal, Canada           MR1
*  Toronto, Canada            TR1
*  Vancouver, Canada             VC1
 */
         .iso3166Codes("US", "CA")
         .endpoint("https://api.savvis.net/vpdc")
         .defaultProperties(VPDCProviderMetadata.defaultProperties());
      }

      @Override
      public VPDCProviderMetadata build() {
         return new VPDCProviderMetadata(this);
      }

      @Override
      public Builder fromProviderMetadata(ProviderMetadata in) {
         super.fromProviderMetadata(in);
         return this;
      }

   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy