public final class AwsOrchestrator extends Object implements Orchestrator
Copyright © Enremmeta LLC 2015. All Rights Reserved.
Modifier and Type | Field and Description |
---|---|
private String |
akey |
private static Object |
apiSynchronizer |
private com.amazonaws.services.ec2.AmazonEC2Client |
client |
private OrchestratorConfig |
config |
private com.amazonaws.auth.AWSCredentials |
creds |
static String |
DEPLOY_TYPE |
private String |
ec2Endpoint |
private com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient |
elbClient |
private String |
elbEndpoint |
private String |
elbName |
private boolean |
isBidder |
private long |
lastAwsApiCallTs |
private String |
nodeId |
private int |
numberOfPeers |
private int |
previousNumberOfPeers |
private String |
skey |
Constructor and Description |
---|
AwsOrchestrator(OrchestratorConfig config) |
Modifier and Type | Method and Description |
---|---|
private String |
discoverNodeId() |
String |
getDeployType() |
String |
getNodeId() |
int |
getNumberOfPeers() |
private int |
getNumberOfPeers(String loadBalancerName) |
String |
getRegion() |
boolean |
isBidder() |
public static final String DEPLOY_TYPE
private final String elbName
private final String elbEndpoint
private final String ec2Endpoint
private final String nodeId
private final boolean isBidder
private int previousNumberOfPeers
private final OrchestratorConfig config
private final String skey
private final String akey
private com.amazonaws.auth.AWSCredentials creds
private final com.amazonaws.services.elasticloadbalancing.AmazonElasticLoadBalancingClient elbClient
private final com.amazonaws.services.ec2.AmazonEC2Client client
private static final Object apiSynchronizer
private long lastAwsApiCallTs
private int numberOfPeers
public AwsOrchestrator(OrchestratorConfig config) throws Lot49Exception
Lot49Exception
public String getDeployType()
getDeployType
in interface Orchestrator
public String getNodeId()
getNodeId
in interface Orchestrator
public boolean isBidder()
isBidder
in interface Orchestrator
private int getNumberOfPeers(String loadBalancerName) throws Lot49Exception
Lot49Exception
public int getNumberOfPeers() throws Lot49Exception
getNumberOfPeers
in interface Orchestrator
Lot49Exception
public String getRegion()
getRegion
in interface Orchestrator