org.opengts.db
Class ParseEvent

java.lang.Object
  extended by org.opengts.db.ParseEvent
All Implemented Interfaces:
GeoEvent.GeoEventHandler

public class ParseEvent
extends java.lang.Object
implements GeoEvent.GeoEventHandler


Nested Class Summary
static interface ParseEvent.ParseEventHandler
           
 
Field Summary
static boolean DEBUG_MODE
           
 
Constructor Summary
ParseEvent(DCServerConfig dcserver, ParseEvent.ParseEventHandler parseHandler, java.lang.String accountID, java.lang.String deviceID)
          Consgtructor
 
Method Summary
 int handleGeoEvent(GeoEvent gev)
          Callback to handle event
protected  boolean insertEventRecord(GeoEvent gev)
           
static void main(java.lang.String[] argv)
           
 boolean parse(java.io.File parseFile)
          Parse file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_MODE

public static boolean DEBUG_MODE
Constructor Detail

ParseEvent

public ParseEvent(DCServerConfig dcserver,
                  ParseEvent.ParseEventHandler parseHandler,
                  java.lang.String accountID,
                  java.lang.String deviceID)
Consgtructor

Method Detail

parse

public boolean parse(java.io.File parseFile)
Parse file


handleGeoEvent

public int handleGeoEvent(GeoEvent gev)
Callback to handle event

Specified by:
handleGeoEvent in interface GeoEvent.GeoEventHandler

insertEventRecord

protected boolean insertEventRecord(GeoEvent gev)

main

public static void main(java.lang.String[] argv)