Repository: stratos
Updated Branches:
  refs/heads/master 95422e9ad -> f6814d35c


Adding ClusterScalingEvent class


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/3aaf37a0
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/3aaf37a0
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/3aaf37a0

Branch: refs/heads/master
Commit: 3aaf37a0e226c18e6f1bd5027092cb5235c0cf57
Parents: 95422e9
Author: Lahiru Sandaruwan <[email protected]>
Authored: Wed Nov 12 14:43:50 2014 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Wed Nov 12 14:43:50 2014 +0530

----------------------------------------------------------------------
 .../monitor/events/ClusterScalingEvent.java     | 42 ++++++++++++++++++++
 1 file changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/3aaf37a0/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/events/ClusterScalingEvent.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/events/ClusterScalingEvent.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/events/ClusterScalingEvent.java
new file mode 100644
index 0000000..1f9c462
--- /dev/null
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/events/ClusterScalingEvent.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF 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.apache.stratos.autoscaler.monitor.events;
+
+import org.apache.stratos.messaging.domain.topology.ClusterStatus;
+
+/**
+ * This will use to notify observers upon a cluster activation events received 
in Topology.
+ */
+public class ClusterScalingEvent extends MonitorStatusEvent {
+
+    private ClusterStatus status;
+
+    public ClusterScalingEvent(ClusterStatus status, String id) {
+        super(id);
+        this.status = status;
+    }
+
+    public ClusterStatus getStatus() {
+        return this.status;
+    }
+
+    public void setStatus(ClusterStatus status) {
+        this.status = status;
+    }
+}

Reply via email to