From c9591931228285a92433d28972c158395f1f276f Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 6 Apr 2012 16:59:57 +0000 Subject: Fixing typo git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1310483 13f79535-47bb-0310-9956-ffa450edef68 --- .../manager/impl/DomainAssetManagerResourceImpl.java | 18 +++++++++--------- .../test/resources/node-asset-manager-test.composite | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sca-java-2.x/trunk/modules/node-manager/src/main/java/org/apache/tuscany/sca/node/manager/impl/DomainAssetManagerResourceImpl.java b/sca-java-2.x/trunk/modules/node-manager/src/main/java/org/apache/tuscany/sca/node/manager/impl/DomainAssetManagerResourceImpl.java index 7d41bf80a2..3935c75021 100644 --- a/sca-java-2.x/trunk/modules/node-manager/src/main/java/org/apache/tuscany/sca/node/manager/impl/DomainAssetManagerResourceImpl.java +++ b/sca-java-2.x/trunk/modules/node-manager/src/main/java/org/apache/tuscany/sca/node/manager/impl/DomainAssetManagerResourceImpl.java @@ -49,13 +49,13 @@ public class DomainAssetManagerResourceImpl implements NodeActivator, DomainAsse private static Map nodeMap = new ConcurrentHashMap(); @Property - private int warningTreshold; + private int warningThreshold; @Property - private int criticalTreshold; + private int criticalThreshold; @Property - private int unavailableTreshold; + private int unavailableThreshold; public void nodeStarted(Node node) { NodeExtension nodeExtension = (NodeExtension) node; @@ -70,9 +70,9 @@ public class DomainAssetManagerResourceImpl implements NodeActivator, DomainAsse @Init public void init() { System.out.println("Initializing Domain Asset Manager"); - System.out.println(" - Warning threshold : " + warningTreshold + " ms" ); - System.out.println(" - Critical threshold : " + criticalTreshold + " ms"); - System.out.println(" - Unavailable threshold : " + unavailableTreshold + " ms"); + System.out.println(" - Warning threshold : " + warningThreshold + " ms" ); + System.out.println(" - Critical threshold : " + criticalThreshold + " ms"); + System.out.println(" - Unavailable threshold : " + unavailableThreshold + " ms"); } @@ -102,11 +102,11 @@ public class DomainAssetManagerResourceImpl implements NodeActivator, DomainAsse serviceInstance.isAlive(); status.setExecution(t.elapsed(TimeUnit.MILLISECONDS)); - if(status.getExecution() < warningTreshold) { + if(status.getExecution() < warningThreshold) { status.setStatus(Status.OK); - }else if(status.getExecution() > warningTreshold) { + }else if(status.getExecution() > warningThreshold) { status.setStatus(Status.WARNING); - }else if(status.getExecution() > criticalTreshold) { + }else if(status.getExecution() > criticalThreshold) { status.setStatus(Status.CRITICAL); } else { status.setStatus(Status.UNAVAILABLE); diff --git a/sca-java-2.x/trunk/modules/node-manager/src/test/resources/node-asset-manager-test.composite b/sca-java-2.x/trunk/modules/node-manager/src/test/resources/node-asset-manager-test.composite index 3b4f94d2f7..69bc8bd0da 100644 --- a/sca-java-2.x/trunk/modules/node-manager/src/test/resources/node-asset-manager-test.composite +++ b/sca-java-2.x/trunk/modules/node-manager/src/test/resources/node-asset-manager-test.composite @@ -27,9 +27,9 @@ - 100 - 30000 - 60000 + 100 + 30000 + 60000 -- cgit v1.2.3