@Override public void setGroupSendTrapper(GroupSendTrapper<Object, Object> newVal) { if (newVal.getDestination() == null) { newVal.setDestination(groupSendTrapper.getDestination()); Tracer.warning("group send trapper == mull!"); } else if (newVal.getDestination() == groupSendTrapper) { // adding a new one in front of old one ConnectiontEventBus.newEvent( new AReplaceConnectionEvent(this, groupSendTrapper, newVal, true, false)); } else { ConnectiontEventBus.newEvent(new AConnectionEvent(this, newVal, true)); } this.groupSendTrapper = newVal; // DistEventsBus.newEvent(new AConnectionEvent(this, newVal, true)); // groupSendTrapper.setDestination(sendTrapperDestination); }
// UniSender<ByteBuffer> uniSender; public AnObjectGroupMultiServerClientPort( DuplexMultiServerClientPort<Object> aDuplexMultiServerClientPort, GroupMultiServerClientPort<ByteBuffer> aBBgroupMultiServerClientPort) { super(aDuplexMultiServerClientPort); // groupSendTrapper = // GlobalState.getServerObjectGroupTrapperSelector().createGroupSendTrapper(this, aDestination); duplexMultiServerClientPort = aDuplexMultiServerClientPort; // bufferSerializationSupport = // BufferSerializationSupportPoolSelector.createBufferSerializationSupportPool(this); bbGroupMultiServerClientPort = aBBgroupMultiServerClientPort; if (bbGroupMultiServerClientPort == null) { groupToUniSendTrapper = MultiServerGroupToUniSendSendObjectTrapperSelector.getTrapperSelector() .createGroupToUniSendTrapper(this, duplexMultiServerClientPort); // groupToUniSendTrapper = // GlobalState.getMultiServerGroupToUniSendObjectTrapperSelector().createGroupToUniSendTrapper(this, duplexMultiServerClientPort); sendTrapperDestination = groupToUniSendTrapper; } else { // groupSerializer = // GlobalState.getMultiServerObjectGroupTranslatingIPTrapperSelector().createGroupSendTrapper(this, bbGroupMultiServerClientPort); groupSerializer = MultiServerObjectGroupTranslatingIPTrapperSelector.getTrapperSelector() .createGroupSendTrapper(this, bbGroupMultiServerClientPort); // groupSerializer = createTranslatingSendTrappper(); sendTrapperDestination = groupSerializer; ConnectiontEventBus.receiveOnlySource(duplexMultiServerClientPort); } // groupSendTrapper = // GlobalState.getMultiServerObjectGroupTrapperSelector().createGroupSendTrapper(this, // sendTrapperDestination); // groupSendTrapper = MultiServerObjectGroupTrapperSelector.getTrapperSelector(). // createGroupSendTrapper(this, sendTrapperDestination); setGroupSendTrapper(createGroupSendTrapper()); // receiveTrapper = // GlobalState.getMultiServerObjectGroupTrapperSelector().createReceiveTrapper(this, // receiveRegistrarAndNotifier); // receiveTrapper = MultiServerObjectGroupTrapperSelector.getTrapperSelector(). // createReceiveTrapper(this, receiveRegistrarAndNotifier); setReceiveTrapper(createReceiveTrapper()); }
@Override public void setDestination(GroupNamingSender<OutMessageType> newVal) { destination = newVal; ConnectiontEventBus.newEvent(new AConnectionEvent(this, newVal, true)); }