Package com.volantis.devrep.repository.api.devices.logging

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


            // 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


            // 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

     * <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

        // 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

Related Classes of com.volantis.devrep.repository.api.devices.logging.UnknownDevicesLogger$Semaphore

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.