ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgarg <pg...@gridgain.com>
Subject Re: Do services run on client nodes
Date Sat, 09 May 2015 07:37:34 GMT
/commented by alexey goncharuk/

Adam,

Using isLocal method inside a filter may be error-prone because the result
of filter evaluation depends on the node on which this filter gets
evaluated.

Here is the code snippet that deploys a service only on server nodes:

*/ServiceConfiguration svcCfg = new ServiceConfiguration();

svcCfg.setService(new MyService());
svcCfg.setNodeFilter(CacheConfiguration.SERVER_NODES);
svcCfg.setMaxPerNodeCount(1);

ignite.services().deploy(svcCfg);/*

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Do-services-run-on-client-nodes-tp142p145.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message