Re: [Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-19 Thread Kishanthan Thangarajah
This new change is only for OSGi based servers in the platform right? Are
there any changes for standalone data publishing API's used with non-OSGi
servers in the platform or is it still the same as before? We have AS 6.0.0
which is based on pure tomcat and currently we are using the minimum
required data publishing libs and the standalone data publishing API's to
publish HTTP stats to DAS.

On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka  wrote:

> Hi all,
>
> Please follow the steps bellow when publishing events from carbon servers
> to DAS/CEP. Here we keep the DAS/CEP server location in
> CARBON_HOME/repository/deployment/server/eventpublishers directory and this
> is common across platform.
>
> - Install the Event Publisher Aggregate feature from p2_repo [1]
>
> - Install Registry Core feature if not installed
>
> - Create event stream and deploy that to
> CARBON_HOME/repository/deployment/server/eventstreams
>
> - Create publishers for the created stream and deploy that to
>  CARBON_HOME/repository/deployment/server/eventpublishers
> Following is a sample configuration,
>
> 
> http://wso2.org/carbon/eventpublisher";>
>   
>   
>   
> admin
> thrift
> non-blocking
> 0
> tcp://localhost:7611
> X
>   
> 
>
> - Publish events to the created stream using
> org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
> Following is a sample code snippet.
>
> Event event = new Event();
> event.setTimeStamp(System.currentTimeMillis());
> event.setStreamId("streamTest:1.0.0");
> event.setPayloadData(new Object[]{data});
> eventStreamService.publish(event);
>
> Please note that Event Publisher Aggregate feature is not yet included
> in carbon feature repo. It will be available with the immediate analytics
> feature release.
>
> [1]
> https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature
>
> Thanks,
> Malith
> --
> Malith Dhanushka
> Senior Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com *
> *Mobile*  : +94 716 506 693
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-19 Thread Malith Dhanushka
On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> This new change is only for OSGi based servers in the platform right? Are
> there any changes for standalone data publishing API's used with non-OSGi
> servers in the platform or is it still the same as before? We have AS 6.0.0
> which is based on pure tomcat and currently we are using the minimum
> required data publishing libs and the standalone data publishing API's to
> publish HTTP stats to DAS.
>

Yes this new change is only for OSGi based servers and no change in
standalone data publishing API's.


> On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka  wrote:
>
>> Hi all,
>>
>> Please follow the steps bellow when publishing events from carbon servers
>> to DAS/CEP. Here we keep the DAS/CEP server location in
>> CARBON_HOME/repository/deployment/server/eventpublishers directory and this
>> is common across platform.
>>
>> - Install the Event Publisher Aggregate feature from p2_repo [1]
>>
>> - Install Registry Core feature if not installed
>>
>> - Create event stream and deploy that to
>> CARBON_HOME/repository/deployment/server/eventstreams
>>
>> - Create publishers for the created stream and deploy that to
>>  CARBON_HOME/repository/deployment/server/eventpublishers
>> Following is a sample configuration,
>>
>> 
>> > xmlns="http://wso2.org/carbon/eventpublisher";>
>>   
>>   
>>   
>> admin
>> thrift
>> non-blocking
>> 0
>> tcp://localhost:7611
>> X
>>   
>> 
>>
>> - Publish events to the created stream using
>> org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
>> Following is a sample code snippet.
>>
>> Event event = new Event();
>> event.setTimeStamp(System.currentTimeMillis());
>> event.setStreamId("streamTest:1.0.0");
>> event.setPayloadData(new Object[]{data});
>> eventStreamService.publish(event);
>>
>> Please note that Event Publisher Aggregate feature is not yet included
>> in carbon feature repo. It will be available with the immediate analytics
>> feature release.
>>
>> [1]
>> https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature
>>
>> Thanks,
>> Malith
>> --
>> Malith Dhanushka
>> Senior Software Engineer - Data Technologies
>> *WSO2, Inc. : wso2.com *
>> *Mobile*  : +94 716 506 693
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Malith Dhanushka
Senior Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-14 Thread Malith Dhanushka
Hi all,

Please follow the steps bellow when publishing events from carbon servers
to DAS/CEP. Here we keep the DAS/CEP server location in
CARBON_HOME/repository/deployment/server/eventpublishers directory and this
is common across platform.

- Install the Event Publisher Aggregate feature from p2_repo [1]

- Install Registry Core feature if not installed

- Create event stream and deploy that to
CARBON_HOME/repository/deployment/server/eventstreams

- Create publishers for the created stream and deploy that to
 CARBON_HOME/repository/deployment/server/eventpublishers
Following is a sample configuration,


http://wso2.org/carbon/eventpublisher";>
  
  
  
admin
thrift
non-blocking
0
tcp://localhost:7611
X
  


- Publish events to the created stream using
org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
Following is a sample code snippet.

Event event = new Event();
event.setTimeStamp(System.currentTimeMillis());
event.setStreamId("streamTest:1.0.0");
event.setPayloadData(new Object[]{data});
eventStreamService.publish(event);

Please note that Event Publisher Aggregate feature is not yet included
in carbon feature repo. It will be available with the immediate analytics
feature release.

[1]
https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature

Thanks,
Malith
-- 
Malith Dhanushka
Senior Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev