You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by re...@apache.org on 2014/07/28 20:13:09 UTC

svn commit: r1614102 - in /incubator/devicemap/trunk/examples/spring: pom.xml src/main/java/org/apache/devicemap/spring/Classifier.java

Author: rezan
Date: Mon Jul 28 18:13:09 2014
New Revision: 1614102

URL: http://svn.apache.org/r1614102
Log:
cleanup

Modified:
    incubator/devicemap/trunk/examples/spring/pom.xml
    incubator/devicemap/trunk/examples/spring/src/main/java/org/apache/devicemap/spring/Classifier.java

Modified: incubator/devicemap/trunk/examples/spring/pom.xml
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/spring/pom.xml?rev=1614102&r1=1614101&r2=1614102&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/devicemap/trunk/examples/spring/src/main/java/org/apache/devicemap/spring/Classifier.java
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/examples/spring/src/main/java/org/apache/devicemap/spring/Classifier.java?rev=1614102&r1=1614101&r2=1614102&view=diff
==============================================================================
--- incubator/devicemap/trunk/examples/spring/src/main/java/org/apache/devicemap/spring/Classifier.java (original)
+++ incubator/devicemap/trunk/examples/spring/src/main/java/org/apache/devicemap/spring/Classifier.java Mon Jul 28 18:13:09 2014
@@ -21,14 +21,18 @@ package org.apache.devicemap.spring;
 import org.apache.devicemap.DeviceMapClient;
 import org.apache.devicemap.data.Device;
 import org.apache.devicemap.loader.LoaderOption;
+import org.apache.log4j.Logger;
 
 public class Classifier {
     
+    private static final Logger log = Logger.getLogger(ClassifyAPI.class);
+
     private DeviceMapClient client;
     
     public synchronized void init() throws Exception {
         client = new DeviceMapClient();
         client.initDeviceData(LoaderOption.URL);
+        log.info("DeviceMap Classifier loaded " + client.getDeviceCount() + " devices and " + client.getPatternCount() + " patterns");
     }
     
     public Device classify(String text) {