public Servants createServants(DirectConnectCommunicator communicator)
        {
            Trace.TraceError("QwerkClientServantFactory.createServants()");

            TerkUserServant mainServant = new TerkUserServant(communicator.getCommunicator());

            ObjectAdapter adapter = communicator.addObjectAdapter(communicator.getObjectAdapterName());

            ObjectPrx mainServantProxy = adapter.add(mainServant, new Identity(DirectConnectCommunicator.MAIN_SERVANT_PROXY_IDENTITY_NAME, ""));

            TerkUserPrx mainServantPrx = TerkUserPrxHelper.uncheckedCast(mainServantProxy);

            return new Servants(mainServantPrx, mainServantPrx);
        }
Ejemplo n.º 2
0
        public Servants createServants(DirectConnectCommunicator communicator)
        {
            Trace.TraceError("QwerkClientServantFactory.createServants()");

            TerkUserServant mainServant = new TerkUserServant(communicator.getCommunicator());

            ObjectAdapter adapter = communicator.addObjectAdapter(communicator.getObjectAdapterName());

            ObjectPrx mainServantProxy = adapter.add(mainServant, new Identity(DirectConnectCommunicator.MAIN_SERVANT_PROXY_IDENTITY_NAME, ""));

            TerkUserPrx mainServantPrx = TerkUserPrxHelper.uncheckedCast(mainServantProxy);

            return(new Servants(mainServantPrx, mainServantPrx));
        }
 public PeerPingerState(HostAndPort peerHostAndPort, ObjectPrx proxy, DirectConnectCommunicator comm)
 {
     this.peerHostAndPort = peerHostAndPort;
     this.proxy = proxy;
     this.comm = comm;
 }
 public PeerPingerState(HostAndPort peerHostAndPort, ObjectPrx proxy, DirectConnectCommunicator comm)
 {
     this.peerHostAndPort = peerHostAndPort;
     this.proxy           = proxy;
     this.comm            = comm;
 }