Updated Branches: refs/heads/master 3a07eff08 -> c7f24b5bb
fixing STRATOS-383 Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/c7f24b5b Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/c7f24b5b Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/c7f24b5b Branch: refs/heads/master Commit: c7f24b5bbef6749d98353f3d4da61f58b80b05a7 Parents: 3a07eff Author: rekathiru <[email protected]> Authored: Tue Jan 28 13:27:12 2014 +0530 Committer: rekathiru <[email protected]> Committed: Tue Jan 28 13:27:12 2014 +0530 ---------------------------------------------------------------------- .../policy/autoscale/LoadAverage.java | 32 +++++++++++++++++++ .../policy/autoscale/LoadThresholds.java | 28 +++++++++++++++++ .../policy/autoscale/MemoryConsumption.java | 33 ++++++++++++++++++++ .../policy/autoscale/RequestsInFlight.java | 33 ++++++++++++++++++++ 4 files changed, 126 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c7f24b5b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadAverage.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadAverage.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadAverage.java new file mode 100644 index 0000000..80a8810 --- /dev/null +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadAverage.java @@ -0,0 +1,32 @@ +/* + * 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.cli.beans.autoscaler.policy.autoscale; + +public class LoadAverage { + + public float average; + + public float secondDerivative; + + public float gradient; + + public float scaleDownMarginOfGradient; + + public float scaleDownMarginOfSecondDerivative; +} http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c7f24b5b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadThresholds.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadThresholds.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadThresholds.java new file mode 100644 index 0000000..ba6bedd --- /dev/null +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/LoadThresholds.java @@ -0,0 +1,28 @@ +/* + * 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.cli.beans.autoscaler.policy.autoscale; + +public class LoadThresholds { + + public RequestsInFlight requestsInFlight; + + public MemoryConsumption memoryConsumption; + + public LoadAverage loadAverage; +} http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c7f24b5b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/MemoryConsumption.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/MemoryConsumption.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/MemoryConsumption.java new file mode 100644 index 0000000..43acbe4 --- /dev/null +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/MemoryConsumption.java @@ -0,0 +1,33 @@ +/* + * 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.cli.beans.autoscaler.policy.autoscale; + +public class MemoryConsumption { + + public float average; + + public float secondDerivative; + + public float gradient; + + public float scaleDownMarginOfGradient; + + public float scaleDownMarginOfSecondDerivative; +} http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c7f24b5b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/RequestsInFlight.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/RequestsInFlight.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/RequestsInFlight.java new file mode 100644 index 0000000..4d7bb2c --- /dev/null +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/autoscaler/policy/autoscale/RequestsInFlight.java @@ -0,0 +1,33 @@ +/* + * 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.cli.beans.autoscaler.policy.autoscale; + +public class RequestsInFlight { + + public float average; + + public float secondDerivative; + + public float gradient; + + public float scaleDownMarginOfGradient; + + public float scaleDownMarginOfSecondDerivative; +}
