lwes-java/github-mirror.git
9 years agoModified the DatagramEnqueuer so that if a port of 0 is passed in and6/head
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.

9 years agofixed javadoc errors
Frank Maritato [Fri, 28 Sep 2012 21:23:59 +0000 (28 14:23 -0700)]
fixed javadoc errors

9 years agolicense changes
Frank Maritato [Fri, 28 Sep 2012 21:13:15 +0000 (28 14:13 -0700)]
license changes

9 years agoMerge branch 'master' of github.com:lwes/lwes-java
Frank Maritato [Fri, 28 Sep 2012 20:48:24 +0000 (28 13:48 -0700)]
Merge branch 'master' of github.com:lwes/lwes-java

9 years agoMerge pull request #3 from wh4t3ver/master
Frank Maritato [Fri, 28 Sep 2012 20:48:10 +0000 (28 13:48 -0700)]
Merge pull request #3 from wh4t3ver/master

emitter groups

9 years agoadded javadoc plugin
Frank Maritato [Fri, 28 Sep 2012 20:47:54 +0000 (28 13:47 -0700)]
added javadoc plugin

9 years agoadded some useful deployment comments
Frank Maritato [Fri, 28 Sep 2012 20:47:42 +0000 (28 13:47 -0700)]
added some useful deployment comments

9 years agoadd emitter groups code3/head
robert.wong [Fri, 28 Sep 2012 18:02:58 +0000 (28 11:02 -0700)]
add emitter groups code

9 years ago[maven-release-plugin] prepare for next development iteration
Frank Maritato [Thu, 27 Sep 2012 23:20:09 +0000 (27 16:20 -0700)]
[maven-release-plugin] prepare for next development iteration

9 years ago[maven-release-plugin] prepare release lwes-java-1.1.2lwes-java-1.1.2
Frank Maritato [Thu, 27 Sep 2012 23:20:02 +0000 (27 16:20 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.2

9 years agoadded a parent in order to deploy to central
Frank Maritato [Thu, 27 Sep 2012 22:54:19 +0000 (27 15:54 -0700)]
added a parent in order to deploy to central

9 years agoinitialize returns true/false depending on if it was able to parse the file. Fixed...
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.

9 years agoparse errors should be logged as errors, not warnings
Frank Maritato [Tue, 18 Sep 2012 23:29:09 +0000 (18 16:29 -0700)]
parse errors should be logged as errors, not warnings

9 years agoadded a requires for the rpm
Frank Maritato [Tue, 18 Sep 2012 18:51:21 +0000 (18 11:51 -0700)]
added a requires for the rpm

9 years agoexport variables and modify PATH
Frank Maritato [Tue, 18 Sep 2012 18:42:15 +0000 (18 11:42 -0700)]
export variables and modify PATH

9 years agoadded organization so rpm works and corrected path of lwes-java.sh
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

9 years agoadded a block to create an rpm (optional, not part of normal build for now)
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)

9 years agoinitial checkin
Frank Maritato [Tue, 18 Sep 2012 17:55:12 +0000 (18 10:55 -0700)]
initial checkin

9 years agoadded a method that returns the Set<String> of event names since Enumeration<String...
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

9 years agoinitial checkin
Frank Maritato [Tue, 18 Sep 2012 16:51:14 +0000 (18 09:51 -0700)]
initial checkin

9 years agoinitial checkin
Frank Maritato [Tue, 18 Sep 2012 16:51:04 +0000 (18 09:51 -0700)]
initial checkin

9 years agomoved from test tree to main
Frank Maritato [Tue, 18 Sep 2012 16:49:31 +0000 (18 09:49 -0700)]
moved from test tree to main

9 years agoadded default values for array types
Frank Maritato [Tue, 18 Sep 2012 16:49:18 +0000 (18 09:49 -0700)]
added default values for array types

9 years ago[maven-release-plugin] prepare for next development iteration
Frank Maritato [Fri, 14 Sep 2012 20:22:00 +0000 (14 13:22 -0700)]
[maven-release-plugin] prepare for next development iteration

9 years ago[maven-release-plugin] prepare release lwes-java-1.1.1lwes-java-1.1.1
Frank Maritato [Fri, 14 Sep 2012 20:21:53 +0000 (14 13:21 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.1

9 years agouse the shade plugin and produce a jar with dependencies
Frank Maritato [Fri, 14 Sep 2012 20:18:43 +0000 (14 13:18 -0700)]
use the shade plugin and produce a jar with dependencies

9 years agoinitial checkin
Frank Maritato [Fri, 14 Sep 2012 20:18:26 +0000 (14 13:18 -0700)]
initial checkin

9 years agoadded a test to verify that overriding a field with a default value works
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

9 years agoDefault values were untested and not working. Call the set method that takes 3 argume...
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.

9 years agoadded some information in preparation to deploy to maven central. For now, changed...
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

9 years ago[maven-release-plugin] prepare for next development iteration
Preston Pfarner [Tue, 11 Sep 2012 20:46:47 +0000 (11 13:46 -0700)]
[maven-release-plugin] prepare for next development iteration

9 years ago[maven-release-plugin] prepare release lwes-java-1.1.0lwes-java-1.1.0
Preston Pfarner [Tue, 11 Sep 2012 20:46:41 +0000 (11 13:46 -0700)]
[maven-release-plugin] prepare release lwes-java-1.1.0

9 years agoAdvancing version, because of the somewhat major FieldAccessor change2/head
Preston Pfarner [Wed, 5 Sep 2012 01:09:11 +0000 (4 18:09 -0700)]
Advancing version, because of the somewhat major FieldAccessor change

9 years agoUsing a single pass for validation, which is faster if the Event.iterate() iterator...
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).

9 years agoMade Event extend Iterable<FieldAccessor>, where FieldAccessor is (name,type,value...
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.

9 years agoMerge pull request #1 from lwes/fuzz-tests
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)

9 years agoDeserialize UINT64 to BigInteger by default, to preserve the whole uint64 range.1/head
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.

9 years agoFixed a bug in getValueByteSize(); added a toStringDetailed() to show more informatio...
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.

9 years ago* Moved testLengthRestriction() to parent EventTest class, so it is done for both...
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

9 years agoFixing Deserializer.deserializeUInt64ToBigInteger(), which was returning a signed...
Preston Pfarner [Fri, 31 Aug 2012 00:40:43 +0000 (30 17:40 -0700)]
Fixing Deserializer.deserializeUInt64ToBigInteger(), which was returning a signed int64

9 years agoArrayEvent should ensure that ENCODING is set, just as MapEvent always has.
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.

9 years agoFixing DefaultEvent.setUInt64Array(String,long[]), which always set it to 0
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

9 years agoCheck event and field name lengths on both implementations
Preston Pfarner [Thu, 30 Aug 2012 22:29:41 +0000 (30 15:29 -0700)]
Check event and field name lengths on both implementations

9 years agoMake EventTest abstract, and make MapEvent and ArrayEvent extend it, so we apply...
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

9 years agoNormalizing Event.toString() and sharing it in DefaultEvent
Preston Pfarner [Thu, 30 Aug 2012 21:12:16 +0000 (30 14:12 -0700)]
Normalizing Event.toString() and sharing it in DefaultEvent

9 years agoAdded a random event generator (for tests) and a serialization test that uses them.
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.

9 years ago[maven-release-plugin] prepare for next development iteration
Preston Pfarner [Wed, 8 Aug 2012 21:10:23 +0000 (8 21:10 +0000)]
[maven-release-plugin] prepare for next development iteration

9 years ago[maven-release-plugin] prepare release lwes-java-1.0.1lwes-java-1.0.1
Preston Pfarner [Wed, 8 Aug 2012 21:10:17 +0000 (8 21:10 +0000)]
[maven-release-plugin] prepare release lwes-java-1.0.1

9 years agoadded a section to exclude errant xml files like log4j configuration
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

10 years agoinitial checkin of a class that can be used to analyze esf files for consistency...
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.

10 years agocompare long value
Frank Maritato [Fri, 29 Jun 2012 22:51:00 +0000 (29 15:51 -0700)]
compare long value

10 years agoall uint64 should take in BigInteger and return BigInteger even though it is really...
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

10 years agoall uint64 should take in BigInteger and return BigInteger even though it is really...
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

10 years agofixed the method for calculating the length of the string array
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

10 years agoadded a default implementation of copyFrom(Event)
Frank Maritato [Wed, 2 May 2012 18:00:05 +0000 (2 11:00 -0700)]
added a default implementation of copyFrom(Event)

10 years agoinitial checkin - adding more test coverage; added accessors to make testing easier
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

10 years agoinitial checkin - adding more test coverage
Frank Maritato [Tue, 1 May 2012 19:06:55 +0000 (1 12:06 -0700)]
initial checkin - adding more test coverage

10 years agoadded more features to the list that i forgot
Frank Maritato [Thu, 26 Apr 2012 18:15:29 +0000 (26 11:15 -0700)]
added more features to the list that i forgot

10 years agothrow an exception if there is a command line problem so that it doesnt continue...
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

10 years agobeefing up test coverage
Frank Maritato [Thu, 26 Apr 2012 18:14:22 +0000 (26 11:14 -0700)]
beefing up test coverage

10 years agoadded bsd license
Frank Maritato [Thu, 26 Apr 2012 16:26:05 +0000 (26 09:26 -0700)]
added bsd license

10 years agoremoved unnecessary setters
Frank Maritato [Thu, 26 Apr 2012 16:25:47 +0000 (26 09:25 -0700)]
removed unnecessary setters

10 years agoAdded ArrayEvent, fixed FilterListener for multiple event names, added a test for...
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

10 years agomerged the dev-interface branch to master
Frank Maritato [Wed, 25 Apr 2012 22:08:28 +0000 (25 15:08 -0700)]
merged the dev-interface branch to master

10 years agoadded intellij files
Frank Maritato [Fri, 20 Apr 2012 17:01:47 +0000 (20 10:01 -0700)]
added intellij files

10 years agoadded args4j for the FilterListener
Frank Maritato [Mon, 9 Apr 2012 23:18:28 +0000 (9 16:18 -0700)]
added args4j for the FilterListener

10 years agoinitial checkin
Frank Maritato [Mon, 9 Apr 2012 23:18:10 +0000 (9 16:18 -0700)]
initial checkin

10 years agochanged the scm connection string as used by the release plugin
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

10 years agoadded versions for plugins that didn't have one specified; removed atti distribution...
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.

10 years agoMust defer creation of ValidationExceptions object until a real exception is hit...
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

10 years agofix documentation and ignore generated files
mlum [Tue, 28 Feb 2012 00:15:43 +0000 (27 16:15 -0800)]
fix documentation and ignore generated files

10 years agoChanged Event.serialize(OutputStream) to serialize(DataOutput)
Preston Pfarner [Mon, 30 Jan 2012 11:57:25 +0000 (30 03:57 -0800)]
Changed Event.serialize(OutputStream) to serialize(DataOutput)

10 years agoFixed an NPE in the last revision
Preston Pfarner [Sun, 29 Jan 2012 12:38:11 +0000 (29 04:38 -0800)]
Fixed an NPE in the last revision

10 years agoAdded Event.setEventName(String)
Preston Pfarner [Sun, 29 Jan 2012 11:50:53 +0000 (29 03:50 -0800)]
Added Event.setEventName(String)

10 years agoAdded Event.copyFrom(Event)
Preston Pfarner [Sun, 29 Jan 2012 11:23:25 +0000 (29 03:23 -0800)]
Added Event.copyFrom(Event)

10 years agoAdded MapEvent(Event) and Event.reset()
Preston Pfarner [Sun, 29 Jan 2012 10:32:05 +0000 (29 02:32 -0800)]
Added MapEvent(Event) and Event.reset()

10 years agoDefault log level should be INFO, not DEBUG
Preston Pfarner [Fri, 27 Jan 2012 11:23:28 +0000 (27 03:23 -0800)]
Default log level should be INFO, not DEBUG

10 years agoAdded another constructor for IPAddress
Preston Pfarner [Fri, 27 Jan 2012 11:21:36 +0000 (27 03:21 -0800)]
Added another constructor for IPAddress

10 years agoUsing DataInput instead of DataInputStream, as there's no need to be specific
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

10 years agoAdding a default constructor to MapEvent
Preston Pfarner [Thu, 26 Jan 2012 21:12:38 +0000 (26 13:12 -0800)]
Adding a default constructor to MapEvent

10 years agoAdded @Override and @Deprecated, and removed unnecessary @SuppressWarnings, to modern...
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

10 years agoAdded Event.deserialize(DataInputStream,int)
Preston Pfarner [Sat, 21 Jan 2012 01:16:19 +0000 (20 17:16 -0800)]
Added Event.deserialize(DataInputStream,int)

10 years agoAdded Event.serialize(OutputStream)
Preston Pfarner [Sat, 21 Jan 2012 01:09:21 +0000 (20 17:09 -0800)]
Added Event.serialize(OutputStream)

10 years agoPulled up hashCode() and equals() from MapEvent to DefaultEvent; allowed Events of...
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()

10 years agoAllowing partial validation of events, if some fields should not be checked
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

10 years agoMade minor changes, to improve performance for ArrayEvent (without hurting MapEvent...
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

10 years agoIgnoring generated files
Preston Pfarner [Tue, 3 Jan 2012 20:15:48 +0000 (3 12:15 -0800)]
Ignoring generated files

10 years agoMoved Event.validate() to EventTemplateDB; minor changes
Preston Pfarner [Wed, 28 Dec 2011 01:52:20 +0000 (27 17:52 -0800)]
Moved Event.validate() to EventTemplateDB; minor changes

10 years agoFinishing last check-in; adding copy() to Event interface
Preston Pfarner [Wed, 28 Dec 2011 00:39:16 +0000 (27 16:39 -0800)]
Finishing last check-in; adding copy() to Event interface

10 years agoChanging Event to an interface, with MapEvent as the classic implementation
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

10 years agoAdded support for all remaining field types to ESF parser and validator.
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.

10 years agoDeprecated TypeID's big list of static fields, replacing it with the
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[]")

10 years agoSerialized array length was being overestimated for arrays of uint16 and uint32,...
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()

10 years agoFindBugs points out that getMaxThreads() was unsynchronized, but setMaxThreads()...
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.

10 years agoUsing entrySet() (O(N) time) instead of keySet()/get() (O(N log N) time).
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).

10 years agoFound a more effective way to suppress warnings in the generated code, which now...
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.

10 years agoSimplified and documented checkForSize()
Preston Pfarner [Sat, 29 Oct 2011 00:11:01 +0000 (28 17:11 -0700)]
Simplified and documented checkForSize()

10 years agoAdded @SuppressWarnings(all) to ESFParser.java; maven is fine with that, but if anyon...
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

10 years agoRemoving unused code; documenting remaining unused code; documenting unthrown excepti...
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

10 years agoRemoved unnecessary casts, and added more testing of [de]serializer
Preston Pfarner [Fri, 28 Oct 2011 23:36:25 +0000 (28 16:36 -0700)]
Removed unnecessary casts, and added more testing of [de]serializer