org.jclouds.aliyun.slb.loadbalancer.strategy.SLBDestroyLoadBalancerStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-slb Show documentation
Show all versions of aliyun-slb Show documentation
jclouds components to access an implementation of SLB
The newest version!
package org.jclouds.aliyun.slb.loadbalancer.strategy;
import javax.inject.Inject;
import org.jclouds.domain.Location;
import org.jclouds.loadbalancer.LoadBalancerServiceAdapter;
import org.jclouds.loadbalancer.domain.LoadBalancerMetadata;
import org.jclouds.loadbalancer.strategy.DestroyLoadBalancerStrategy;
public class SLBDestroyLoadBalancerStrategy implements DestroyLoadBalancerStrategy {
protected final LoadBalancerServiceAdapter adapter;
@Inject
public SLBDestroyLoadBalancerStrategy (
LoadBalancerServiceAdapter adapter) {
this.adapter = adapter;
}
@Override
public LoadBalancerMetadata destroyLoadBalancer(String id) {
adapter.destroyLoadBalancer(id);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy