aquarium
11 years agoRefactor Aquarium to make it more configurable
Christos KK Loverdos [Fri, 22 Jun 2012 13:07:56 +0000 (16:07 +0300)]
Refactor Aquarium to make it more configurable

- No Aquarium singleton any more.
- Aquarium is bootstrapped and configured using a builder.
- Services are wired a bit differently right now. Needs more testing, in
order to reach previous runtime stability.

11 years agoWelcome Prodromos!
Christos KK Loverdos [Wed, 20 Jun 2012 09:20:11 +0000 (12:20 +0300)]
Welcome Prodromos!

11 years agoAlways calculate wallet entries
Christos KK Loverdos [Mon, 18 Jun 2012 13:06:44 +0000 (16:06 +0300)]
Always calculate wallet entries

11 years agoCost policy generalizations
Christos KK Loverdos [Mon, 18 Jun 2012 12:53:52 +0000 (15:53 +0300)]
Cost policy generalizations

Use the whole event instead of tis value for decision making and
computations. This was long in the todo list, time to apply it now.

11 years agoTrimming down the interface of cost policy
Christos KK Loverdos [Mon, 18 Jun 2012 11:39:06 +0000 (14:39 +0300)]
Trimming down the interface of cost policy

I accidentally committed on the debian branch. Cherry-picking the latest
commit here generated some conflicts.

Conflicts:
src/main/scala/gr/grnet/aquarium/logic/accounting/dsl/DSLCostPolicy.scala

11 years agoFix policy effectiveness period
Christos KK Loverdos [Thu, 14 Jun 2012 13:40:43 +0000 (16:40 +0300)]
Fix policy effectiveness period

Previously, the policy loaded from policy.yaml was taken to be effective
starting from the time the loading happended. Normally, we need to set
a proper effectivess period for the policy. Until then and in order for
some other test cases to proceed, we consider a better starting time.

11 years agoWIP Resource event handling
Christos KK Loverdos [Wed, 13 Jun 2012 13:45:42 +0000 (16:45 +0300)]
WIP Resource event handling

- Boundary conditions for first events

11 years agoWIP Resource event handling and API cleanup
Christos KK Loverdos [Mon, 11 Jun 2012 15:38:40 +0000 (18:38 +0300)]
WIP Resource event handling and API cleanup

11 years agoRemove reference to test.sh from make-dist.sh
Christos KK Loverdos [Mon, 11 Jun 2012 12:24:40 +0000 (15:24 +0300)]
Remove reference to test.sh from make-dist.sh

11 years agoAdd some header to aquarium script, needed for the init.d service
Christos KK Loverdos [Mon, 11 Jun 2012 11:46:08 +0000 (14:46 +0300)]
Add some header to aquarium script, needed for the init.d service

11 years agoRemove obsolete test script
Christos KK Loverdos [Mon, 11 Jun 2012 08:52:49 +0000 (11:52 +0300)]
Remove obsolete test script

We will provide some other means of testing aquarium. For example, we
already have the /ping URL served by aquarium's REST/HTTP subsystem.

11 years agoOrganize a few rest paths
Christos KK Loverdos [Mon, 11 Jun 2012 08:51:03 +0000 (11:51 +0300)]
Organize a few rest paths

11 years agoIntroduce error tags
Christos KK Loverdos [Mon, 11 Jun 2012 08:03:14 +0000 (11:03 +0300)]
Introduce error tags

The rationale is:
- To have a centralized view of what error conditions can appear in
Aquarium.
- To use consistent error descriptions, in case where an error condition
applies to more than one place.

This is of course an initial approach. Let's see how it goes.

11 years agoAdd two more REST internal calls
Christos KK Loverdos [Fri, 8 Jun 2012 14:49:24 +0000 (17:49 +0300)]
Add two more REST internal calls

- Get rc event by id.
- Get im event by id.

Calls are protected by the admin.cookie property

11 years agoInternal REST calls go through a header check
Christos KK Loverdos [Fri, 8 Jun 2012 13:36:15 +0000 (16:36 +0300)]
Internal REST calls go through a header check

11 years agoExpose via REST some useful info
Christos KK Loverdos [Fri, 8 Jun 2012 12:52:33 +0000 (15:52 +0300)]
Expose via REST some useful info

11 years agoWIP Resource event handling
Christos KK Loverdos [Fri, 8 Jun 2012 12:11:50 +0000 (15:11 +0300)]
WIP Resource event handling

11 years agoWIP Resource event handling
Christos KK Loverdos [Thu, 7 Jun 2012 14:03:59 +0000 (17:03 +0300)]
WIP Resource event handling

11 years agoWIP Resource event handling
Christos KK Loverdos [Wed, 6 Jun 2012 15:28:53 +0000 (18:28 +0300)]
WIP Resource event handling

11 years agoBeing devops-friendly until a user creation event arrives
Christos KK Loverdos [Tue, 5 Jun 2012 07:36:10 +0000 (10:36 +0300)]
Being devops-friendly until a user creation event arrives

11 years agoSmall doc: We ignore everything except serious errors
Christos KK Loverdos [Tue, 5 Jun 2012 07:34:03 +0000 (10:34 +0300)]
Small doc: We ignore everything except serious errors

11 years agoRework billing month info
Christos KK Loverdos [Tue, 5 Jun 2012 07:32:31 +0000 (10:32 +0300)]
Rework billing month info

We are more JSON-friendly, without the need for custom type hints for
lift-json.

11 years agoAdd one more logging utility method
Christos KK Loverdos [Mon, 4 Jun 2012 13:27:35 +0000 (16:27 +0300)]
Add one more logging utility method

11 years agoSmall clarification regarding loading logging configuration
Christos KK Loverdos [Mon, 4 Jun 2012 13:27:02 +0000 (16:27 +0300)]
Small clarification regarding loading logging configuration

11 years agoAdjust default aquarium.properties
Christos KK Loverdos [Fri, 1 Jun 2012 13:48:36 +0000 (16:48 +0300)]
Adjust default aquarium.properties

11 years agoReenable custom logging configurarion loading
Christos KK Loverdos [Fri, 1 Jun 2012 13:06:38 +0000 (16:06 +0300)]
Reenable custom logging configurarion loading

11 years agoPrint more logging info while starting up
Christos KK Loverdos [Fri, 1 Jun 2012 12:36:38 +0000 (15:36 +0300)]
Print more logging info while starting up

11 years agoRemove sbt build stuff
Christos KK Loverdos [Fri, 1 Jun 2012 11:48:18 +0000 (14:48 +0300)]
Remove sbt build stuff

11 years agoMake sure UserStateChangeReasons are properly serialzed to JSON (via json-lift)
Christos KK Loverdos [Fri, 1 Jun 2012 11:28:01 +0000 (14:28 +0300)]
Make sure UserStateChangeReasons are properly serialzed to JSON (via json-lift)

11 years agoWIP event handling: Initialization fixes
Christos KK Loverdos [Fri, 1 Jun 2012 09:21:46 +0000 (12:21 +0300)]
WIP event handling: Initialization fixes

11 years agoAdd comments for the functions needed in payload handlers
Christos KK Loverdos [Fri, 1 Jun 2012 09:20:28 +0000 (12:20 +0300)]
Add comments for the functions needed in payload handlers

11 years agoHandlerResultPanic acquires a reason
Christos KK Loverdos [Fri, 1 Jun 2012 09:18:47 +0000 (12:18 +0300)]
HandlerResultPanic acquires a reason

11 years agoAdd doc in PayloadHandler
Christos KK Loverdos [Fri, 1 Jun 2012 09:17:41 +0000 (12:17 +0300)]
Add doc in PayloadHandler

11 years agoBetter logging in generic payload handler
Christos KK Loverdos [Fri, 1 Jun 2012 09:14:54 +0000 (12:14 +0300)]
Better logging in generic payload handler

11 years agoUse SynchronousPayloadHandlerExecutor. For now
Christos KK Loverdos [Fri, 1 Jun 2012 09:14:06 +0000 (12:14 +0300)]
Use SynchronousPayloadHandlerExecutor. For now

11 years agoBetter formatting in localfs evetn store
Christos KK Loverdos [Fri, 1 Jun 2012 09:12:59 +0000 (12:12 +0300)]
Better formatting in localfs evetn store

11 years agoAdd logChainOfCauses to LogHelpers
Christos KK Loverdos [Fri, 1 Jun 2012 09:11:54 +0000 (12:11 +0300)]
Add logChainOfCauses to LogHelpers

11 years agoWIP event handling
Christos KK Loverdos [Thu, 31 May 2012 15:18:09 +0000 (18:18 +0300)]
WIP event handling

11 years agoAdd one small utility method for obtaining a short version of a type name
Christos KK Loverdos [Thu, 31 May 2012 09:42:21 +0000 (12:42 +0300)]
Add one small utility method for obtaining a short version of a type name

11 years agoWIP Resource event handling
Christos KK Loverdos [Wed, 30 May 2012 15:11:28 +0000 (18:11 +0300)]
WIP Resource event handling

11 years agoRemove unused class
Christos KK Loverdos [Wed, 30 May 2012 11:16:46 +0000 (14:16 +0300)]
Remove unused class

11 years agoSeparate rabbitmq configuration keys from the rabbitmq service
Christos KK Loverdos [Wed, 30 May 2012 11:09:32 +0000 (14:09 +0300)]
Separate rabbitmq configuration keys from the rabbitmq service

11 years agoWIP Resource event handling
Christos KK Loverdos [Mon, 28 May 2012 13:39:40 +0000 (16:39 +0300)]
WIP Resource event handling

11 years agoRemove obsolete wallet entry
Christos KK Loverdos [Mon, 28 May 2012 10:58:34 +0000 (13:58 +0300)]
Remove obsolete wallet entry

11 years agoChange a few dependencies to releases instead of snapshots
Christos KK Loverdos [Mon, 28 May 2012 08:33:25 +0000 (11:33 +0300)]
Change a few dependencies to releases instead of snapshots

11 years agoAdd TODO for future optimization
Christos KK Loverdos [Fri, 25 May 2012 15:24:03 +0000 (18:24 +0300)]
Add TODO for future optimization

11 years agoWork in progress on handling user state
Christos KK Loverdos [Fri, 25 May 2012 14:25:08 +0000 (17:25 +0300)]
Work in progress on handling user state

I just committed everything. Not sure what will survive yet.

11 years agoMore complete handling of IM events
Christos KK Loverdos [Fri, 25 May 2012 14:08:16 +0000 (17:08 +0300)]
More complete handling of IM events

11 years agoExpose some debugging facilities in Aquarium class
Christos KK Loverdos [Fri, 25 May 2012 11:57:58 +0000 (14:57 +0300)]
Expose some debugging facilities in Aquarium class

11 years agoFix compilation error due to API change in rabbitmq client lib
Christos KK Loverdos [Fri, 25 May 2012 10:26:16 +0000 (13:26 +0300)]
Fix compilation error due to API change in rabbitmq client lib

11 years agoFurther optimization of the dependencies
Christos KK Loverdos [Fri, 25 May 2012 10:16:48 +0000 (13:16 +0300)]
Further optimization of the dependencies

11 years agoUse rabbitmq client lib that matches rabbitmq server version
Christos KK Loverdos [Fri, 25 May 2012 10:12:23 +0000 (13:12 +0300)]
Use rabbitmq client lib that matches rabbitmq server version

11 years agoRemove dependency on akka-amqp
Christos KK Loverdos [Fri, 25 May 2012 10:10:59 +0000 (13:10 +0300)]
Remove dependency on akka-amqp

11 years agoKeep LRU from guava libraries
Christos KK Loverdos [Fri, 25 May 2012 10:08:13 +0000 (13:08 +0300)]
Keep LRU from guava libraries

11 years agoRemove supervisor of user actors
Christos KK Loverdos [Fri, 25 May 2012 10:00:33 +0000 (13:00 +0300)]
Remove supervisor of user actors

11 years agoRemove shutdown listener when stopping the rabbitmq consumer
Christos KK Loverdos [Fri, 25 May 2012 09:48:46 +0000 (12:48 +0300)]
Remove shutdown listener when stopping the rabbitmq consumer

11 years agoSet rabbitmq heartbeat
Christos KK Loverdos [Fri, 25 May 2012 09:32:55 +0000 (12:32 +0300)]
Set rabbitmq heartbeat

11 years agoDo not recheck stuff that should have been checked elsewhere
Christos KK Loverdos [Thu, 24 May 2012 14:13:31 +0000 (17:13 +0300)]
Do not recheck stuff that should have been checked elsewhere

11 years agoFix requirements for role history item
Christos KK Loverdos [Thu, 24 May 2012 14:11:24 +0000 (17:11 +0300)]
Fix requirements for role history item

11 years agoOverride debugging info
Christos KK Loverdos [Thu, 24 May 2012 14:10:46 +0000 (17:10 +0300)]
Override debugging info

11 years agoAdd one more field to IMEventStateSnapshot
Christos KK Loverdos [Thu, 24 May 2012 14:09:45 +0000 (17:09 +0300)]
Add one more field to IMEventStateSnapshot

Not sure yet if this will survive.

11 years agoDocument the constructor parameters
Christos KK Loverdos [Thu, 24 May 2012 13:10:50 +0000 (16:10 +0300)]
Document the constructor parameters

11 years agoReorganize startup configuration logging
Christos KK Loverdos [Thu, 24 May 2012 12:58:26 +0000 (15:58 +0300)]
Reorganize startup configuration logging

11 years agoUse acceptMessage as a symmetric response to rejectMessage
Christos KK Loverdos [Thu, 24 May 2012 12:50:00 +0000 (15:50 +0300)]
Use acceptMessage as a symmetric response to rejectMessage

11 years agoAdd a debugging aid in API of external event model
Christos KK Loverdos [Thu, 24 May 2012 12:48:57 +0000 (15:48 +0300)]
Add a debugging aid in API of external event model

11 years agoNew logic on what to do with incoming im event
Christos KK Loverdos [Thu, 24 May 2012 12:22:27 +0000 (15:22 +0300)]
New logic on what to do with incoming im event

11 years agoAdd API to IMEventStore
Christos KK Loverdos [Thu, 24 May 2012 12:21:36 +0000 (15:21 +0300)]
Add API to IMEventStore

11 years agoEnhance IMStateSnapshot
Christos KK Loverdos [Thu, 24 May 2012 10:44:31 +0000 (13:44 +0300)]
Enhance IMStateSnapshot

11 years agoPayload handler post notifier made into a class
Christos KK Loverdos [Thu, 24 May 2012 10:43:54 +0000 (13:43 +0300)]
Payload handler post notifier made into a class

11 years agoPayload handlers made into classes
Christos KK Loverdos [Thu, 24 May 2012 10:43:21 +0000 (13:43 +0300)]
Payload handlers made into classes

11 years agoRename agreement snapshot stuff. Agreement history utilities
Christos KK Loverdos [Thu, 24 May 2012 10:37:55 +0000 (13:37 +0300)]
Rename agreement snapshot stuff. Agreement history utilities

11 years agoUse factory method
Christos KK Loverdos [Wed, 23 May 2012 12:56:55 +0000 (15:56 +0300)]
Use factory method

Signed-off-by: Christos KK Loverdos <loverdos@gmail.com>

11 years agoStart forwarding events to user actor
Christos KK Loverdos [Wed, 23 May 2012 12:37:35 +0000 (15:37 +0300)]
Start forwarding events to user actor

Signed-off-by: Christos KK Loverdos <loverdos@gmail.com>

11 years agoCaught a typo
Christos KK Loverdos [Wed, 23 May 2012 11:18:05 +0000 (14:18 +0300)]
Caught a typo

Signed-off-by: Christos KK Loverdos <loverdos@gmail.com>

11 years agoThe bus service uses an executor instead of actors
Christos KK Loverdos [Wed, 23 May 2012 11:12:55 +0000 (14:12 +0300)]
The bus service uses an executor instead of actors

11 years agoCategorize store folders based on date
Christos KK Loverdos [Wed, 23 May 2012 10:13:48 +0000 (13:13 +0300)]
Categorize store folders based on date

11 years agoIgnore logs/
Christos KK Loverdos [Tue, 22 May 2012 15:16:00 +0000 (18:16 +0300)]
Ignore logs/

Signed-off-by: Christos KK Loverdos <loverdos@gmail.com>

11 years agoConditionally save events to events store folder
Christos KK Loverdos [Mon, 21 May 2012 15:18:43 +0000 (18:18 +0300)]
Conditionally save events to events store folder

11 years agoChange result type of the json parser used in payload handler
Christos KK Loverdos [Mon, 21 May 2012 13:56:23 +0000 (16:56 +0300)]
Change result type of the json parser used in payload handler

The parser shoulb be as simple as possible. Others will catch errors.

11 years agoLog errors during the payload handling sequence
Christos KK Loverdos [Mon, 21 May 2012 13:29:50 +0000 (16:29 +0300)]
Log errors during the payload handling sequence

11 years agoChange => Unit to => Any in payload handler api
Christos KK Loverdos [Mon, 21 May 2012 13:29:10 +0000 (16:29 +0300)]
Change => Unit to => Any in payload handler api

11 years agoAdd one more conversion and refactor others
Christos KK Loverdos [Mon, 21 May 2012 13:27:43 +0000 (16:27 +0300)]
Add one more conversion and refactor others

11 years agoSimplify MongoDBStoreProvider state
Christos KK Loverdos [Mon, 21 May 2012 10:09:18 +0000 (13:09 +0300)]
Simplify MongoDBStoreProvider state

11 years agoRemove redundant safeUnit() calls
Christos KK Loverdos [Mon, 21 May 2012 09:58:30 +0000 (12:58 +0300)]
Remove redundant safeUnit() calls

11 years agoRefine event payload handling
Christos KK Loverdos [Mon, 21 May 2012 09:53:32 +0000 (12:53 +0300)]
Refine event payload handling

11 years agoSmall doc fix
Christos KK Loverdos [Fri, 18 May 2012 13:29:20 +0000 (16:29 +0300)]
Small doc fix

11 years agoFix compilation
Christos KK Loverdos [Fri, 18 May 2012 13:25:23 +0000 (16:25 +0300)]
Fix compilation

That's what happens if one develops and runs the thing from inside an
IDE for while...

11 years agoRead store ping period from configuration (anystore.reconnect.period.millis)
Christos KK Loverdos [Fri, 18 May 2012 13:17:40 +0000 (16:17 +0300)]
Read store ping period from configuration (anystore.reconnect.period.millis)

11 years agoFix small doc typo
Christos KK Loverdos [Fri, 18 May 2012 13:16:14 +0000 (16:16 +0300)]
Fix small doc typo

11 years agoForce VM exit if Aquarium cannot startup properly
Christos KK Loverdos [Fri, 18 May 2012 13:15:05 +0000 (16:15 +0300)]
Force VM exit if Aquarium cannot startup properly

11 years agoAdd a FIXME for later
Christos KK Loverdos [Fri, 18 May 2012 11:43:10 +0000 (14:43 +0300)]
Add a FIXME for later

11 years agoAMQP stuff is now in good shape
Christos KK Loverdos [Fri, 18 May 2012 11:30:47 +0000 (14:30 +0300)]
AMQP stuff is now in good shape

We have:
- Automatic pings for rabbitmq consumers.
- Automatic pings for consumer-related event stores.
- When a store goes down, all the relevant consumers stop accepting
messagges, since we must alwaysd be able to store an event.
- Automatic reconnections for failed consumers.
- Automatic reconnections for failed event stores.

Still needed, but will made later:
- RabbitMQ producer functionality.

11 years agoPad logger name to right when logging
Christos KK Loverdos [Fri, 18 May 2012 09:50:49 +0000 (12:50 +0300)]
Pad logger name to right when logging

11 years agoEnhance logging helpers
Christos KK Loverdos [Thu, 17 May 2012 20:36:35 +0000 (23:36 +0300)]
Enhance logging helpers

11 years agoRefactor aquarium startup sequence
Christos KK Loverdos [Thu, 17 May 2012 20:32:22 +0000 (23:32 +0300)]
Refactor aquarium startup sequence

11 years agoCancel timer on stop()
Christos KK Loverdos [Thu, 17 May 2012 20:29:17 +0000 (23:29 +0300)]
Cancel timer on stop()

11 years agoAdd ping functionality to two of the stores
Christos KK Loverdos [Thu, 17 May 2012 13:18:54 +0000 (16:18 +0300)]
Add ping functionality to two of the stores

11 years agoMake Aquarium a service. Move startup functionality to it.
Christos KK Loverdos [Thu, 17 May 2012 11:41:27 +0000 (14:41 +0300)]
Make Aquarium a service. Move startup functionality to it.

11 years agoRename Configurator to Aquarium
Christos KK Loverdos [Wed, 16 May 2012 12:23:30 +0000 (15:23 +0300)]
Rename Configurator to Aquarium

11 years agoImproved error reporting if failed to start
Christos KK Loverdos [Wed, 16 May 2012 11:46:07 +0000 (14:46 +0300)]
Improved error reporting if failed to start