Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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.elb;
 
 import java.util.Set;
 
 import  javax.annotation.Nullable;
 
 
Provides access to EC2 Elastic Load Balancer via their REST API.

Author(s):
Lili Nader
 
 // see ELBAsyncClient
 @Timeout(duration = 30, timeUnit = .)
 public interface ELBClient {
   

Returns:
the Region codes configured
 
    @Provides
    @Region
    Set<StringgetConfiguredRegions();
  
   
Provides synchronous access to LoadBalancer features.
 
    @Delegate
Provides synchronous access to Policy features.
 
    @Delegate
    
    /// old stuff
    
Creates a load balancer

Parameters:
name Name of the load balancer
loadBalancerPort Port for the load balancer to listen on
instancePort Port to forward the request to
availabilityZones load balancer availability zones
Returns:
dns the DNS name for the load balancer
See also:
 
    @Beta
    // see ELBAsyncClient
    String createLoadBalancerInRegion(@Nullable String regionString nameString protocolint loadBalancerPort,
             int instancePortString... availabilityZones);

   
Delete load balancer

Parameters:
name Name of the load balancer
Returns:
See also:
 
    void deleteLoadBalancerInRegion(@Nullable String regionString name);

   
Register instances with an existing load balancer

Parameters:
name Load Balancer name
instanceIds Set of instance Ids to register with load balancer
Returns:
instanceIds registered with load balancer
See also:
   Set<StringregisterInstancesWithLoadBalancerInRegion(@Nullable String regionString nameString... instanceIds);

   
Deregister instances with an existing load balancer

Parameters:
name Load Balancer name
instanceIds Set of instance Ids to deregister with load balancer
Returns:
See also:
   void deregisterInstancesWithLoadBalancerInRegion(@Nullable String regionString nameString... instanceIds);

   
Returns a set of elastic load balancers

Parameters:
region
loadbalancerNames names associated with the LoadBalancers at creation time.
Returns:
   Set<? extends CrappyLoadBalancerdescribeLoadBalancersInRegion(@Nullable String regionString... loadbalancerNames);
New to GrepCode? Check out our FAQ X