You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Mikael <mi...@gmail.com> on 2020/06/11 08:17:02 UTC

Check service location possible ?

Hi!

Is there any good way to detect if a service is running local or remote 
? I guess I could check the instance of the returned proxy and see if it 
is the implementation class or not, but it feels a bit ugly, is there 
some other nicer way to do this ?



Re: Check service location possible ?

Posted by Mikael <mi...@gmail.com>.
Ah, of course, thanks.

Den 2020-06-11 kl. 10:41, skrev Alex Plehanov:
> Hello,
>
> IgniteServices.service(String name) method return service instance if 
> it's deployed locally or null.
>
> чт, 11 июн. 2020 г. в 11:16, Mikael <mikael.aronsson@gmail.com 
> <ma...@gmail.com>>:
>
>     Hi!
>
>     Is there any good way to detect if a service is running local or
>     remote
>     ? I guess I could check the instance of the returned proxy and see
>     if it
>     is the implementation class or not, but it feels a bit ugly, is there
>     some other nicer way to do this ?
>
>

Re: Check service location possible ?

Posted by Alex Plehanov <pl...@gmail.com>.
Hello,

IgniteServices.service(String name) method return service instance if it's
deployed locally or null.

чт, 11 июн. 2020 г. в 11:16, Mikael <mi...@gmail.com>:

> Hi!
>
> Is there any good way to detect if a service is running local or remote
> ? I guess I could check the instance of the returned proxy and see if it
> is the implementation class or not, but it feels a bit ugly, is there
> some other nicer way to do this ?
>
>
>