removnig unused method

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

Branch: refs/heads/master
Commit: 0f2b3c7fd6af42623d896cf1501540127066b5ba
Parents: c0e24c3
Author: reka <[email protected]>
Authored: Mon Jul 27 14:55:06 2015 +0530
Committer: reka <[email protected]>
Committed: Wed Jul 29 16:11:07 2015 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/MonitorFactory.java  |  2 +-
 .../monitor/component/ApplicationMonitor.java       | 16 +---------------
 2 files changed, 2 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/0f2b3c7f/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
index b8ad83c..a85cf03 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java
@@ -196,7 +196,7 @@ public class MonitorFactory {
             ApplicationHolder.releaseReadLock();
         }
         //Creating the immediate dependencies
-        applicationMonitor.startMinimumDependencies(application);
+        applicationMonitor.createInstanceAndStartDependency(application);
         // Starting the scheduler of the application monitor
         applicationMonitor.startScheduler();
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/0f2b3c7f/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java
index a2abe81..1f815cd 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java
@@ -489,20 +489,6 @@ public class ApplicationMonitor extends 
ParentComponentMonitor {
     }
 
     /**
-     * This will start the minimum dependencies
-     *
-     * @param application the application which used to create monitors
-     * @return whether monitor created or not
-     * @throws TopologyInConsistentException
-     * @throws PolicyValidationException
-     */
-    public boolean startMinimumDependencies(Application application)
-            throws TopologyInConsistentException, PolicyValidationException {
-
-        return createInstanceAndStartDependency(application);
-    }
-
-    /**
      * Utility to create application instance by parsing the deployment policy 
for a monitor
      *
      * @param application the application
@@ -510,7 +496,7 @@ public class ApplicationMonitor extends 
ParentComponentMonitor {
      * @throws TopologyInConsistentException
      * @throws PolicyValidationException
      */
-    private boolean createInstanceAndStartDependency(Application application)
+    public boolean createInstanceAndStartDependency(Application application)
             throws TopologyInConsistentException, PolicyValidationException {
 
         boolean initialStartup = true;

Reply via email to