コード例 #1
0
ファイル: Serializer.java プロジェクト: andyuk1986/infinispan
 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();
 }
コード例 #2
0
 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);
   }
 }