You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@apex.apache.org by "Raja.Aravapalli" <Ra...@target.com> on 2016/06/20 16:58:18 UTC

property for application name

Hi,

Curious to know, Is there a property to pass the application name from properties.xml file ?


Regards,
Raja.

Re: property for application name

Posted by "Raja.Aravapalli" <Ra...@target.com>.
Thanks Sandesh. This is what I am looking for.


Regards,
Raja.

From: Sandesh Hegde <sa...@datatorrent.com>>
Reply-To: "users@apex.apache.org<ma...@apex.apache.org>" <us...@apex.apache.org>>
Date: Monday, June 20, 2016 at 1:00 PM
To: "users@apex.apache.org<ma...@apex.apache.org>" <us...@apex.apache.org>>
Subject: Re: property for application name

My previous mail was for getting the name, here is the answer for setting the name


<property>
  <name>dt.attr.APPLICATION_NAME</name>
  <value>Hello World</value>
</property>



On Mon, Jun 20, 2016 at 10:48 AM Sandesh Hegde <sa...@datatorrent.com>> wrote:
Within the Operator,  you can do the following to get the name.

context.getValue(Context.DAGContext.APPLICATION_NAME); ( Application name is part of the DAG context )

On Mon, Jun 20, 2016 at 10:07 AM Raja.Aravapalli <Ra...@target.com>> wrote:

Hi,

Curious to know, Is there a property to pass the application name from properties.xml file ?


Regards,
Raja.

Re: property for application name

Posted by Sandesh Hegde <sa...@datatorrent.com>.
My previous mail was for getting the name, here is the answer for setting
the name

<property>
  <name>dt.attr.APPLICATION_NAME</name>
  <value>Hello World</value>
</property>




On Mon, Jun 20, 2016 at 10:48 AM Sandesh Hegde <sa...@datatorrent.com>
wrote:

> Within the Operator,  you can do the following to get the name.
>
> context.getValue(Context.DAGContext.APPLICATION_NAME); ( Application name
> is part of the DAG context )
>
> On Mon, Jun 20, 2016 at 10:07 AM Raja.Aravapalli <
> Raja.Aravapalli@target.com> wrote:
>
>>
>> Hi,
>>
>> Curious to know, Is there a property to pass the application name from
>> properties.xml file ?
>>
>>
>> Regards,
>> Raja.
>>
>

Re: property for application name

Posted by Bright Chen <br...@datatorrent.com>.
You can take a look at https://github.com/DataTorrent/examples/blob/master/dt-demo/dimensions/src/main/resources/META-INF/properties.xml
 <https://github.com/DataTorrent/examples/blob/master/dt-demo/dimensions/src/main/resources/META-INF/properties.xml>Here is an example:

<property>
    <name>dt.application.TelecomDemoV2.operator.CDRGeoQueryResult.topic</name>
    <value>CDRGeoQueryResult-${dt.attr.APPLICATION_NAME}</value>
  </property>


thanks
Bright


> On Jun 20, 2016, at 10:48 AM, Sandesh Hegde <sa...@datatorrent.com> wrote:
> 
> Within the Operator,  you can do the following to get the name.
> 
> context.getValue(Context.DAGContext.APPLICATION_NAME); ( Application name is part of the DAG context )
> 
> On Mon, Jun 20, 2016 at 10:07 AM Raja.Aravapalli <Raja.Aravapalli@target.com <ma...@target.com>> wrote:
> 
> Hi,
> 
> Curious to know, Is there a property to pass the application name from properties.xml file ?
> 
> 
> Regards, 
> Raja.


Re: property for application name

Posted by Sandesh Hegde <sa...@datatorrent.com>.
Within the Operator,  you can do the following to get the name.

context.getValue(Context.DAGContext.APPLICATION_NAME); ( Application name
is part of the DAG context )

On Mon, Jun 20, 2016 at 10:07 AM Raja.Aravapalli <Ra...@target.com>
wrote:

>
> Hi,
>
> Curious to know, Is there a property to pass the application name from
> properties.xml file ?
>
>
> Regards,
> Raja.
>