org.dasein.cloud.aws.network
Class SecurityGroup

java.lang.Object
  extended by org.dasein.cloud.aws.network.SecurityGroup
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.FirewallSupport

public class SecurityGroup
extends Object
implements org.dasein.cloud.network.FirewallSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.network.FirewallSupport
ANY, AUTHORIZE, CREATE_FIREWALL, GET_FIREWALL, LIST_FIREWALL, REMOVE_FIREWALL, REVOKE
 
Method Summary
 String authorize(String securityGroupId, String cidr, org.dasein.cloud.network.Protocol protocol, int startPort, int endPort)
           
 String create(String name, String description)
           
 String createInVLAN(String name, String description, String providerVlanId)
           
 void delete(String securityGroupId)
           
 org.dasein.cloud.network.Firewall getFirewall(String securityGroupId)
           
 String getProviderTermForFirewall(Locale locale)
           
 Collection<org.dasein.cloud.network.FirewallRule> getRules(String securityGroupId)
           
 boolean isSubscribed()
           
 Collection<org.dasein.cloud.network.Firewall> list()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void revoke(String securityGroupId, String cidr, org.dasein.cloud.network.Protocol protocol, int startPort, int endPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

authorize

@Nonnull
public String authorize(@Nonnull
                                String securityGroupId,
                                @Nonnull
                                String cidr,
                                @Nonnull
                                org.dasein.cloud.network.Protocol protocol,
                                int startPort,
                                int endPort)
                 throws org.dasein.cloud.CloudException,
                        org.dasein.cloud.InternalException
Specified by:
authorize in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

create

@Nonnull
public String create(@Nonnull
                             String name,
                             @Nonnull
                             String description)
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Specified by:
create in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

createInVLAN

@Nonnull
public String createInVLAN(@Nonnull
                                   String name,
                                   @Nonnull
                                   String description,
                                   @Nonnull
                                   String providerVlanId)
                    throws org.dasein.cloud.InternalException,
                           org.dasein.cloud.CloudException
Specified by:
createInVLAN in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

delete

public void delete(@Nonnull
                   String securityGroupId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
delete in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getFirewall

@Nullable
public org.dasein.cloud.network.Firewall getFirewall(@Nonnull
                                                              String securityGroupId)
                                              throws org.dasein.cloud.InternalException,
                                                     org.dasein.cloud.CloudException
Specified by:
getFirewall in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForFirewall

@Nonnull
public String getProviderTermForFirewall(@Nonnull
                                                 Locale locale)
Specified by:
getProviderTermForFirewall in interface org.dasein.cloud.network.FirewallSupport

getRules

@Nonnull
public Collection<org.dasein.cloud.network.FirewallRule> getRules(@Nonnull
                                                                          String securityGroupId)
                                                           throws org.dasein.cloud.InternalException,
                                                                  org.dasein.cloud.CloudException
Specified by:
getRules in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Specified by:
isSubscribed in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

list

@Nonnull
public Collection<org.dasein.cloud.network.Firewall> list()
                                                   throws org.dasein.cloud.InternalException,
                                                          org.dasein.cloud.CloudException
Specified by:
list in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService

revoke

public void revoke(@Nonnull
                   String securityGroupId,
                   @Nonnull
                   String cidr,
                   @Nonnull
                   org.dasein.cloud.network.Protocol protocol,
                   int startPort,
                   int endPort)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
revoke in interface org.dasein.cloud.network.FirewallSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.