Examples of UnknownDevicesLoggingConfiguration


Examples of com.volantis.mcs.runtime.configuration.UnknownDevicesLoggingConfiguration

            // Initialise this last as it breaks in some tests which causes
            // all sorts of problems.
            initializeNamespaceSwitchContentHandlerMap();

            // start the e-mail sending process for abstract and unknown devices
            final UnknownDevicesLoggingConfiguration unknownDevicesLogging =
                getUnknownDevicesConfiguration();
            if (unknownDevicesLogging != null) {
                // resolve the file name to an absolute path
                final String fileName = unknownDevicesLogging.getFileName();
                if (fileName != null && fileName.length() > 0) {
                    final File file =
                        configContext.getConfigRelativeFile(fileName, false);
                    unknownDevicesLogging.setFileName(file.getAbsolutePath());
                    initializeUnknownDevicesLogger();
                    final EmailNotifierConfiguration emailNotifierConfiguration =
                        unknownDevicesLogging.getEmailNotifier();
                    if (emailNotifierConfiguration != null &&
                            emailNotifierConfiguration.isEnabled()) {
                        final EmailNotifierConfig config =
                            createEmailNotifierConfig(emailNotifierConfiguration);
                        final EmailNotifierThread thread =
View Full Code Here

Examples of com.volantis.mcs.runtime.configuration.UnknownDevicesLoggingConfiguration

     * Initializes the logger for unknown/abstract devices.
     *
     * <p>Sets it to null, if the log file name is empty string.</p>
     */
    private void initializeUnknownDevicesLogger() {
        final UnknownDevicesLoggingConfiguration config =
            getUnknownDevicesConfiguration();
        UnknownDevicesLogger devicesLogger = null;
        if (config != null) {
            final String fileName = config.getFileName();
            if (fileName.length() != 0) {
                final File logFile = new File(fileName);
                devicesLogger = UnknownDevicesLogger.getLogger(logFile);
            }
        }
View Full Code Here

Examples of com.volantis.mcs.runtime.configuration.UnknownDevicesLoggingConfiguration

     */
    private UnknownDevicesLoggingConfiguration getUnknownDevicesConfiguration() {
        final DevicesConfiguration devicesConfiguration =
            getDevicesConfiguration();

        UnknownDevicesLoggingConfiguration unknownDevicesConfig =
            devicesConfiguration.getUnknownDevicesLogging();
        return unknownDevicesConfig;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.