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]
> 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 6:44 PM, Sajith Perera  wrote:
>
>> 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
>> {org.wso2.carbon.stream.processor.core.ha.HAManager} - HA Deployment:
>> Starting up as Active Node
>>
>>
>> [2] -
>>
>> https://docs.wso2.com/plugins/servlet/mobile?contentId=68701902#content/view/68701902
>>
>> 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 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] https://docs.wso2.com/display/SP420/Stream+Processor+REST+API+Guide
>>>
>>> Is this what you are asking for ?
>>>
>>> Regards,
>>> Damoth
>>>
>>> On Tue, Jul 24, 2018 at 6:07 PM, Fazlan Nazeem  wrote:
>>>
 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

>>>
>>>
>>>
>>> --
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>> --
>> 
>> Sajith Dimal
>> Software Engineer
>> Email : saji...@wso2.com
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315*
>
>

-- 
Thanks & Regards,

*Fazlan Nazeem*
Senior Software Engineer
WSO2 Inc
Mobile : +94772338839
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 6:44 PM, Sajith Perera  wrote:

> 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 
> {org.wso2.carbon.stream.processor.core.ha.HAManager}
> - HA Deployment: Starting up as Active Node
>
>
> [2] -
> https://docs.wso2.com/plugins/servlet/mobile?contentId=
> 68701902#content/view/68701902
>
> 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 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] https://docs.wso2.com/display/SP420/Stream+Processor+REST+API+Guide
>>
>> Is this what you are asking for ?
>>
>> Regards,
>> Damoth
>>
>> On Tue, Jul 24, 2018 at 6:07 PM, Fazlan Nazeem  wrote:
>>
>>> 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
>>>
>>
>>
>>
>> --
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> 
>> lean.enterprise.middleware
>>
>> mobile: *+94728671315*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
> --
> 
> Sajith Dimal
> Software Engineer
> Email : saji...@wso2.com
> Mobile : +94783101496
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 
Senior Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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
{org.wso2.carbon.stream.processor.core.ha.HAManager} - HA Deployment:
Starting up as Active Node


[2] -
https://docs.wso2.com/plugins/servlet/mobile?contentId=68701902#content/view/68701902

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 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] https://docs.wso2.com/display/SP420/Stream+Processor+REST+API+Guide
>
> Is this what you are asking for ?
>
> Regards,
> Damoth
>
> On Tue, Jul 24, 2018 at 6:07 PM, Fazlan Nazeem  wrote:
>
>> 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
>>
>
>
>
> --
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
-- 

Sajith Dimal
Software Engineer
Email : saji...@wso2.com
Mobile : +94783101496
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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 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] https://docs.wso2.com/display/SP420/Stream+Processor+REST+API+Guide
>
> Is this what you are asking for ?
>
> Regards,
> Damoth
>
> On Tue, Jul 24, 2018 at 6:07 PM, Fazlan Nazeem  wrote:
>
>> 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
>>
>
>
>
> --
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315*
>
>

-- 
Thanks & Regards,

*Fazlan Nazeem*
Senior Software Engineer
WSO2 Inc
Mobile : +94772338839
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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] https://docs.wso2.com/display/SP420/Stream+Processor+REST+API+Guide

Is this what you are asking for ?

Regards,
Damoth

On Tue, Jul 24, 2018 at 6:07 PM, Fazlan Nazeem  wrote:

> 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
>



-- 
Senior Software Engineer
WSO2 Inc.; http://wso2.com

lean.enterprise.middleware

mobile: *+94728671315*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev