1 package org.objectweb.proactive.examples.components.helloworld; 2 24 25 import org.objectweb.fractal.api.control.BindingController; 26 import org.objectweb.proactive.ProActive; 27 28 public class ClientImpl implements Main, BindingController { 29 30 private Service service; 31 32 public void main (final String [] args) { 33 System.out.println("main method on client implementation object on node : " + ProActive.getBodyOnThis().getNodeURL()); 34 service.print("hello world"); 35 } 36 37 public String [] listFc () { 38 return new String [] { "s" }; 39 } 40 41 public Object lookupFc (final String cItf) { 42 if (cItf.equals("s")) { 43 return service; 44 } 45 return null; 46 } 47 48 public void bindFc (final String cItf, final Object sItf) { 49 if (cItf.equals("s")) { 50 service = (Service)sItf; 51 } 52 } 53 54 public void unbindFc (final String cItf) { 55 if (cItf.equals("s")) { 56 service = null; 57 } 58 } 59 } 60 | Popular Tags |