是hazelcast的新手,我们正在尝试利用hazelcasts分布式执行程序服务在远程计算机上执行任务?但我很想知道驻留在客户端应用程序中并在客户端Jar中编译的代码如何在远程计算机上执行?远程机器如何知道代码/指令。对于以下代码
HazelcastInstance newHazelcastClient = HazelcastClient.newHazelcastClient(clientConfig);
IExecutorService executorService = newHazelcastClient.getExecutorService("xyz");
executorService.submit(new Callable<Object>() {
@Override
public Object call() throws Exception {
// TODO Auto-generated method stub
System.out.println("Am being executed on server");
return null;
}
});
此代码已编译并驻留在客户端jar中,然后服务器如何知道它