Package com.cisco.oss.foundation.monitoring.exception

Examples of com.cisco.oss.foundation.monitoring.exception.AgentRegistrationException


    }

    static void validateGenericParams(MonitoringMXBean exposedObject) throws AgentRegistrationException {
        if ((ComponentInfo.INSTANCE.getName() == null)
                || !ComponentInfo.INSTANCE.getName().matches(FoundationMonitoringConstants.APP_INSTANCE_NAMING_STANDARD)) {
            throw new AgentRegistrationException("Name attributes does not follow the naming standard, which is "
                    + FoundationMonitoringConstants.APP_NAME_NAMING_STANDARD);
        }

        if ((ComponentInfo.INSTANCE.getInstance() != null) && (!ComponentInfo.INSTANCE.getInstance().trim().equals(""))
                && !ComponentInfo.INSTANCE.getInstance().matches(FoundationMonitoringConstants.APP_INSTANCE_NAMING_STANDARD)) {
            throw new AgentRegistrationException("Instance attributes does not follow the naming standard, which is "
                    + FoundationMonitoringConstants.APP_NAME_NAMING_STANDARD);
        }
    }
View Full Code Here


        String javaVersion = System.getProperty("java.version").substring(0, 3);

        if (javaVersion.equals("1.0") || javaVersion.equals("1.1") || javaVersion.equals("1.2")
                || javaVersion.equals("1.3") || javaVersion.equals("1.4") || javaVersion.equals("1.5")) {
            LOGGER.error("Attempt to use RMIMonitoringAgent in an unsupported version of Java");
            throw new AgentRegistrationException("Unsupported java version");
        }
    }
View Full Code Here

TOP

Related Classes of com.cisco.oss.foundation.monitoring.exception.AgentRegistrationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.