package org.dasein.cloud.cloudstack;

import org.dasein.cloud.AbstractCapabilities;
import org.dasein.cloud.dc.DataCenterCapabilities;

import javax.annotation.Nonnull;
import java.util.Locale;

/**
 * User: daniellemayne
 * Date: 01/08/2014
 * Time: 12:50
 */
public class CSTopologyCapabilities extends AbstractCapabilities<CSCloud> implements DataCenterCapabilities {
    public CSTopologyCapabilities(@Nonnull CSCloud provider) {
        super(provider);
    }
    @Override
    public String getProviderTermForDataCenter(Locale locale) {
        return "cluster";
    }

    @Override
    public String getProviderTermForRegion(Locale locale) {
        return "datacenter";
    }

    @Override
    public boolean supportsAffinityGroups() {
        return true;
    }

    @Override
    public boolean supportsResourcePools() {
        return true;
    }

    @Override
    public boolean supportsStoragePools() {
        return true;
    }
}

package org.dasein.cloud.cloudstack;

import org.dasein.cloud.AbstractCapabilities;
import org.dasein.cloud.dc.DataCenterCapabilities;

import javax.annotation.Nonnull;
import java.util.Locale;

/**
 * User: daniellemayne
 * Date: 01/08/2014
 * Time: 12:50
 */
public class CSTopologyCapabilities extends AbstractCapabilities<CSCloud> implements DataCenterCapabilities {
    public CSTopologyCapabilities(@Nonnull CSCloud provider) {
        super(provider);
    }
    @Override
    public String getProviderTermForDataCenter(Locale locale) {
        return "zone";
    }

    @Override
    public String getProviderTermForRegion(Locale locale) {
        return "region";
    }

    @Override
    public boolean supportsAffinityGroups() {
        return false;
    }

    @Override
    public boolean supportsResourcePools() {
        return false;
    }

    @Override
    public boolean supportsStoragePools() {
        return false;
    }
}

fix dc capabilities