Drew [Thu, 4 Oct 2012 18:36:27 +0000 (4 11:36 -0700)]
Modified the DatagramEnqueuer so that if a port of 0 is passed in and
assigned dynamically, the port field is set to the chosen port.
Frank Maritato [Fri, 28 Sep 2012 21:23:59 +0000 (28 14:23 -0700)]
fixed javadoc errors
Frank Maritato [Fri, 28 Sep 2012 21:13:15 +0000 (28 14:13 -0700)]
license changes
Frank Maritato [Fri, 28 Sep 2012 20:48:24 +0000 (28 13:48 -0700)]
Merge branch 'master' of github.com:lwes/lwes-java
Frank Maritato [Fri, 28 Sep 2012 20:48:10 +0000 (28 13:48 -0700)]
Merge pull request #3 from wh4t3ver/master
emitter groups
Frank Maritato [Fri, 28 Sep 2012 20:47:54 +0000 (28 13:47 -0700)]
added javadoc plugin
Frank Maritato [Fri, 28 Sep 2012 20:47:42 +0000 (28 13:47 -0700)]
added some useful deployment comments
robert.wong [Fri, 28 Sep 2012 18:02:58 +0000 (28 11:02 -0700)]
add emitter groups code
Frank Maritato [Thu, 27 Sep 2012 23:20:09 +0000 (27 16:20 -0700)]
[maven-release-plugin] prepare for next development iteration
Frank Maritato [Thu, 27 Sep 2012 23:20:02 +0000 (27 16:20 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.2
Frank Maritato [Thu, 27 Sep 2012 22:54:19 +0000 (27 15:54 -0700)]
added a parent in order to deploy to central
Frank Maritato [Tue, 18 Sep 2012 23:29:43 +0000 (18 16:29 -0700)]
initialize returns true/false depending on if it was able to parse the file. Fixed the code to deal with this.
Frank Maritato [Tue, 18 Sep 2012 23:29:09 +0000 (18 16:29 -0700)]
parse errors should be logged as errors, not warnings
Frank Maritato [Tue, 18 Sep 2012 18:51:21 +0000 (18 11:51 -0700)]
added a requires for the rpm
Frank Maritato [Tue, 18 Sep 2012 18:42:15 +0000 (18 11:42 -0700)]
export variables and modify PATH
Frank Maritato [Tue, 18 Sep 2012 18:41:55 +0000 (18 11:41 -0700)]
added organization so rpm works and corrected path of lwes-java.sh
Frank Maritato [Tue, 18 Sep 2012 17:55:33 +0000 (18 10:55 -0700)]
added a block to create an rpm (optional, not part of normal build for now)
Frank Maritato [Tue, 18 Sep 2012 17:55:12 +0000 (18 10:55 -0700)]
initial checkin
Frank Maritato [Tue, 18 Sep 2012 16:52:27 +0000 (18 09:52 -0700)]
added a method that returns the Set<String> of event names since Enumeration<String> is pretty useless these days
Frank Maritato [Tue, 18 Sep 2012 16:51:14 +0000 (18 09:51 -0700)]
initial checkin
Frank Maritato [Tue, 18 Sep 2012 16:51:04 +0000 (18 09:51 -0700)]
initial checkin
Frank Maritato [Tue, 18 Sep 2012 16:49:31 +0000 (18 09:49 -0700)]
moved from test tree to main
Frank Maritato [Tue, 18 Sep 2012 16:49:18 +0000 (18 09:49 -0700)]
added default values for array types
Frank Maritato [Fri, 14 Sep 2012 20:22:00 +0000 (14 13:22 -0700)]
[maven-release-plugin] prepare for next development iteration
Frank Maritato [Fri, 14 Sep 2012 20:21:53 +0000 (14 13:21 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.1
Frank Maritato [Fri, 14 Sep 2012 20:18:43 +0000 (14 13:18 -0700)]
use the shade plugin and produce a jar with dependencies
Frank Maritato [Fri, 14 Sep 2012 20:18:26 +0000 (14 13:18 -0700)]
initial checkin
Frank Maritato [Thu, 13 Sep 2012 21:32:04 +0000 (13 14:32 -0700)]
added a test to verify that overriding a field with a default value works
Frank Maritato [Thu, 13 Sep 2012 21:29:04 +0000 (13 14:29 -0700)]
Default values were untested and not working. Call the set method that takes 3 arguments to fix the problem.
Frank Maritato [Thu, 13 Sep 2012 00:48:18 +0000 (12 17:48 -0700)]
added some information in preparation to deploy to maven central. For now, changed the goals of release plugin to just run package
Preston Pfarner [Tue, 11 Sep 2012 20:46:47 +0000 (11 13:46 -0700)]
[maven-release-plugin] prepare for next development iteration
Preston Pfarner [Tue, 11 Sep 2012 20:46:41 +0000 (11 13:46 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.0
Preston Pfarner [Wed, 5 Sep 2012 01:09:11 +0000 (4 18:09 -0700)]
Advancing version, because of the somewhat major FieldAccessor change
Preston Pfarner [Wed, 5 Sep 2012 00:59:02 +0000 (4 17:59 -0700)]
Using a single pass for validation, which is faster if the Event.iterate() iterator is faster than the old way of looping over all fields and then looking them up separately. This takes MapEvent from O(N*log(N)) to O(N) and ArrayEvent from O(N^2) to (N).
Preston Pfarner [Wed, 5 Sep 2012 00:50:32 +0000 (4 17:50 -0700)]
Made Event extend Iterable<FieldAccessor>, where FieldAccessor is (name,type,value). This allows more efficient traversal of the entire event.
Frank Maritato [Tue, 4 Sep 2012 21:54:08 +0000 (4 14:54 -0700)]
Merge pull request #1 from lwes/fuzz-tests
Fuzz tests (tests with randomly-generated events)
Preston Pfarner [Fri, 31 Aug 2012 01:37:33 +0000 (30 18:37 -0700)]
Deserialize UINT64 to BigInteger by default, to preserve the whole uint64 range.
Preston Pfarner [Fri, 31 Aug 2012 01:36:41 +0000 (30 18:36 -0700)]
Fixed a bug in getValueByteSize(); added a toStringDetailed() to show more information about the event, for debugging.
Preston Pfarner [Fri, 31 Aug 2012 00:43:09 +0000 (30 17:43 -0700)]
* Moved testLengthRestriction() to parent EventTest class, so it is done for both event types.
* Fixed an out-of-range uint32 test value
* Testing serialize()/deserialize() for consistency
* Added testIntBounds() to try extrema for integral types
Preston Pfarner [Fri, 31 Aug 2012 00:40:43 +0000 (30 17:40 -0700)]
Fixing Deserializer.deserializeUInt64ToBigInteger(), which was returning a signed int64
Preston Pfarner [Fri, 31 Aug 2012 00:39:35 +0000 (30 17:39 -0700)]
ArrayEvent should ensure that ENCODING is set, just as MapEvent always has.
Preston Pfarner [Fri, 31 Aug 2012 00:39:04 +0000 (30 17:39 -0700)]
Fixing DefaultEvent.setUInt64Array(String,long[]), which always set it to 0
Preston Pfarner [Thu, 30 Aug 2012 22:29:41 +0000 (30 15:29 -0700)]
Check event and field name lengths on both implementations
Preston Pfarner [Thu, 30 Aug 2012 22:28:53 +0000 (30 15:28 -0700)]
Make EventTest abstract, and make MapEvent and ArrayEvent extend it, so we apply all EventTest tests to both implementations
Preston Pfarner [Thu, 30 Aug 2012 21:12:16 +0000 (30 14:12 -0700)]
Normalizing Event.toString() and sharing it in DefaultEvent
Preston Pfarner [Thu, 30 Aug 2012 20:39:33 +0000 (30 13:39 -0700)]
Added a random event generator (for tests) and a serialization test that uses them.
Preston Pfarner [Wed, 8 Aug 2012 21:10:23 +0000 (8 21:10 +0000)]
[maven-release-plugin] prepare for next development iteration
Preston Pfarner [Wed, 8 Aug 2012 21:10:17 +0000 (8 21:10 +0000)]
[maven-release-plugin] prepare release lwes-java-1.0.1
Frank Maritato [Wed, 1 Aug 2012 18:38:20 +0000 (1 11:38 -0700)]
added a section to exclude errant xml files like log4j configuration
Frank Maritato [Mon, 2 Jul 2012 21:05:50 +0000 (2 14:05 -0700)]
initial checkin of a class that can be used to analyze esf files for consistency, best practices, etc.
Frank Maritato [Fri, 29 Jun 2012 22:51:00 +0000 (29 15:51 -0700)]
compare long value
Frank Maritato [Thu, 3 May 2012 00:26:04 +0000 (2 17:26 -0700)]
all uint64 should take in BigInteger and return BigInteger even though it is really using the long representation underneath
Frank Maritato [Thu, 3 May 2012 00:25:40 +0000 (2 17:25 -0700)]
all uint64 should take in BigInteger and return BigInteger even though it is really using the long representation underneath
Frank Maritato [Wed, 2 May 2012 23:43:59 +0000 (2 16:43 -0700)]
fixed the method for calculating the length of the string array
Frank Maritato [Wed, 2 May 2012 18:00:05 +0000 (2 11:00 -0700)]
added a default implementation of copyFrom(Event)
Frank Maritato [Wed, 2 May 2012 00:03:13 +0000 (1 17:03 -0700)]
initial checkin - adding more test coverage; added accessors to make testing easier
Frank Maritato [Tue, 1 May 2012 19:06:55 +0000 (1 12:06 -0700)]
initial checkin - adding more test coverage
Frank Maritato [Thu, 26 Apr 2012 18:15:29 +0000 (26 11:15 -0700)]
added more features to the list that i forgot
Frank Maritato [Thu, 26 Apr 2012 18:15:09 +0000 (26 11:15 -0700)]
throw an exception if there is a command line problem so that it doesnt continue and so that is testable
Frank Maritato [Thu, 26 Apr 2012 18:14:22 +0000 (26 11:14 -0700)]
beefing up test coverage
Frank Maritato [Thu, 26 Apr 2012 16:26:05 +0000 (26 09:26 -0700)]
added bsd license
Frank Maritato [Thu, 26 Apr 2012 16:25:47 +0000 (26 09:25 -0700)]
removed unnecessary setters
Frank Maritato [Thu, 26 Apr 2012 00:21:22 +0000 (25 17:21 -0700)]
Added ArrayEvent, fixed FilterListener for multiple event names, added a test for FilterListener, made EventSystemException a RuntimeException and removed throws clauses
Frank Maritato [Wed, 25 Apr 2012 22:08:28 +0000 (25 15:08 -0700)]
merged the dev-interface branch to master
Frank Maritato [Fri, 20 Apr 2012 17:01:47 +0000 (20 10:01 -0700)]
added intellij files
Frank Maritato [Mon, 9 Apr 2012 23:18:28 +0000 (9 16:18 -0700)]
added args4j for the FilterListener
Frank Maritato [Mon, 9 Apr 2012 23:18:10 +0000 (9 16:18 -0700)]
initial checkin
Frank Maritato [Mon, 26 Mar 2012 23:56:49 +0000 (26 16:56 -0700)]
changed the scm connection string as used by the release plugin
Frank Maritato [Mon, 26 Mar 2012 23:38:49 +0000 (26 16:38 -0700)]
added versions for plugins that didn't have one specified; removed atti distribution management and reporting sections.
Preston Pfarner [Thu, 1 Mar 2012 05:06:38 +0000 (29 21:06 -0800)]
Must defer creation of ValidationExceptions object until a real exception is hit, or else CPU usage is dominated by finding stack traces
mlum [Tue, 28 Feb 2012 00:15:43 +0000 (27 16:15 -0800)]
fix documentation and ignore generated files
Preston Pfarner [Mon, 30 Jan 2012 11:57:25 +0000 (30 03:57 -0800)]
Changed Event.serialize(OutputStream) to serialize(DataOutput)
Preston Pfarner [Sun, 29 Jan 2012 12:38:11 +0000 (29 04:38 -0800)]
Fixed an NPE in the last revision
Preston Pfarner [Sun, 29 Jan 2012 11:50:53 +0000 (29 03:50 -0800)]
Added Event.setEventName(String)
Preston Pfarner [Sun, 29 Jan 2012 11:23:25 +0000 (29 03:23 -0800)]
Added Event.copyFrom(Event)
Preston Pfarner [Sun, 29 Jan 2012 10:32:05 +0000 (29 02:32 -0800)]
Added MapEvent(Event) and Event.reset()
Preston Pfarner [Fri, 27 Jan 2012 11:23:28 +0000 (27 03:23 -0800)]
Default log level should be INFO, not DEBUG
Preston Pfarner [Fri, 27 Jan 2012 11:21:36 +0000 (27 03:21 -0800)]
Added another constructor for IPAddress
Preston Pfarner [Fri, 27 Jan 2012 11:20:57 +0000 (27 03:20 -0800)]
Using DataInput instead of DataInputStream, as there's no need to be specific
Preston Pfarner [Thu, 26 Jan 2012 21:12:38 +0000 (26 13:12 -0800)]
Adding a default constructor to MapEvent
Preston Pfarner [Mon, 23 Jan 2012 22:41:27 +0000 (23 14:41 -0800)]
Added @Override and @Deprecated, and removed unnecessary @SuppressWarnings, to modernize and eliminate compiler warnings
Preston Pfarner [Sat, 21 Jan 2012 01:16:19 +0000 (20 17:16 -0800)]
Added Event.deserialize(DataInputStream,int)
Preston Pfarner [Sat, 21 Jan 2012 01:09:21 +0000 (20 17:09 -0800)]
Added Event.serialize(OutputStream)
Preston Pfarner [Fri, 20 Jan 2012 22:35:55 +0000 (20 14:35 -0800)]
Pulled up hashCode() and equals() from MapEvent to DefaultEvent; allowed Events of different types to be equal; ordering getEventAttributes()
Preston Pfarner [Wed, 18 Jan 2012 02:01:04 +0000 (17 18:01 -0800)]
Allowing partial validation of events, if some fields should not be checked
Preston Pfarner [Tue, 3 Jan 2012 20:42:34 +0000 (3 12:42 -0800)]
Made minor changes, to improve performance for ArrayEvent (without hurting MapEvent); eliminated warnings; avoiding byte[] when IPAddress is intended
Preston Pfarner [Tue, 3 Jan 2012 20:15:48 +0000 (3 12:15 -0800)]
Ignoring generated files
Preston Pfarner [Wed, 28 Dec 2011 01:52:20 +0000 (27 17:52 -0800)]
Moved Event.validate() to EventTemplateDB; minor changes
Preston Pfarner [Wed, 28 Dec 2011 00:39:16 +0000 (27 16:39 -0800)]
Finishing last check-in; adding copy() to Event interface
Preston Pfarner [Wed, 28 Dec 2011 00:32:05 +0000 (27 16:32 -0800)]
Changing Event to an interface, with MapEvent as the classic implementation
Preston Pfarner [Tue, 27 Dec 2011 12:09:36 +0000 (27 04:09 -0800)]
Added support for all remaining field types to ESF parser and validator.
Preston Pfarner [Tue, 27 Dec 2011 06:42:27 +0000 (26 22:42 -0800)]
Deprecated TypeID's big list of static fields, replacing it with the
FieldType enum, which helps us ensure that all types appear in all
switch statements, as well as reducing the number of string
comparisons. This turned up some missing functionality (below).
TypeID-based constructs were deprecated, not removed, to minimize impact.
BaseType.getByteSize(): added support for byte,ip_addr[]
BaseType.parseFromString(): added support for byte,float,double
TODO: BaseType.parseFromString() still does not support array types.
The nontrivial case is string[], as we would have to agree on
delimiters, and should make the format for such fields compatible with
whatever parsing rule we choose.
Added serialization of byte,ip_addr[] fields.
Added deserialization of byte,double,float,ip_addr[] fields
TODO: Where is 'name' used? Is there any reason why it should differ from
the ESF label? (e.g. "[Lstring" vs. "string[]")
Preston Pfarner [Wed, 21 Dec 2011 23:51:36 +0000 (21 15:51 -0800)]
Serialized array length was being overestimated for arrays of uint16 and uint32, resulting in unused bytes at the end of the serialized form. Added a check for this in serialize()
Preston Pfarner [Sat, 29 Oct 2011 01:38:31 +0000 (28 18:38 -0700)]
FindBugs points out that getMaxThreads() was unsynchronized, but setMaxThreads() was synchronized.
Preston Pfarner [Sat, 29 Oct 2011 01:21:50 +0000 (28 18:21 -0700)]
Using entrySet() (O(N) time) instead of keySet()/get() (O(N log N) time).
Preston Pfarner [Sat, 29 Oct 2011 01:06:38 +0000 (28 18:06 -0700)]
Found a more effective way to suppress warnings in the generated code, which now covers all of the javacc classes.
Preston Pfarner [Sat, 29 Oct 2011 00:11:01 +0000 (28 17:11 -0700)]
Simplified and documented checkForSize()
Preston Pfarner [Fri, 28 Oct 2011 23:59:19 +0000 (28 16:59 -0700)]
Added @SuppressWarnings(all) to ESFParser.java; maven is fine with that, but if anyone runs into problems then we can roll it back. Sadly, I know of no way to convince javacc to add that tag to its automatic classes (ESFParserTokenManager,SimpleCharStream,TokenMgrError), all of which produce warnings
Preston Pfarner [Fri, 28 Oct 2011 23:43:50 +0000 (28 16:43 -0700)]
Removing unused code; documenting remaining unused code; documenting unthrown exceptions on extendable classes
Preston Pfarner [Fri, 28 Oct 2011 23:36:25 +0000 (28 16:36 -0700)]
Removed unnecessary casts, and added more testing of [de]serializer