@Test public void testGetEventEventIdIsNull() { try { this.iProducer.getEvent(null, this.channelName); Assert.fail(); } catch (BrokerException e) { Assert.assertEquals(ErrorCode.EVENT_ID_IS_ILLEGAL.getCode(), e.getCode()); } }
@Override public WeEvent getEvent(String eventId, String channelName) throws BrokerException { log.debug("getEvent function input param eventId: {}", eventId); validateChannelName(channelName); return fabricDelegate.getFabricMap().get(channelName).getEvent(eventId); }
FabricTopicAdmin implements IEventTopic { @Override public WeEvent getEvent(String eventId, String channelName) throws BrokerException { log.debug("getEvent function input param eventId: {}", eventId); validateChannelName(channelName); return fabricDelegate.getFabricMap().get(channelName).getEvent(eventId); } }
FabricTopicAdmin implements IEventTopic { @Override public WeEvent getEvent(String eventId, String channelName) throws BrokerException { log.debug("getEvent function input param eventId: {}", eventId); validateChannelName(channelName); return fabricDelegate.getFabricMap().get(channelName).getEvent(eventId); } FabricTopicAdmin(FabricDelegate fabricDelegate); }
FabricTopicAdmin implements IEventTopic { @Override public WeEvent getEvent(String eventId, String channelName) throws BrokerException { log.debug("getEvent function input param eventId: {}", eventId); validateChannelName(channelName); return fabricDelegate.getFabricMap().get(channelName).getEvent(eventId); } FabricTopicAdmin(FabricDelegate fabricDelegate); @Override boolean open(String topic, String channelName); @Override boolean close(String topic, String channelName); @Override WeEvent getEvent(String eventId, String channelName); @Override boolean exist(String topic, String channelName); @Override TopicPage list(Integer pageIndex, Integer pageSize, String channelName); @Override TopicInfo state(String topic, String channelName); @Override List<String> listGroupId(); @Override Long getBlockHeight(String channelName); @Override GroupGeneral getGroupGeneral(String channelName); @Override ListPage<TbTransHash> queryTransList(QueryEntity queryEntity); @Override ListPage<TbBlock> queryBlockList(QueryEntity queryEntity); @Override ListPage<TbNode> queryNodeList(QueryEntity queryEntity); @Override ContractContext getContractContext(String groupId); @Override boolean addOperator(String groupId, String topicName, String address); @Override boolean delOperator(String groupId, String topicName, String address); @Override List<String> listOperator(String groupId, String topicName); @Override void validateGroupId(String channelName); }
FabricTopicAdmin implements IEventTopic { @Override public WeEvent getEvent(String eventId, String channelName) throws BrokerException { log.debug("getEvent function input param eventId: {}", eventId); validateChannelName(channelName); return fabricDelegate.getFabricMap().get(channelName).getEvent(eventId); } FabricTopicAdmin(FabricDelegate fabricDelegate); @Override boolean open(String topic, String channelName); @Override boolean close(String topic, String channelName); @Override WeEvent getEvent(String eventId, String channelName); @Override boolean exist(String topic, String channelName); @Override TopicPage list(Integer pageIndex, Integer pageSize, String channelName); @Override TopicInfo state(String topic, String channelName); @Override List<String> listGroupId(); @Override Long getBlockHeight(String channelName); @Override GroupGeneral getGroupGeneral(String channelName); @Override ListPage<TbTransHash> queryTransList(QueryEntity queryEntity); @Override ListPage<TbBlock> queryBlockList(QueryEntity queryEntity); @Override ListPage<TbNode> queryNodeList(QueryEntity queryEntity); @Override ContractContext getContractContext(String groupId); @Override boolean addOperator(String groupId, String topicName, String address); @Override boolean delOperator(String groupId, String topicName, String address); @Override List<String> listOperator(String groupId, String topicName); @Override void validateGroupId(String channelName);  }