Additionally (and atomically), notes that the service considers the identity to be active, as though {@link #setStatus setStatus(service, identity, true)} hadbeen called on the assigned node.
TBD: Perhaps this atomic setService doesn't help. It seems as though each service instance on a node needs to call setStatus anyway, and it complicates the implementation of this service.
TBD: Maybe the first parameter should be Class extends Service>. The actual service who cares might be very interesting to the load balancer.
This method should not be called while in a transaction, as this method call could entail remote communication.
@param service the class of the caller @param identity the identity to assign to a node @throws IllegalStateException if this method is called while in atransaction
|
|
|
|
|
|
|
|