diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-manager/src')
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"> |