You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Paolo Di Tommaso <pa...@gmail.com> on 2018/08/29 16:36:00 UTC

How check if the grid is stopped

Hi Igniters,

What's the suggested way to check if the grid is stopped. I'm trying

ignite.cluster().active()

but it's throwing the following exception.


 java.lang.IllegalStateException: Grid is in invalid state to perform this
operation. It either not started yet or has already being or have stopped
[igniteInstanceName=nextflow, state=STOPPED]


p

Re: How check if the grid is stopped

Posted by Paolo Di Tommaso <pa...@gmail.com>.
Thanks for clarifying that.

Cheers,
Paolo


On Wed, Aug 29, 2018 at 9:12 PM Alex Plehanov <pl...@gmail.com>
wrote:

> Method ignite.cluster().active() shows whether or not a cluster was
> activated.
> To check started/stopped state you can use method
> Ignition.state(igniteInstanceName).
>
> ср, 29 авг. 2018 г. в 19:36, Paolo Di Tommaso <pa...@gmail.com>:
>
>> Hi Igniters,
>>
>> What's the suggested way to check if the grid is stopped. I'm trying
>>
>> ignite.cluster().active()
>>
>> but it's throwing the following exception.
>>
>>
>>  java.lang.IllegalStateException: Grid is in invalid state to perform
>> this operation. It either not started yet or has already being or have
>> stopped [igniteInstanceName=nextflow, state=STOPPED]
>>
>>
>> p
>>
>

Re: How check if the grid is stopped

Posted by Alex Plehanov <pl...@gmail.com>.
Method ignite.cluster().active() shows whether or not a cluster was
activated.
To check started/stopped state you can use method
Ignition.state(igniteInstanceName).

ср, 29 авг. 2018 г. в 19:36, Paolo Di Tommaso <pa...@gmail.com>:

> Hi Igniters,
>
> What's the suggested way to check if the grid is stopped. I'm trying
>
> ignite.cluster().active()
>
> but it's throwing the following exception.
>
>
>  java.lang.IllegalStateException: Grid is in invalid state to perform this
> operation. It either not started yet or has already being or have stopped
> [igniteInstanceName=nextflow, state=STOPPED]
>
>
> p
>