public class StaticMembership extends java.lang.Object implements IMembership
Constructor and Description |
---|
StaticMembership() |
Modifier and Type | Method and Description |
---|---|
void |
addACL(java.util.Collection<java.lang.String> listIPs,
int from,
int to)
Add security group ACLs
|
void |
expandRacMembership(int count)
Expand the membership size by 1.
|
com.google.common.collect.ImmutableSet<java.lang.String> |
getCrossAccountRacMembership()
Get a set of Instances in the cross-account but current RAC
|
int |
getRacCount()
Number of RACs
|
com.google.common.collect.ImmutableSet<java.lang.String> |
getRacMembership()
Get a list of Instances in the current RAC
|
int |
getRacMembershipSize() |
com.google.common.collect.ImmutableSet<java.lang.String> |
listACL(int from,
int to)
List all ACLs
|
void |
removeACL(java.util.Collection<java.lang.String> listIPs,
int from,
int to)
Remove security group ACLs
|
public StaticMembership() throws java.io.IOException
java.io.IOException
public com.google.common.collect.ImmutableSet<java.lang.String> getRacMembership()
IMembership
getRacMembership
in interface IMembership
public com.google.common.collect.ImmutableSet<java.lang.String> getCrossAccountRacMembership()
IMembership
getCrossAccountRacMembership
in interface IMembership
public int getRacMembershipSize()
getRacMembershipSize
in interface IMembership
public int getRacCount()
IMembership
getRacCount
in interface IMembership
public void addACL(java.util.Collection<java.lang.String> listIPs, int from, int to)
IMembership
addACL
in interface IMembership
public void removeACL(java.util.Collection<java.lang.String> listIPs, int from, int to)
IMembership
removeACL
in interface IMembership
public com.google.common.collect.ImmutableSet<java.lang.String> listACL(int from, int to)
IMembership
listACL
in interface IMembership
public void expandRacMembership(int count)
IMembership
expandRacMembership
in interface IMembership