On 12-05-31 10:06 AM, Manik Surtani wrote:
Some thoughts:
1. Failover policy.
* Does this rely on being run in a CDI environment? (RandomNodeTaskFailoverPolicy has a
DistributedExecutorService @Injected). If so, then -1. While it *should work* in a CDI
environment, it shouldn't *require* CDI.
I agree. It was more of a wishful
thinking on my part, it will not be
required.
* Do you plan to include any canned failover policies? If so, what are these?
Yes, at least random and never failover policy.
* Shouldn't DistributedTaskFailoverPolicy be parameterised to return the same type
as DistributedFuture.get() rather than an untyped Object?
I would love to make it
but how can we do it? DefaultExecutorService is
not typed and method of DistributedTaskFailoverPolicy is not either.
2. Task mapping policy
* So the existing policies of "execute everywhere" and "execute on data
owner" (and possibly a new one, "execute on PRIMARY data owner") would all
implement this policy interface?
Yes, for sure.