You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by devinbost <de...@gmail.com> on 2020/03/02 21:35:07 UTC

Accessing cache from Ignite plugin

Hi,

I have an Ignite plugin that needs to check one of the Ignite caches with
every operation. 
The plugin was working fine until I tried using the thin client to access
one of the caches... Now, I'm just getting "Ignite cluster is unavailable"
when this line gets run:

ClientCache<String, BitSet> cache =
igniteClient.getOrCreateCache("operations-cache");

Is there a better way to access an Ignite cache from within an Ignite
plugin? 

Thanks,

Devin



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Accessing cache from Ignite plugin

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

This really depends on where exactly you are trying to access it from. Is
it possible that you try to access cache before cluster is fully up? Why
not use ignite instance instead?

Regards,
-- 
Ilya Kasnacheev


вт, 3 мар. 2020 г. в 00:35, devinbost <de...@gmail.com>:

> Hi,
>
> I have an Ignite plugin that needs to check one of the Ignite caches with
> every operation.
> The plugin was working fine until I tried using the thin client to access
> one of the caches... Now, I'm just getting "Ignite cluster is unavailable"
> when this line gets run:
>
> ClientCache<String, BitSet> cache =
> igniteClient.getOrCreateCache("operations-cache");
>
> Is there a better way to access an Ignite cache from within an Ignite
> plugin?
>
> Thanks,
>
> Devin
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>