private void writeClusterLoader( XMLExtendedStreamWriter writer, ClusterLoaderConfiguration configuration) throws XMLStreamException { writer.writeStartElement(Element.CLUSTER_LOADER); configuration.attributes().write(writer); writeCommonStoreSubAttributes(writer, configuration); writeCommonStoreElements(writer, configuration); writer.writeEndElement(); }
private Collection<Response> doRemoteCall(ClusteredGetCommand clusteredGetCommand) throws PersistenceException { Set<Address> members = new HashSet<>(rpcManager.getTransport().getMembers()); Address self = rpcManager.getTransport().getAddress(); ResponseFilter filter = new ClusteredGetResponseValidityFilter(members, self); try { RpcOptions options = rpcManager .getRpcOptionsBuilder(ResponseMode.WAIT_FOR_VALID_RESPONSE) .timeout(configuration.remoteCallTimeout(), TimeUnit.MILLISECONDS) .responseFilter(filter) .build(); return rpcManager.invokeRemotely(null, clusteredGetCommand, options).values(); } catch (Exception e) { log.errorDoingRemoteCall(e); throw new PersistenceException(e); } }