flexiblepower / powermatcher

PowerMatcher - The Java implementation of the PowerMatcher, including the API, the core, a couple of examples, a remote implementation using websockets and a visualisation of the configuration.
http://www.powermatcher.org
Apache License 2.0
43 stars 25 forks source link

Improved the lifecycle and introduced isConnected #190

Closed marcdejonge closed 9 years ago

marcdejonge commented 9 years ago

I'd tried to make the lifecycle of agents more explicit. The main improvement is the introduction of the isConnected method that return true when the agent is connected to the cluster.

Also the activate methods now accept a Config object, which makes it more explicit which type of configuration is needed.

marcdejonge commented 9 years ago

Sorry, I failed. This breaks a lot of tests. Will revert part of it...

marcdejonge commented 9 years ago

Ok, now it works correctly. @wilcowijbrandi please check if this is correct?