Clover coverage report - Code Coverage for hivemind-jmx release 1.1-beta-1
Coverage timestamp: Thu Apr 28 2005 19:55:29 EDT
file stats: LOC: 69   Methods: 5
NCLOC: 39   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ManagementMessages.java - 0% 0% 0%
coverage
 1   
 // Copyright 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.hivemind.management;
 16   
 
 17   
 import java.util.Map;
 18   
 
 19   
 import javax.management.JMException;
 20   
 import javax.management.ObjectName;
 21   
 
 22   
 import org.apache.hivemind.InterceptorStack;
 23   
 import org.apache.hivemind.impl.MessageFormatter;
 24   
 
 25   
 /**
 26   
  * Messages for the management package.
 27   
  * 
 28   
  * @author Achim Huegen
 29   
  * @since 1.1
 30   
  */
 31   
 public final class ManagementMessages
 32   
 {
 33   
     private static final MessageFormatter _formatter = new MessageFormatter(
 34   
             ManagementMessages.class, "ManagementStrings");
 35   
 
 36  0
     public static String errorInstantiatingPerformanceInterceptor(String serviceId,
 37   
             InterceptorStack stack, Throwable cause)
 38   
     {
 39  0
         return _formatter.format("error-instantiating-performance-interceptor", new Object[]
 40   
         { serviceId, stack.getServiceInterface().getName(), stack.getServiceExtensionPointId(),
 41   
                 cause });
 42   
     }
 43   
 
 44  0
     public static String errorInstantiatingConnectorServer(String jmxServiceURL, Map env,
 45   
             Throwable cause)
 46   
     {
 47  0
         return _formatter.format("error-instantiating-connector-server", new Object[]
 48   
         { jmxServiceURL, cause });
 49   
     }
 50   
 
 51  0
     public static String errorRegisteringMBean(ObjectName objectName, JMException cause)
 52   
     {
 53  0
         return _formatter.format("error-registering-mbean", new Object[]
 54   
         { objectName, cause });
 55   
     }
 56   
 
 57  0
     public static String errorUnregisteringMBean(ObjectName objectName, JMException cause)
 58   
     {
 59  0
         return _formatter.format("error-unregistering-mbean", new Object[]
 60   
         { objectName, cause.getMessage() });
 61   
     }
 62   
 
 63  0
     public static String errorStartMethodFailed(String startMethod, ObjectName objectName,
 64   
             Throwable cause)
 65   
     {
 66  0
         return _formatter.format("error-start-method-failed", new Object[]
 67   
         { startMethod, objectName, cause });
 68   
     }
 69   
 }