@Override public void run() { try { registry.createProxy(proxyInfo.getObjectName(), false, true); } catch (CacheNotExistsException e) { // this can happen when a cache destroy event is received // after the cache config is replicated during join (pre-join) // but before the cache proxy is created (post-join) getLogger().fine("Could not create Cache[" + proxyInfo.getObjectName() + "]. It is already destroyed.", e); } catch (ReplicatedMapCantBeCreatedOnLiteMemberException e) { // this happens when there is a lite member in the cluster // and a data member creates a ReplicatedMap proxy // (this is totally expected and doesn't need logging) ignore(e); } catch (Exception e) { logProxyCreationFailure(proxyInfo, e); } } }
@Override public void run() { try { registry.createProxy(proxyInfo.getObjectName(), false, true); } catch (CacheNotExistsException e) { // this can happen when a cache destroy event is received // after the cache config is replicated during join (pre-join) // but before the cache proxy is created (post-join) getLogger().fine("Could not create Cache[" + proxyInfo.getObjectName() + "]. It is already destroyed.", e); } catch (ReplicatedMapCantBeCreatedOnLiteMemberException e) { // this happens when there is a lite member in the cluster // and a data member creates a ReplicatedMap proxy // (this is totally expected and doesn't need logging) ignore(e); } catch (Exception e) { logProxyCreationFailure(proxyInfo, e); } } }
private void logProxyCreationFailure(ProxyInfo proxy, Throwable t) { getLogger().severe("Cannot create proxy [" + proxy.getServiceName() + ":" + proxy.getObjectName() + "]!", t); }
private void logProxyCreationFailure(ProxyInfo proxy, Throwable t) { getLogger().severe("Cannot create proxy [" + proxy.getServiceName() + ":" + proxy.getObjectName() + "]!", t); }
@Override protected void writeInternal(ObjectDataOutput out) throws IOException { super.writeInternal(out); int len = proxies != null ? proxies.size() : 0; out.writeInt(len); if (len > 0) { for (ProxyInfo proxy : proxies) { out.writeUTF(proxy.getServiceName()); out.writeObject(proxy.getObjectName()); // writing as object for backward-compatibility } } }
@Override protected void writeInternal(ObjectDataOutput out) throws IOException { super.writeInternal(out); int len = proxies != null ? proxies.size() : 0; out.writeInt(len); if (len > 0) { for (ProxyInfo proxy : proxies) { out.writeUTF(proxy.getServiceName()); out.writeObject(proxy.getObjectName()); // writing as object for backward-compatibility } } }