vert-x3 / vertx-ignite

Apache License 2.0
35 stars 28 forks source link

Add a constructor that let the user to use a custom Ignite instance #45

Closed jan-zajic closed 6 years ago

jan-zajic commented 7 years ago

Creates cluster manager instance with given Ignite instance. Use this constructor in order to share ignite cluster created outside IgniteClusterManager. Do not shutdown the cluster if we are not the owner of the cluster.

agura commented 7 years ago

@jan-zajic I don't see any real reason for having custom node name. Could you please clarify your intention and use case?

guoyu511 commented 7 years ago

@agura I think the problem is that we need a more configurable api to custom the Ignite instance.

For example:

So maybe passing a predefined Ignite instance to the ClusterManager is the more flexible way.

agura commented 7 years ago

@guoyu511Hmmm... Makes sense in some aspects but isn't true for your examples:

tipok commented 6 years ago

We face following issue which would be resolved by this PR:

We're using Ignite in persistence mode, in this mode Ignite needs to be activated manually by calling Ignite.active(true) otherwise it's throwing a Exception during the first access. If we would pass a activated ignite instance we would be good.

agura commented 6 years ago

@tipok In progress. Issue #53

agura commented 6 years ago

Closed due to #53 .