Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Google compute engine load balancing support for stratos #419

Open
wants to merge 224 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
c8ea6fa
adding gce-extension files
asankasan Jun 4, 2015
14676ec
adding gce-extension files
asankasan Jun 4, 2015
e2fa056
adding gce-extension files
asankasan Jun 4, 2015
11f114a
Merge branch 'master' of https://github.com/apache/stratos
asankasan Jun 6, 2015
da86337
adding a test method
asankasan Jun 6, 2015
b536600
fixing zone name error
asankasan Jun 6, 2015
a109bc3
adding create target pool method
asankasan Jun 6, 2015
410927b
adding create target pool method
asankasan Jun 6, 2015
3553eae
adding create target pool method
asankasan Jun 6, 2015
1b1d313
adding create target pool method
asankasan Jun 6, 2015
4a296f5
adding create target pool method
asankasan Jun 6, 2015
59713f6
adding create target pool method
asankasan Jun 6, 2015
6f036e0
adding create target pool method
asankasan Jun 6, 2015
df21f52
adding create target pool method
asankasan Jun 6, 2015
658aaf1
adding create target pool method
asankasan Jun 6, 2015
41574cd
adding create target pool method
asankasan Jun 6, 2015
5ce548c
adding create target pool method
asankasan Jun 6, 2015
30ce224
adding create target pool method
asankasan Jun 6, 2015
b987c45
adding create target pool method
asankasan Jun 6, 2015
4f0b334
adding create target pool method
asankasan Jun 6, 2015
c3dc11b
adding create target pool method
asankasan Jun 6, 2015
88df929
adding create target pool method
asankasan Jun 6, 2015
9cee960
adding create target pool method
asankasan Jun 6, 2015
e12036e
adding create target pool method
asankasan Jun 6, 2015
6457e31
changes in gce operations class
asankasan Jun 6, 2015
8e24879
changes in gce operations class
asankasan Jun 6, 2015
8f11bf0
changes in gce operations class
asankasan Jun 6, 2015
7a4033d
changes in gce operations class
asankasan Jun 6, 2015
0d345e7
changes in gce operations class
asankasan Jun 6, 2015
1dd8cd1
changes in gce operations class
asankasan Jun 6, 2015
8f6e2dc
changes in gce operations class
asankasan Jun 6, 2015
6f1ba45
changes in gce operations class
asankasan Jun 6, 2015
6cdde95
changes in gce operations class
asankasan Jun 6, 2015
0a543d0
changes in gce operations class
asankasan Jun 6, 2015
a45c168
changes in gce operations class
asankasan Jun 6, 2015
f01b6ce
changes in gce operations class
asankasan Jun 6, 2015
dbe82ed
changes in gce operations class
asankasan Jun 6, 2015
38f840f
changes in gce operations class
asankasan Jun 6, 2015
3f05f40
changes in gce operations class
asankasan Jun 6, 2015
19d93c0
changes in gce operations class
asankasan Jun 6, 2015
28e5d6b
changes in gce operations class
asankasan Jun 6, 2015
f98ad9e
changes in gce operations class
asankasan Jun 6, 2015
d846b76
changes in gce operations class
asankasan Jun 6, 2015
eb7aaa8
changes in gce operations class
asankasan Jun 6, 2015
70d3411
changes in gce operations class
asankasan Jun 6, 2015
ad88760
changes in gce operations class
asankasan Jun 7, 2015
4c0556f
Adding constance and context classes
asankasan Jun 7, 2015
8c3f0fd
adding logic for if cepstatpublisher enabled
asankasan Jun 7, 2015
5a60af6
adding logic for if cepstatpublisher enabled
asankasan Jun 7, 2015
70cff79
adding logic for if cepstatpublisher enabled
asankasan Jun 7, 2015
a0faaed
adding logic for if cepstatpublisher enabled
asankasan Jun 7, 2015
2287952
adding logic for if cepstatpublisher enabled
asankasan Jun 7, 2015
9f01cfe
testing configure method
asankasan Jun 7, 2015
8917163
testing configure method
asankasan Jun 7, 2015
503d5b9
adding logic for load balancer configuration
asankasan Jun 7, 2015
03429b8
adding logic for load balancer configuration
asankasan Jun 7, 2015
dc0beea
adding logic for load balancer configuration
asankasan Jun 7, 2015
14cb180
adding logic for load balancer configuration
asankasan Jun 7, 2015
fd33963
adding logic for load balancer configuration
asankasan Jun 8, 2015
939cde8
adding logic for load balancer configuration
asankasan Jun 8, 2015
8ade314
adding logic for load balancer configuration
asankasan Jun 8, 2015
d449739
adding logic for load balancer configuration
asankasan Jun 8, 2015
57285d4
adding logic for load balancer configuration
asankasan Jun 8, 2015
64c4223
adding logic for load balancer configuration
asankasan Jun 8, 2015
3eeb140
adding code for start method and configure method
asankasan Jun 8, 2015
2373ffc
adding code for start method and configure method
asankasan Jun 8, 2015
8d598e6
adding code for start method and configure method
asankasan Jun 8, 2015
18538cf
adding code for stop method and configure method
asankasan Jun 8, 2015
4e58e24
Remove hard-coded values and reading from configuration
asankasan Jun 8, 2015
ce5bfc1
fixing error in project name
asankasan Jun 8, 2015
230cc2f
fixing error in data store directory location
asankasan Jun 8, 2015
66f83bb
fixing error in data store directory location
asankasan Jun 8, 2015
d2daffc
fixing bug
asankasan Jun 8, 2015
e6859f5
set waiting times for GCE api calls
asankasan Jun 8, 2015
a553955
set waiting times for GCE api calls
asankasan Jun 8, 2015
4d6d1e7
set waiting times for GCE api calls
asankasan Jun 8, 2015
416e688
adding health check operations
asankasan Jun 9, 2015
c0060fb
adding health check operations
asankasan Jun 9, 2015
a99ed70
adding health check operations
asankasan Jun 9, 2015
33f63d7
adding health check operations
asankasan Jun 9, 2015
bffcb59
adding health check operations
asankasan Jun 9, 2015
e2ba1d8
adding health check operations
asankasan Jun 9, 2015
d440abe
adding a time out for operations
asankasan Jun 9, 2015
a760aac
adding a time out for operations
asankasan Jun 9, 2015
3851b67
fix an issue in forwardingrulenamecreator method
asankasan Jun 9, 2015
219e2ef
handling an exception in addInstancesToTargetPool method
asankasan Jun 9, 2015
899167c
set a port range instead of using set of ports for forwarding rules
asankasan Jun 9, 2015
85c5af5
set health checks to target pool
asankasan Jun 9, 2015
e2bcec6
set health checks to target pool
asankasan Jun 9, 2015
adc8f63
set health checks to target pool
asankasan Jun 9, 2015
104c7a1
set health checks to target pool
asankasan Jun 9, 2015
599aecb
set health checks to target pool
asankasan Jun 10, 2015
6df323b
set health checks to target pool
asankasan Jun 10, 2015
666b944
fixing bug in operation completion
asankasan Jun 10, 2015
76af30c
fixing bug in operation completion
asankasan Jun 10, 2015
a86f624
fixing bug in operation completion
asankasan Jun 10, 2015
5aec905
fixing bug in operation completion
asankasan Jun 10, 2015
75667c5
fixing bug in operation completion
asankasan Jun 10, 2015
5aff39d
fixing bug in operation completion
asankasan Jun 10, 2015
b70b2ef
fixing bug in operation completion
asankasan Jun 10, 2015
5ac360d
fixing bug in operation completion
asankasan Jun 10, 2015
2da76de
fixing bug in operation completion
asankasan Jun 10, 2015
0656d91
fixing bug in operation completion
asankasan Jun 10, 2015
7554133
fixing bug in operation completion
asankasan Jun 10, 2015
f47e19c
fixing bug in operation completion
asankasan Jun 11, 2015
dd351fa
fixing bug in operation complete
asankasan Jun 11, 2015
acea041
printing topology
asankasan Jun 11, 2015
91c6f82
printing topology
asankasan Jun 11, 2015
b8629c0
printing topology
asankasan Jun 11, 2015
ca31ee7
testing member context
asankasan Jun 15, 2015
eae0215
testing member context
asankasan Jun 15, 2015
3a7eb8d
Merge branch 'master' of https://github.com/apache/stratos
asankasan Jun 15, 2015
753792b
testing member context
asankasan Jun 15, 2015
25fd0d2
testing member context
asankasan Jun 15, 2015
075207b
testing member context
asankasan Jun 15, 2015
4cad6d8
set instance Id
asankasan Jun 15, 2015
90fd4a5
set instance Id
asankasan Jun 15, 2015
0c2b808
add instance to target pool
asankasan Jun 15, 2015
faea8da
add instance to target pool
asankasan Jun 15, 2015
40913f5
add instance to target pool
asankasan Jun 15, 2015
8e20c61
reformat code
asankasan Jun 15, 2015
262d0f0
reformat code
asankasan Jun 17, 2015
173571a
fixing heath check creation error
asankasan Jun 17, 2015
1f244ab
fixing heath check creation error
asankasan Jun 17, 2015
dc3649b
implementing create forwarding rule method
asankasan Jun 17, 2015
d382b52
testing
asankasan Jun 17, 2015
76efe36
implementing listening to topology and update it
asankasan Jun 17, 2015
0c71fe9
implementing listening to topology and update it
asankasan Jun 17, 2015
f0e9970
implementing listening to topology and update it
asankasan Jun 17, 2015
c6eb780
implementing listening to topology and update it
asankasan Jun 17, 2015
a6ee0ab
implementing listening to topology and update it
asankasan Jun 18, 2015
0a27206
implementing listening to topology and update it
asankasan Jun 18, 2015
f91e389
implementing listening to topology and update it
asankasan Jun 18, 2015
2e196cf
changing the configure logic
asankasan Jun 18, 2015
4e05e76
changing the configure logic
asankasan Jun 18, 2015
f048b6d
changing the configure logic
asankasan Jun 18, 2015
3a126c0
changing the configure logic
asankasan Jun 18, 2015
9e7b79d
Exception handling
asankasan Jun 19, 2015
9286f44
Exception handling
asankasan Jun 19, 2015
737e962
stop method implementation
asankasan Jun 21, 2015
3e5637d
stop method implementation
asankasan Jun 25, 2015
1c8cb0a
stop method implementation
asankasan Jun 25, 2015
c40d2d4
fixing a problem in LoadBalancerExtension class
asankasan Jun 25, 2015
d1b9d14
reverting changes in loadBalancerExtension class
asankasan Jun 25, 2015
ca7f68a
refining GCELoadBalancer class code
asankasan Jun 27, 2015
691175c
Merge branch 'master' of https://github.com/apache/stratos
asankasan Jun 27, 2015
846c4e2
remove instanceId field from instanceContext class
asankasan Jun 27, 2015
a3a98c0
removing member.setInstanceId from member initialized event in Topolo…
asankasan Jun 27, 2015
32ae9b2
remove extra tab in LoadBalancerExtension class
asankasan Jun 27, 2015
163b45f
adding removed "/n" in TopologyBuilder class
asankasan Jun 27, 2015
b3eb7bb
remove setting instanceId in member initialized event
asankasan Jun 27, 2015
8b3d1f0
setting instanceId in member initialized event
asankasan Jun 27, 2015
fc2fa2c
Adding instance Id field again to instanceContext class
asankasan Jun 27, 2015
1d529b7
revert changes in topologyBuilder class and InstanceContext class
asankasan Jun 27, 2015
97baeaa
revert changes in topologyBuilder class and InstanceContext class
asankasan Jun 27, 2015
eb858b8
revert changes in topologyBuilder class and InstanceContext class
asankasan Jun 27, 2015
82eaa2b
fixing an error in topology builder class
asankasan Jun 27, 2015
9f44791
adding instaceID to message processor side
asankasan Jun 27, 2015
9df565f
Adding a timeout for operation completion
asankasan Jun 28, 2015
451e9a8
configuration read from a xml file-1
asankasan Jul 1, 2015
515b543
configuration read from a xml file-1
asankasan Jul 1, 2015
9404fe7
configuration read from a xml file-1
asankasan Jul 1, 2015
3ac6c82
configuration read from a xml file-1
asankasan Jul 1, 2015
f487265
configuration read from a xml file-1
asankasan Jul 1, 2015
9a150a9
configuration read from a xml file-fixing file path issue
asankasan Jul 1, 2015
f96e464
configuration read from a xml file-fixing file path issue
asankasan Jul 2, 2015
116dae4
delaying configure method as a temporary solution for topology update…
asankasan Jul 2, 2015
d825622
let the configuration read from configuration file instead of system …
asankasan Jul 4, 2015
52872e1
reformat the code and adding some comments
asankasan Jul 4, 2015
138b1ea
resolving merge confilicts
asankasan Jul 10, 2015
40584e8
Merge branch 'master' of https://github.com/apache/stratos
asankasan Jul 10, 2015
8003da5
Merge branch 'master' of https://github.com/apache/stratos
asankasan Jul 10, 2015
421212d
let the zone name detect from instance object-1
asankasan Jul 11, 2015
b4ae9ab
let the zone name detect from instance object-2
asankasan Jul 11, 2015
4bb4394
let the zone name detect from instance object-2
asankasan Jul 11, 2015
4059e3f
fixing a bug in getZoneNameFromInstanceId method
asankasan Jul 11, 2015
8920d50
fixing a bug in getZoneNameFromInstanceId method
asankasan Jul 11, 2015
5c73978
resolving the ConcurrentModificationException occurs when terminating…
asankasan Jul 18, 2015
1d3c444
removing a to-do
asankasan Jul 18, 2015
5ec1f0e
fixing a issue in getInstanceURLFromId method
asankasan Jul 18, 2015
e73dd7a
fix issues in GCEOperations.java class
asankasan Jul 18, 2015
81d91d9
fixing an error related to log
asankasan Jul 18, 2015
22f247a
adding some null checks for gceOperations.java
asankasan Jul 18, 2015
9e1afb2
adding some null checks for gceOperations.java
asankasan Jul 18, 2015
64f5455
adding some null checks for gceOperations.java
asankasan Jul 18, 2015
a21a032
removed the instance filter for testing purposes
asankasan Jul 21, 2015
06c95a3
fixing an issue related to get instance URL when the member is termin…
asankasan Jul 21, 2015
f399054
log the error messages related to operation completion
asankasan Jul 21, 2015
793891a
set health check interval
asankasan Jul 21, 2015
c99599e
set health check interval
asankasan Jul 21, 2015
e9f950e
set health check interval
asankasan Jul 21, 2015
5fd3819
set health check interval
asankasan Jul 21, 2015
017c8af
adding health check healthy threshold
asankasan Jul 21, 2015
958263c
adding health check healthy threshold
asankasan Jul 21, 2015
1cae53b
adding health check healthy threshold
asankasan Jul 21, 2015
947f6fe
adding health check healthy threshold
asankasan Jul 21, 2015
09be072
removing error logging in operation completion
asankasan Jul 21, 2015
3ebd60c
configuration properties are validated
asankasan Jul 22, 2015
2b7631b
added null checks for config parser
asankasan Jul 22, 2015
6cbdebc
code reformatted
asankasan Jul 22, 2015
2d2b9b9
adding license and notice
asankasan Jul 22, 2015
2e130ed
change the logic for removing configuration for removed cluster in GC…
asankasan Jul 27, 2015
78e325a
change the logic for removing configuration for removed cluster in GC…
asankasan Jul 27, 2015
2d6ad4b
change the logic for removing configuration for removed cluster in GC…
asankasan Jul 27, 2015
cc8784a
change the logic for removing configuration for removed cluster in GC…
asankasan Jul 27, 2015
0cf4074
exception handling
asankasan Aug 1, 2015
d5a68a7
Adding debug logs and reformat the code
asankasan Aug 7, 2015
4bef72c
merge with apache stratos master branch
asankasan Aug 7, 2015
75c3d15
changing the parent extension version
asankasan Aug 7, 2015
92a20f9
solved some issues pointed out by sonarqube
asankasan Aug 8, 2015
8a42670
get rid of throwing a runtime exception
asankasan Aug 8, 2015
1250412
log error messages in log.error(object,throwable) format and change …
asankasan Aug 11, 2015
4862b29
refine logs and fixing some issues mentioned by imesh
asankasan Aug 13, 2015
2cf19a3
Preparing for next development iteration: updating pom version to 4.1…
ravihansa3000 Aug 11, 2015
e02e0ce
Read GCE API URL from configuration and make some other strings constant
asankasan Aug 17, 2015
6e19dbb
fixing a log issue
asankasan Aug 17, 2015
990ee9b
fixing merge conflicts
asankasan Aug 17, 2015
19acc9e
fixing a concurrent modification exception issue
asankasan Aug 18, 2015
619c973
removing some blank lines
asankasan Aug 19, 2015
39b853b
adding a install.md file
asankasan Aug 19, 2015
a24999f
reformat code
asankasan Aug 19, 2015
eb56b83
add security folder
asankasan Aug 19, 2015
6054640
create health checks using the application ports
asankasan Oct 11, 2015
5ade51f
fixing an issue in health check name creation
asankasan Oct 11, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/org.apache.stratos.autoscaler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.cartridge.agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public class JavaCartridgeAgentTest {
private static final String PARTITION_ID = "partition-1";
private static final String TENANT_ID = "-1234";
private static final String SERVICE_NAME = "php";
public static final String AGENT_NAME = "apache-stratos-cartridge-agent-4.1.1";
private static final String INSTANCE_ID = "instance-1";
public static final String AGENT_NAME = "apache-stratos-cartridge-agent-4.1.2-SNAPSHOT";
private static HashMap<String, Executor> executorList;
private static ArrayList<ServerSocket> serverSocketList;
private final ArtifactUpdatedEvent artifactUpdatedEvent;
Expand Down Expand Up @@ -249,7 +250,7 @@ private String setupJavaAgent() {
}

log.info("Copying agent jar");
String agentJar = "org.apache.stratos.cartridge.agent-4.1.1.jar";
String agentJar = "org.apache.stratos.cartridge.agent-4.1.2-SNAPSHOT.jar";
String agentJarSource = getResourcesFolderPath() + "/../" + agentJar;
String agentJarDest = agentHome.getCanonicalPath() + "/lib/" + agentJar;
FileUtils.copyFile(new File(agentJarSource), new File(agentJarDest));
Expand Down Expand Up @@ -327,7 +328,7 @@ public void run() {
// Publish member initialized event
log.info("Publishing member initialized event...");
MemberInitializedEvent memberInitializedEvent = new MemberInitializedEvent(
SERVICE_NAME, CLUSTER_ID, CLUSTER_INSTANCE_ID, MEMBER_ID, NETWORK_PARTITION_ID, PARTITION_ID
SERVICE_NAME, CLUSTER_ID, CLUSTER_INSTANCE_ID, MEMBER_ID, NETWORK_PARTITION_ID, PARTITION_ID, INSTANCE_ID
);
publishEvent(memberInitializedEvent);
log.info("Member initialized event published");
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.cloud.controller/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public static void sendMemberInitializedEvent(MemberContext memberContext) {
memberContext.getClusterInstanceId(),
memberContext.getMemberId(),
memberContext.getNetworkPartitionId(),
memberContext.getPartition().getId());
memberContext.getPartition().getId(),
memberContext.getInstanceId());

memberInitializedEvent.setDefaultPrivateIP(memberContext.getDefaultPrivateIP());
if (memberContext.getPrivateIPs() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ public static void handleMemberInitializedEvent(MemberContext memberContext) {
if (memberContext.getPublicIPs() != null) {
member.setMemberPublicIPs(Arrays.asList(memberContext.getPublicIPs()));
}
member.setInstanceId(memberContext.getInstanceId());

// try update lifecycle state
if (!member.isStateTransitionValid(MemberStatus.Initialized)) {
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.custom.handlers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.email.sender/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.kubernetes.client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.load.balancer.common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public class Member {
private String clusterId;
private String memberId;
private String hostName;
//instance id provided by IaaS in order to use in GCE load balancer
private String instanceId;
private Map<Integer, Port> portMap;

public Member(String serviceName, String clusterId, String memberId, String hostName) {
Expand Down Expand Up @@ -86,4 +88,12 @@ public Collection getPorts() {
public String getServiceName() {
return serviceName;
}

public String getInstanceId() {
return instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ private org.apache.stratos.load.balancer.common.domain.Member transformMember(Me
member.addPort(transformPort(port));
}
}
if (messagingMember.getInstanceId() != null) {
member.setInstanceId(messagingMember.getInstanceId());
}
return member;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<artifactId>org.apache.stratos.load.balancer.extension.api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.load.balancer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.logging.view.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.manager.styles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.messaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public class Member implements Serializable, LifeCycleStateTransitionBehavior<Me
// instance id to use if snapshot wise group scaling is enabled
private LifeCycleStateManager<MemberStatus> memberStateManager;
private LoadBalancingIPType loadBalancingIPType;
//instance id provided by IaaS(In order to use in GCE Load balancer)
private String instanceId;

public Member(String serviceName, String clusterId, String memberId, String clusterInstanceId,
String networkPartitionId, String partitionId, LoadBalancingIPType loadBalancingIPType,
Expand Down Expand Up @@ -209,6 +211,14 @@ public LoadBalancingIPType getLoadBalancingIPType() {
return loadBalancingIPType;
}

public String getInstanceId() {
return instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

@Override
public String toString() {
return "Member [serviceName=" + getServiceName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class MemberInitializedEvent extends TopologyEvent implements Serializabl
private final String networkPartitionId;
private final String partitionId;
private final String memberId;
//instance Id provided by IaaS
private final String instanceId;

private List<String> memberPublicIPs;
private String defaultPublicIP;
Expand All @@ -44,13 +46,14 @@ public class MemberInitializedEvent extends TopologyEvent implements Serializabl
private Properties properties;

public MemberInitializedEvent(String serviceName, String clusterId, String clusterInstanceId, String memberId,
String networkPartitionId, String partitionId) {
String networkPartitionId, String partitionId, String instanceId) {
this.serviceName = serviceName;
this.clusterId = clusterId;
this.clusterInstanceId = clusterInstanceId;
this.memberId = memberId;
this.networkPartitionId = networkPartitionId;
this.partitionId = partitionId;
this.instanceId = instanceId;
}

public String getServiceName() {
Expand Down Expand Up @@ -116,4 +119,8 @@ public List<String> getMemberPrivateIPs() {
public void setMemberPrivateIPs(List<String> memberPrivateIPs) {
this.memberPrivateIPs = memberPrivateIPs;
}

public String getInstanceId() {
return instanceId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ private boolean doProcess(MemberInitializedEvent event, Topology topology) {
member.setMemberPublicIPs(event.getMemberPublicIPs());
member.setDefaultPrivateIP(event.getDefaultPrivateIP());
member.setMemberPrivateIPs(event.getMemberPrivateIPs());
member.setInstanceId(event.getInstanceId());

if (log.isInfoEnabled()) {
log.info(String.format("Member initialized: [service] %s [cluster] %s [member] %s",
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.metadata.client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<artifactId>org.apache.stratos.metadata.client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.metadata.service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.mock.iaas.api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.mock.iaas.client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<artifactId>stratos-components-parent</artifactId>
<groupId>org.apache.stratos</groupId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.mock.iaas/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>stratos-components-parent</artifactId>
<groupId>org.apache.stratos</groupId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public class PythonCartridgeAgentTest {
private static final String TENANT_ID = "-1234";
private static final String SERVICE_NAME = "php";
public static final String SOURCE_PATH = "/tmp/stratos-pca-test-app-path/";
private static final String INSTANCE_ID = "instance-1";

private static List<ServerSocket> serverSocketList;
private static Map<String, Executor> executorList;
Expand Down Expand Up @@ -282,8 +283,7 @@ public void run() {
// Publish member initialized event
log.info("Publishing member initialized event...");
MemberInitializedEvent memberInitializedEvent = new MemberInitializedEvent(
SERVICE_NAME, CLUSTER_ID, CLUSTER_INSTANCE_ID, MEMBER_ID, NETWORK_PARTITION_ID,
PARTITION_ID
SERVICE_NAME, CLUSTER_ID, CLUSTER_INSTANCE_ID, MEMBER_ID, NETWORK_PARTITION_ID, PARTITION_ID, INSTANCE_ID
);
publishEvent(memberInitializedEvent);
log.info("Member initialized event published");
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.rest.endpoint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.sso.redirector.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/org.apache.stratos.tenant.activity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-components-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.stratos</groupId>
<artifactId>stratos-parent</artifactId>
<version>4.1.1</version>
<version>4.1.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Loading