diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-06 16:59:57 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-06 16:59:57 +0000 |
commit | c9591931228285a92433d28972c158395f1f276f (patch) | |
tree | dee2aa49428ed27c87214b82f5a6b9d676ea2154 /sca-java-2.x/trunk/modules/node-manager | |
parent | b8dde41d9e03a4d15b03995c65bd5416d4d9a216 (diff) |
Fixing typo
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1310483 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-manager')
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<String, NodeExtension> nodeMap = new ConcurrentHashMap<String,NodeExtension>(); @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 @@ <service name="DomainAssetManagerResource"> <tuscany:binding.rest uri="/services/manager" /> </service> - <property name="warningTreshold">100</property> <!-- 1s --> - <property name="criticalTreshold">30000</property> <!-- 30s --> - <property name="unavailableTreshold">60000</property> <!-- 1m --> + <property name="warningThreshold">100</property> <!-- 1s --> + <property name="criticalThreshold">30000</property> <!-- 30s --> + <property name="unavailableThreshold">60000</property> <!-- 1m --> </component> <component name="Resource"> |