Hi Grainier, On Fri, Oct 27, 2017 at 7:04 PM, Grainier Perera <[email protected]> wrote:
> Hi Nira, > > My requirement is, I have a distributed deployment where resource nodes > can get added to a resource pool via a coordinator node (leader). Here, > resource node will request the coordinator to join the resource pool at its > server startup (where OSGi refs get resolved) and the coordinator has the > ability to allow or reject resource node from joining the resource pool > depending on some conditions. If the resource node gets rejected, it should > get terminated. That's where I need to shut down the resource node > programmatically. > As I understand this is during the server start up. In such a scenario, if the condition does not satisfy then IMO we should not start the server. The reason for this is that once the server has started and its transport ports are open, then the load balancer will start serving the request. But this can cause an issue since the requirement for the server has not been satisfied. In C5, there is something called Startup order resolver [1], where you can indirectly tell the startup order to not start the transport services until your component is satisfied. > > Thanks, > > On Thu, Oct 26, 2017 at 6:58 PM, Cyril Rognon <[email protected]> > wrote: > >> I have a use case : we are using c5 on raspberry pi and we need a clean >> shutdown when user want to halt to prevent micro sd card corruption issues. >> >> Thanks >> Cyril >> >> Le jeu. 26 oct. 2017 à 13:56, Niranjan Karunanandham <[email protected]> >> a écrit : >> >>> Hi Grainier, >>> >>> Can you explain the use case for this where you would want to shut down >>> server programmatically? >>> >>> Regards, >>> Nira >>> >>> On Wed, Oct 25, 2017 at 5:35 PM, Grainier Perera <[email protected]> >>> wrote: >>> >>>> Hi Devs, >>>> >>>> I have a requirement where I need to programmatically shut down a C5 >>>> based product. Is there a carbon utility to do that? >>>> >>>> Thanks, >>>> Grainier. >>>> -- >>>> Grainier Perera >>>> Senior Software Engineer >>>> Mobile : +94716122384 <+94%2071%20612%202384> >>>> WSO2 Inc. | http://wso2.com >>>> lean.enterprise.middleware >>>> >>> >>> >>> >>> -- >>> >>> >>> *Niranjan Karunanandham* >>> Associate Technical Lead - WSO2 Inc. >>> WSO2 Inc.: http://www.wso2.com >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >> -- >> Bien cordialement, >> >> Cyril Rognon >> 06 08 89 16 86 >> Directeur associé >> EMOXA >> 73, rue du Château >> <https://maps.google.com/?q=73,+rue+du+Ch%C3%A2teau+92100+Boulogne-Billancourt+France&entry=gmail&source=g> >> 92100 Boulogne-Billancourt >> <https://maps.google.com/?q=73,+rue+du+Ch%C3%A2teau+92100+Boulogne-Billancourt+France&entry=gmail&source=g> >> France >> <https://maps.google.com/?q=73,+rue+du+Ch%C3%A2teau+92100+Boulogne-Billancourt+France&entry=gmail&source=g> >> > > > > -- > Grainier Perera > Senior Software Engineer > Mobile : +94716122384 <+94%2071%20612%202384> > WSO2 Inc. | http://wso2.com > lean.enterprise.middleware > [1] - https://github.com/wso2/carbon-kernel/blob/master/docs/KernelFeatures/ResolvingtheComponentStartupOrder.md Regards, Nira -- *Niranjan Karunanandham* Associate Technical Lead - WSO2 Inc. WSO2 Inc.: http://www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
