aquarium
11 years agoMore flexible resource event parsing
Christos KK Loverdos [Mon, 17 Sep 2012 09:41:37 +0000 (12:41 +0300)]
More flexible resource event parsing

11 years agoSet received millis
Christos KK Loverdos [Mon, 17 Sep 2012 07:47:19 +0000 (10:47 +0300)]
Set received millis

11 years agoModified BillEntry so that resource events are grouped by service name (e.g. diskspace)
Prodromos Gerakios [Fri, 14 Sep 2012 14:00:52 +0000 (17:00 +0300)]
Modified BillEntry so that resource events are grouped by service name (e.g. diskspace)

11 years agoAdd the versions key that pithos sends in details
Christos KK Loverdos [Fri, 14 Sep 2012 12:11:30 +0000 (15:11 +0300)]
Add the versions key that pithos sends in details

11 years agoEnsure java version and upgrade a couple of maven plugins
Christos KK Loverdos [Fri, 14 Sep 2012 09:30:21 +0000 (12:30 +0300)]
Ensure java version and upgrade a couple of maven plugins

11 years agoSquash a few message initialization bugs
Prodromos Gerakios [Thu, 13 Sep 2012 12:29:30 +0000 (15:29 +0300)]
Squash a few message initialization bugs

11 years agoAdded Copyright notice and removed unused imports
Prodromos Gerakios [Thu, 13 Sep 2012 08:55:32 +0000 (11:55 +0300)]
Added Copyright notice and removed unused imports

11 years agoAdded support for parsing JSON the old way
Prodromos Gerakios [Thu, 13 Sep 2012 08:46:53 +0000 (11:46 +0300)]
Added support for parsing JSON the old way

11 years agoSeveral fixes here and there => Removed all exceptions caused by Avro. Rolled back...
Prodromos Gerakios [Wed, 12 Sep 2012 10:03:58 +0000 (13:03 +0300)]
Several fixes here and there => Removed all exceptions caused by Avro. Rolled back CachingPolicyStore load algorithm.

11 years agoFix some casting errors that had never appeared during compilation before. Ever
Christos KK Loverdos [Mon, 10 Sep 2012 15:37:23 +0000 (18:37 +0300)]
Fix some casting errors that had never appeared during compilation before. Ever

11 years agoInitialize resource type map in new user state
Christos KK Loverdos [Mon, 10 Sep 2012 15:01:14 +0000 (18:01 +0300)]
Initialize resource type map in new user state

11 years agoProperly add userID in user agreement
Christos KK Loverdos [Mon, 10 Sep 2012 14:49:20 +0000 (17:49 +0300)]
Properly add userID in user agreement

11 years agoTmp check for the existense of user state
Christos KK Loverdos [Mon, 10 Sep 2012 14:31:47 +0000 (17:31 +0300)]
Tmp check for the existense of user state

11 years agoInitialize the proper var
Christos KK Loverdos [Mon, 10 Sep 2012 14:25:03 +0000 (17:25 +0300)]
Initialize the proper var

11 years agoFix initialization of user agreement list
Christos KK Loverdos [Mon, 10 Sep 2012 14:22:32 +0000 (17:22 +0300)]
Fix initialization of user agreement list

11 years agoFix initialization of userAgreementHistoryModel
Christos KK Loverdos [Mon, 10 Sep 2012 14:18:39 +0000 (17:18 +0300)]
Fix initialization of userAgreementHistoryModel

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Mon, 10 Sep 2012 14:08:29 +0000 (17:08 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoFixed selectorValue
Prodromos Gerakios [Mon, 10 Sep 2012 14:07:38 +0000 (17:07 +0300)]
Fixed selectorValue

11 years agoFix an NPE
Christos KK Loverdos [Mon, 10 Sep 2012 14:04:19 +0000 (17:04 +0300)]
Fix an NPE

11 years agoFix a bug with mongodb cursor
Christos KK Loverdos [Mon, 10 Sep 2012 14:02:11 +0000 (17:02 +0300)]
Fix a bug with mongodb cursor

11 years agoUpdate policy.json in test
Christos KK Loverdos [Mon, 10 Sep 2012 13:59:05 +0000 (16:59 +0300)]
Update policy.json in test

11 years agoMinor fix in BillTest
Prodromos Gerakios [Mon, 10 Sep 2012 13:56:23 +0000 (16:56 +0300)]
Minor fix in BillTest

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Christos KK Loverdos [Mon, 10 Sep 2012 13:31:50 +0000 (16:31 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

Conflicts:
src/main/scala/gr/grnet/aquarium/charging/ContinuousChargingBehavior.scala
src/main/scala/gr/grnet/aquarium/charging/bill/BillEntry.scala
src/test/scala/gr/grnet/aquarium/BillTest.scala

11 years agoNow using schema-based messages
Christos KK Loverdos [Mon, 10 Sep 2012 11:47:27 +0000 (14:47 +0300)]
Now using schema-based messages

11 years agoFixed BillEntry: milliseconds are rounded off. BillTest can send ordered/out of order...
Prodromos Gerakios [Fri, 7 Sep 2012 13:20:03 +0000 (16:20 +0300)]
Fixed BillEntry: milliseconds are rounded off. BillTest can send ordered/out of order messages.

11 years agoFinished scenarios and minor fixes.
Prodromos Gerakios [Thu, 6 Sep 2012 14:36:12 +0000 (17:36 +0300)]
Finished scenarios and minor fixes.

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Thu, 6 Sep 2012 10:19:18 +0000 (13:19 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoFixed RabbitMQProducer init delay. RabbitMQProducer is now a service.
Prodromos Gerakios [Thu, 6 Sep 2012 10:18:54 +0000 (13:18 +0300)]
Fixed RabbitMQProducer init delay. RabbitMQProducer is now a service.

11 years agoCustom handling of diskspace details in virtual events. NOT GOOD.
Christos KK Loverdos [Thu, 6 Sep 2012 09:08:45 +0000 (12:08 +0300)]
Custom handling of diskspace details in virtual events. NOT GOOD.

11 years agoReverted chagned to BillEntry.
Prodromos Gerakios [Thu, 6 Sep 2012 09:00:31 +0000 (12:00 +0300)]
Reverted chagned to BillEntry.

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Thu, 6 Sep 2012 08:47:36 +0000 (11:47 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoMinor fix in BillEntry (Virtual Resource event have no file path).
Prodromos Gerakios [Thu, 6 Sep 2012 08:46:47 +0000 (11:46 +0300)]
Minor fix in BillEntry (Virtual Resource event have no file path).

11 years agoNow astakos also publishes resource events (for addcredits)
Christos KK Loverdos [Thu, 6 Sep 2012 07:10:57 +0000 (10:10 +0300)]
Now astakos also publishes resource events (for addcredits)

11 years agoFix json representation of numbers in the default policy
Christos KK Loverdos [Fri, 31 Aug 2012 15:17:57 +0000 (18:17 +0300)]
Fix json representation of numbers in the default policy

11 years agoWIP integrating Avro-style policy messages
Christos KK Loverdos [Fri, 31 Aug 2012 14:55:27 +0000 (17:55 +0300)]
WIP integrating Avro-style policy messages

11 years agoChange aliased to aliases in avro idl
Christos KK Loverdos [Fri, 31 Aug 2012 10:41:23 +0000 (13:41 +0300)]
Change aliased to aliases in avro idl

11 years agoRename all messages
Christos KK Loverdos [Fri, 31 Aug 2012 09:49:34 +0000 (12:49 +0300)]
Rename all messages

11 years agoRename conf to policy and make parentID optional (via null)
Christos KK Loverdos [Fri, 31 Aug 2012 09:12:54 +0000 (12:12 +0300)]
Rename conf to policy and make parentID optional (via null)

11 years agoAdded documentation to CronSpec and TimeslotComputations. Fixed a bug in ContinuousCh...
Prodromos Gerakios [Thu, 30 Aug 2012 14:50:31 +0000 (17:50 +0300)]
Added documentation to CronSpec and TimeslotComputations. Fixed a bug in ContinuousChargingBehavior. BillTest now sends more RC events to aquarium.

11 years agoGenericPayloadHandler: one type less
Christos KK Loverdos [Thu, 30 Aug 2012 12:51:01 +0000 (15:51 +0300)]
GenericPayloadHandler: one type less

11 years agoSimplify the types of stored things
Christos KK Loverdos [Thu, 30 Aug 2012 12:33:32 +0000 (15:33 +0300)]
Simplify the types of stored things

11 years agoMore Avro stuff
Christos KK Loverdos [Thu, 30 Aug 2012 11:59:35 +0000 (14:59 +0300)]
More Avro stuff

11 years agoMove Avro generated classes to gen subpackage
Christos KK Loverdos [Thu, 30 Aug 2012 09:25:52 +0000 (12:25 +0300)]
Move Avro generated classes to gen subpackage

11 years agoProduce JSON policy configuration from Avro message
Christos KK Loverdos [Wed, 29 Aug 2012 14:23:31 +0000 (17:23 +0300)]
Produce JSON policy configuration from Avro message

11 years agoAdd utility methods for message generation
Christos KK Loverdos [Wed, 29 Aug 2012 13:35:44 +0000 (16:35 +0300)]
Add utility methods for message generation

11 years agoFurther additions to Avro messages
Christos KK Loverdos [Wed, 29 Aug 2012 13:02:26 +0000 (16:02 +0300)]
Further additions to Avro messages

PolicyTest is failing.

11 years agoMake unit name for addcredits uppercase
Christos KK Loverdos [Wed, 29 Aug 2012 12:56:38 +0000 (15:56 +0300)]
Make unit name for addcredits uppercase

11 years ago@inline a few trivial methods
Christos KK Loverdos [Wed, 29 Aug 2012 12:55:25 +0000 (15:55 +0300)]
@inline a few trivial methods

11 years agoAdjust the rest service to use the new json helpers
Christos KK Loverdos [Wed, 29 Aug 2012 12:54:14 +0000 (15:54 +0300)]
Adjust the rest service to use the new json helpers

11 years agoAdd Avro-related helpers
Christos KK Loverdos [Wed, 29 Aug 2012 12:51:57 +0000 (15:51 +0300)]
Add Avro-related helpers

11 years agoAdd some jackson-based json helpers
Christos KK Loverdos [Wed, 29 Aug 2012 12:49:47 +0000 (15:49 +0300)]
Add some jackson-based json helpers

Jackson is pulled as a dependency from Avro and note that it is an old
version (< 2).

11 years agoAdded charging behavior for VMs and fixed BillEntry
Prodromos Gerakios [Wed, 29 Aug 2012 10:00:59 +0000 (13:00 +0300)]
Added charging behavior for VMs and fixed BillEntry

11 years agoOne more test case with avro + json
Christos KK Loverdos [Tue, 28 Aug 2012 09:49:31 +0000 (12:49 +0300)]
One more test case with avro + json

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Tue, 28 Aug 2012 09:01:50 +0000 (12:01 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoFixed RabbitMQProducer. Added BillTest.scala that simulates IM and RC events.
Prodromos Gerakios [Tue, 28 Aug 2012 09:01:04 +0000 (12:01 +0300)]
Fixed RabbitMQProducer. Added BillTest.scala that simulates IM and RC events.

11 years agoAdd a test case for Avro-related message schema
Christos KK Loverdos [Mon, 27 Aug 2012 14:42:00 +0000 (17:42 +0300)]
Add a test case for Avro-related message schema

11 years agoTemporarily prefixing avro message names with _
Christos KK Loverdos [Mon, 27 Aug 2012 14:35:51 +0000 (17:35 +0300)]
Temporarily prefixing avro message names with _

11 years agoAdding more Avro stuff
Christos KK Loverdos [Mon, 27 Aug 2012 13:50:06 +0000 (16:50 +0300)]
Adding more Avro stuff

11 years agoEnable deprecation warnings for javac
Christos KK Loverdos [Mon, 27 Aug 2012 12:14:30 +0000 (15:14 +0300)]
Enable deprecation warnings for javac

11 years agoRemove simulation package
Christos KK Loverdos [Mon, 27 Aug 2012 12:09:14 +0000 (15:09 +0300)]
Remove simulation package

Aquarium is now configurable enough to not need a separate simulation
package.

11 years agoRemove unused class
Christos KK Loverdos [Mon, 27 Aug 2012 11:33:36 +0000 (14:33 +0300)]
Remove unused class

11 years agoFirst-cut of Avro messages
Christos KK Loverdos [Mon, 27 Aug 2012 10:58:47 +0000 (13:58 +0300)]
First-cut of Avro messages

11 years agoRealtime calc for continuous charging behavior
Christos KK Loverdos [Fri, 24 Aug 2012 14:51:17 +0000 (17:51 +0300)]
Realtime calc for continuous charging behavior

Highly unoptimized and memory-unfriendly, proof of concept for the
moment.

11 years agoSpecific API for realtime calculations and first-cut implementation via virtual events
Christos KK Loverdos [Fri, 24 Aug 2012 13:09:56 +0000 (16:09 +0300)]
Specific API for realtime calculations and first-cut implementation via virtual events

11 years agoFixed BillEntry
Prodromos Gerakios [Fri, 24 Aug 2012 09:17:54 +0000 (12:17 +0300)]
Fixed BillEntry

11 years agoRemove unused code
Christos KK Loverdos [Fri, 24 Aug 2012 09:13:05 +0000 (12:13 +0300)]
Remove unused code

11 years agoBill and BillEntry
Prodromos Gerakios [Thu, 23 Aug 2012 14:10:41 +0000 (17:10 +0300)]
Bill and BillEntry

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Thu, 23 Aug 2012 13:26:08 +0000 (16:26 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoRefactored BillEntry and relevant classes.
Prodromos Gerakios [Thu, 23 Aug 2012 13:24:30 +0000 (16:24 +0300)]
Refactored BillEntry and relevant classes.

11 years agoImplement Continuous behavior with the new scheme
Christos KK Loverdos [Thu, 23 Aug 2012 13:22:02 +0000 (16:22 +0300)]
Implement Continuous behavior with the new scheme

Fix a bunch of related stuff in the process.

11 years agoAnother JSON-friendliness round
Christos KK Loverdos [Thu, 23 Aug 2012 09:45:07 +0000 (12:45 +0300)]
Another JSON-friendliness round

This time it could not deserialize due to some private field. Oh,
well...

11 years agoGet rid of charging reason to make life easier with JSON
Christos KK Loverdos [Thu, 23 Aug 2012 08:40:51 +0000 (11:40 +0300)]
Get rid of charging reason to make life easier with JSON

Unfortunately, the situation with JSON deserialization errors is getting
worse. I knew it, so I should have followed another path. Let me say it
once more:

Never, ever use string-based protocols/formats as your base.

Circa 2009: https://twitter.com/loverdos/status/5761681752

The bad news is that I do not have time to fix it in the next couple of
days due to a pending demo. Charging reason is not essential for the
demo, so I ditch it and put a reminder here so as to probably
reintroduce it in the future.

11 years agoAdd rabbitmq.imevents.credit property
Christos KK Loverdos [Wed, 22 Aug 2012 15:12:42 +0000 (18:12 +0300)]
Add rabbitmq.imevents.credit property

11 years agoImplement Once behavior with the new scheme. Refactor in the process
Christos KK Loverdos [Wed, 22 Aug 2012 14:08:30 +0000 (17:08 +0300)]
Implement Once behavior with the new scheme. Refactor in the process

11 years agoFixed RabbitMQProducer. Now it is fully reliable.
Prodromos Gerakios [Tue, 21 Aug 2012 13:51:08 +0000 (16:51 +0300)]
Fixed RabbitMQProducer. Now it is fully reliable.

11 years agoTowards a perfect RabbitMQProducer -> actor not receiving msgs
Prodromos Gerakios [Tue, 21 Aug 2012 13:26:11 +0000 (16:26 +0300)]
Towards a perfect RabbitMQProducer -> actor not receiving msgs

11 years agoFixed ping.sh
Prodromos Gerakios [Mon, 20 Aug 2012 10:53:36 +0000 (13:53 +0300)]
Fixed ping.sh

11 years agoadded ping.sh
Prodromos Gerakios [Mon, 20 Aug 2012 08:54:33 +0000 (11:54 +0300)]
added ping.sh

11 years agoChange var to val
Christos KK Loverdos [Fri, 17 Aug 2012 14:16:14 +0000 (17:16 +0300)]
Change var to val

11 years agoAdhere to existing naming conventions
Christos KK Loverdos [Fri, 17 Aug 2012 14:10:58 +0000 (17:10 +0300)]
Adhere to existing naming conventions

NOTE: Test integration with the receiving system (Astakos).

11 years agoWIP charging behavior
Christos KK Loverdos [Fri, 17 Aug 2012 13:37:40 +0000 (16:37 +0300)]
WIP charging behavior

11 years agoMinor fixes in UserActor, BillEntry and RabbitMQProducer
Prodromos Gerakios [Fri, 17 Aug 2012 06:15:53 +0000 (09:15 +0300)]
Minor fixes in UserActor, BillEntry and RabbitMQProducer

11 years agoMerge branch 'master' of https://code.grnet.gr/git/aquarium
Prodromos Gerakios [Fri, 17 Aug 2012 05:48:42 +0000 (08:48 +0300)]
Merge branch 'master' of https://code.grnet.gr/git/aquarium

11 years agoFinished Bill implementation. Added bill.sh to automatically send events and print...
Prodromos Gerakios [Fri, 17 Aug 2012 05:46:28 +0000 (08:46 +0300)]
Finished Bill implementation. Added bill.sh to automatically send events and print the resulting bill

11 years agoMerge selectors into master
Christos KK Loverdos [Thu, 16 Aug 2012 13:18:21 +0000 (16:18 +0300)]
Merge selectors into master

NOTE: master was in DNC state (Does Not Compile).

11 years agoHook selectors into the price computation path selectors
Christos KK Loverdos [Thu, 16 Aug 2012 12:58:33 +0000 (15:58 +0300)]
Hook selectors into the price computation path

11 years agoUse full type hints for json
Christos KK Loverdos [Thu, 16 Aug 2012 06:47:31 +0000 (09:47 +0300)]
Use full type hints for json

11 years agoEnable incremental compilation
Christos KK Loverdos [Thu, 16 Aug 2012 06:35:35 +0000 (09:35 +0300)]
Enable incremental compilation

11 years agoUpgrade scala-maven-plugin
Christos KK Loverdos [Thu, 16 Aug 2012 06:31:26 +0000 (09:31 +0300)]
Upgrade scala-maven-plugin

11 years agoRabbitMQProducer handles Nacks. UserActor accepts user balance additions from Astakos...
Prodromos Gerakios [Tue, 7 Aug 2012 13:55:23 +0000 (16:55 +0300)]
RabbitMQProducer handles Nacks. UserActor accepts user balance additions from Astakos. Timeslot.align has been fixed. Details Pings have been implemented.

11 years agoReliable message passing for RabbitMQProducer
Prodromos Gerakios [Mon, 6 Aug 2012 12:25:55 +0000 (15:25 +0300)]
Reliable message passing for RabbitMQProducer

11 years agoAdded REST functionality for the Bill. RabbitMQProducer was refined. UserActor sends...
Prodromos Gerakios [Fri, 3 Aug 2012 11:21:05 +0000 (14:21 +0300)]
Added REST functionality for the Bill. RabbitMQProducer was refined. UserActor sends message only when state changes

11 years agoSelector simplifications
Christos KK Loverdos [Fri, 27 Jul 2012 14:22:24 +0000 (17:22 +0300)]
Selector simplifications

11 years agoMerge branch 'master' into merged_master_selectors
Christos KK Loverdos [Fri, 27 Jul 2012 10:21:06 +0000 (13:21 +0300)]
Merge branch 'master' into merged_master_selectors

11 years agominor fix in JSON message (UserActor-->Astakos , user balance)
Prodromos Gerakios [Fri, 27 Jul 2012 10:17:03 +0000 (13:17 +0300)]
minor fix in JSON message (UserActor-->Astakos , user balance)

11 years agoRabbitMQ producer sends user balance >= 0 to astakos
Prodromos Gerakios [Fri, 27 Jul 2012 10:12:27 +0000 (13:12 +0300)]
RabbitMQ producer sends user balance >= 0 to astakos

11 years agoFirst cut of selectors.
Christos KK Loverdos [Thu, 26 Jul 2012 11:50:38 +0000 (14:50 +0300)]
First cut of selectors.

Pandora's box. Too simple. Too flexible.

11 years agoAdded RabbitMQProducer.scala. The code has been tests and works. "rabbitmq.imevents...
Prodromos Gerakios [Wed, 25 Jul 2012 14:27:27 +0000 (17:27 +0300)]
Added RabbitMQProducer.scala. The code has been tests and works. "rabbitmq.imevents.credit=astakos:astakos-events-credit" must be added in aquarium.properties

11 years agoFix bad handling of IMEvent from the UserActor.
Christos KK Loverdos [Mon, 23 Jul 2012 15:36:08 +0000 (18:36 +0300)]
Fix bad handling of IMEvent from the UserActor.

Upon arrival of the first IMEvent and after some ResourceEvents had
already arrived at the UserActor, we got an exception due to user
agreements beeing empty (being empty is reasonable, since there were no
IMEvent previously).

The correct behavior is to check for this case and then run
initializeStateOfIMEvents().

11 years agoRemoved timeslot computations print statements
Prodromos Gerakios [Mon, 23 Jul 2012 13:28:53 +0000 (16:28 +0300)]
Removed timeslot computations print statements