You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/12/12 11:06:24 UTC

stratos git commit: Adding ContinueLastSampleValueException class

Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test 7d3b46b58 -> 9fff7a31a


Adding ContinueLastSampleValueException class


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

Branch: refs/heads/4.1.0-test
Commit: 9fff7a31abef7b8760c402c036342e13f59eb9e1
Parents: 7d3b46b
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Dec 12 15:36:15 2014 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Dec 12 15:36:15 2014 +0530

----------------------------------------------------------------------
 .../ContinueLastSampleValueException.java       | 36 ++++++++++++++++++++
 1 file changed, 36 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/9fff7a31/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/exceptions/ContinueLastSampleValueException.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/exceptions/ContinueLastSampleValueException.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/exceptions/ContinueLastSampleValueException.java
new file mode 100644
index 0000000..a4922ee
--- /dev/null
+++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/iaases/mock/exceptions/ContinueLastSampleValueException.java
@@ -0,0 +1,36 @@
+/*
+ * 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.cloud.controller.iaases.mock.exceptions;
+
+/**
+ * Thrown when statistics pattern mode is set to continue and pattern reaches
+ * the last sample value.
+ */
+public class ContinueLastSampleValueException extends Exception {
+    private int lastSampleValue;
+
+    public ContinueLastSampleValueException(int lastSampleValue) {
+        this.lastSampleValue = lastSampleValue;
+    }
+
+    public int getLastSampleValue() {
+        return lastSampleValue;
+    }
+}