Examples of CallHandler


Examples of lipermi.handler.CallHandler

      ArtifactId targetId, String fullAddress, Op op, long timeout,
      IAlignmentTest test) throws CartagoInfrastructureLayerException,
      CartagoException {
   
    try {
      CallHandler callHandler = new CallHandler();
      ICartagoCallbackRemote srv = new CartagoCallbackRemote(callback, callHandler);
     
      String address = getAddress(fullAddress);
      int port = DEFAULT_PORT;
      int port1 = getPort(fullAddress);
View Full Code Here

Examples of lipermi.handler.CallHandler

  @Override
  public NodeId getNodeAt(String fullAddress)
      throws CartagoInfrastructureLayerException, CartagoException {
   
    try {
      CallHandler callHandler = new CallHandler();
      String address = getAddress(fullAddress);
      int port = DEFAULT_PORT;
      int port1 = getPort(fullAddress);
      if (port1 != -1){
        port = port1;
View Full Code Here

Examples of lipermi.handler.CallHandler

  public ICartagoContext joinRemoteWorkspace(String wspName, String fullAddress,
      AgentCredential cred, ICartagoCallback eventListener)
      throws CartagoInfrastructureLayerException, CartagoException {
   
    try {
      CallHandler callHandler = new CallHandler();
      ICartagoCallbackRemote srv = new CartagoCallbackRemote(eventListener, callHandler);
     
      String address = getAddress(fullAddress);
      int port = DEFAULT_PORT;
      int port1 = getPort(fullAddress);
View Full Code Here

Examples of lipermi.handler.CallHandler

    /* WARNING: the  timeout - 1000 - must be greater than the
       delay used by the KeepRemoteContextAliveManager
       to keep alive the remote contexts */
    //
    mPort = port;
    mCallHandler = new CallHandler();
    mServer = new Server();
   
    try {
      mCallHandler.registerGlobal(ICartagoNodeRemote.class, this);
    } catch (LipeRMIException e) {
View Full Code Here

Examples of net.sf.lipermi.handler.CallHandler

            return null;
        }

        this.logger.fine("Trying to retrieve remote proxy for " + url);

        final CallHandler handler = new CallHandler();

        try {
            final Client client = new Client(url.getHost(), url.getPort(), handler);
            final R proxy = (R) client.getGlobal(remote);
View Full Code Here

Examples of net.sf.lipermi.handler.CallHandler

        this.remoteAPIDiscoveryUtil = new RemoteAPIDiscoveryUtil(this.discovery, this);

        this.port = new PluginConfigurationUtil(this.configuration).getInt(getClass(), "export.port", getFreePort());

        this.callHandler = new CallHandler();
        this.lipeServer = new Server();
        try {
            this.lipeServer.bind(this.port, this.callHandler);
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.vaadin.console.client.util.ClientCommUtils.CallHandler

        // Register all server-driven functions
        registerServerCallbacks();
    }

    private void registerServerCallbacks() {
        comm.reg("setGreeting", new CallHandler() {
            public void call(String methodName, Object[] data) {
                getConfig().setGreeting((String) data[0]);
            }
        });
        comm.reg("setPs", new CallHandler() {
            public void call(String methodName, Object[] data) {
                setPs((String) data[0]);
            }
        });
        comm.reg("setWrap", new CallHandler() {
            public void call(String methodName, Object[] data) {
                getConfig().setWrap((Boolean) data[0]);
            }
        });
        comm.reg("setRows", new CallHandler() {
            public void call(String methodName, Object[] data) {
                getConfig().setRows((Integer) data[0]);
                setRows((Integer) data[0]);
            }
        });
        comm.reg("setCols", new CallHandler() {
            public void call(String methodName, Object[] data) {
                getConfig().setCols((Integer) data[0]);
                setCols((Integer) data[0]);
            }
        });
        comm.reg("print", new CallHandler() {
            public void call(String methodName, Object[] data) {
                print((String) data[0]);
            }
        });
        comm.reg("println", new CallHandler() {
            public void call(String methodName, Object[] data) {
                println((String) data[0]);
            }
        });
        comm.reg("println", new CallHandler() {
            public void call(String methodName, Object[] data) {
                println((String) data[0]);
            }
        });
        comm.reg("prompt", new CallHandler() {
            public void call(String methodName, Object[] data) {
                prompt((String) (data.length > 0 ? data[0] : null));
            }
        });
        comm.reg("ff", new CallHandler() {
            public void call(String methodName, Object[] data) {
                formFeed();
            }
        });
        comm.reg("cr", new CallHandler() {
            public void call(String methodName, Object[] data) {
                carriageReturn();
            }
        });
        comm.reg("lf", new CallHandler() {
            public void call(String methodName, Object[] data) {
                carriageReturn();
            }
        });
        comm.reg("clearBuffer", new CallHandler() {
            public void call(String methodName, Object[] data) {
                clearBuffer();
            }
        });
        comm.reg("reset", new CallHandler() {
            public void call(String methodName, Object[] data) {
                reset();
            }
        });
        comm.reg("newLine", new CallHandler() {
            public void call(String methodName, Object[] data) {
                newLine();
            }
        });
        comm.reg("scrollToEnd", new CallHandler() {
            public void call(String methodName, Object[] data) {
                scrollToEnd();
            }
        });
        comm.reg("bell", new CallHandler() {
            public void call(String methodName, Object[] data) {
                bell();
            }
        });
        comm.reg("setMaxBufferSize", new CallHandler() {
            public void call(String methodName, Object[] data) {
                getConfig().setMaxBufferSize((Integer) data[0]);
                setMaxBufferSize((Integer) data[0]);
            }
        });
        comm.reg("clearHistory", new CallHandler() {
            public void call(String methodName, Object[] data) {
                clearCommandHistory();
            }
        });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.