Container & memory resource allocation

2016-07-18 Thread Pradeep A. Dalvi
Container & memory resource allocation has been a common question around and so I thought it would be good to explain related configuration parameters. Please feel free to let me know your thoughts. Also I'm planning to add following set of information under Apex Docs. How could one add this to

Re: Force Fail Application

2016-07-18 Thread Sandesh Hegde
Platform logs that an Operator has requested shutdown, below is the message. logger.debug("Shutdown requested by the operator when alive = {}.", alive); Specific message is left to the business logic of an operator, it can log before throwing the ShutdownException. On Mon, Jul 18, 2016 at 11:56

Re: Force Fail Application

2016-07-18 Thread Sandesh Hegde
What is the outcome you are expecting from the "true exception" ? On Mon, Jul 18, 2016 at 10:11 AM Silver, Michael < michael.sil...@capitalone.com> wrote: > I looked into the ShutdownException. My only concern is that I want the > exception to be treated like a true error/exception and according

Re: Force Fail Application

2016-07-18 Thread Silver, Michael
I looked into the ShutdownException. My only concern is that I want the exception to be treated like a true error/exception and according to the docs it is not treated as such. /** * The operator should throw the following exception if it wants to gracefully conclude its operation. * This

Re: Force Fail Application

2016-07-18 Thread Devendra Tagare
Hi, Please see a sample here, https://github.com/apache/apex-malhar/blob/3ce83708f795b081d564be357a8333928154398e/library/src/test/java/com/datatorrent/lib/testbench/SeedEventGeneratorTest.java Thanks, Dev On Mon, Jul 18, 2016 at 10:08 AM, hsy...@gmail.com wrote: > He

Re: Force Fail Application

2016-07-18 Thread hsy...@gmail.com
He Michael, You can throw a ShutdownException. Siyuan On Mon, Jul 18, 2016 at 10:06 AM, Silver, Michael < michael.sil...@capitalone.com> wrote: > > > > > Hello, > > > > I am looking for a solution to force shutdown or fail my application. I > have an operator that checks that a file (which is

Force Fail Application

2016-07-18 Thread Silver, Michael
Hello, I am looking for a solution to force shutdown or fail my application. I have an operator that checks that a file (which is needed for the application to run) is present during setup. If the file is not present I want the entire application to fail. How would I do this in apex? Thank

CsvFormatter schema for enum property

2016-07-18 Thread Yogi Devendra
Hi, We have a java object which has a enum field. We wish to send these objects to CSVFormatter. What should I specify for "type" of this field? For example, My Java Object is :