Examples of UnknownDevicesLogger


Examples of com.volantis.devrep.repository.api.devices.logging.UnknownDevicesLogger

            // Return the default device repository impl using the JDBC
            // repository and accessor we just created.
            final String logFileName =
                configuration.getUnknownDevicesLogFileName();
            final UnknownDevicesLogger logger;
            if (logFileName != null && logFileName.length() > 0) {
                logger = UnknownDevicesLogger.getLogger(
                    new File(logFileName));
            } else {
                logger = null;
View Full Code Here

Examples of com.volantis.devrep.repository.api.devices.logging.UnknownDevicesLogger

            // Initialise the device pattern cache.
            initialiseDevicePatternCache(repository, accessor);

            // Return the default device repository impl using the XML
            // repository and accessor we just created.
            final UnknownDevicesLogger logger;
            if (unknownDevicesLogFileName != null &&
                unknownDevicesLogFileName.length() > 0) {
                final File logFile = new File(unknownDevicesLogFileName);
                logger = UnknownDevicesLogger.getLogger(logFile);
            } else {
View Full Code Here

Examples of com.volantis.devrep.repository.api.devices.logging.UnknownDevicesLogger

     * <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.devrep.repository.api.devices.logging.UnknownDevicesLogger

        // todo this is nasty and may be avoided if the ServletRequestHeaders is moved to an appropriate package, or something else
        if (requestHeaders instanceof ServletRequestHeaders) {
            headers = ((ServletRequestHeaders)requestHeaders).getHttpHeaders();
        }

        final UnknownDevicesLogger logger = getUnknownDevicesLogger();

        final String defaultDeviceName = getDevicesConfiguration().getDefaultDeviceName();       

        // null value of defaultDeviceName is OK, it means that
        // we let DeviceRepository subsystem use its own default
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.