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