Re: [Dev] How to check whether an SP node is in Active or Passive state

2018-07-25 Thread Fazlan Nazeem
Thanks Damith On Wed, Jul 25, 2018 at 12:18 AM Damith Wickramasinghe wrote: > Hi Fazlan, > > You can use following . > > [1] >

Re: [Dev] How to check whether an SP node is in Active or Passive state

2018-07-24 Thread Damith Wickramasinghe
Hi Fazlan, You can use following . [1] https://github.com/wso2/carbon-analytics/blob/master/components/org.wso2.carbon.stream.processor.statistics/src/main/java/org/wso2/carbon/stream/processor/statistics/internal/service/NodeConfigServiceComponent.java Regards, Damith On Tue, Jul 24, 2018 at

Re: [Dev] How to check whether an SP node is in Active or Passive state

2018-07-24 Thread Sajith Perera
Also, there are CLI logs where it’s print the status of the node. Please refer the doc[2] [2017-10-23 08:56:57,380] INFO {org.wso2.carbon.stream.processor.core.internal.ServiceComponent} - WSO2 Stream Processor Starting in Two Node Minimum HA Deployment [2017-10-23 08:56:57,392] INFO

Re: [Dev] How to check whether an SP node is in Active or Passive state

2018-07-24 Thread Fazlan Nazeem
I need to check the status within a custom event source running within SP. Is there an OSGI service which I could make use of? On Tue, Jul 24, 2018 at 11:58 PM Damith Wickramasinghe wrote: > Hi fazlan, > > we have apis exposed where you can get the information. > > eg:- curl -k -X GET

Re: [Dev] How to check whether an SP node is in Active or Passive state

2018-07-24 Thread Damith Wickramasinghe
Hi fazlan, we have apis exposed where you can get the information. eg:- curl -k -X GET http://localhost:9090/statistics -H "accept: application/json" -u admin:admin -k -v will provide you a json with all the information. see[1] [1]

[Dev] How to check whether an SP node is in Active or Passive state

2018-07-24 Thread Fazlan Nazeem
Hi, How is $subject done in SP? Can you point me to a source location? -- Thanks & Regards, *Fazlan Nazeem* Senior Software Engineer WSO2 Inc Mobile : +94772338839 fazl...@wso2.com ___ Dev mailing list Dev@wso2.org