@Override public String getPartitionKey() { return StringPartitioningStrategy.getPartitionKey(getDistributedObjectName()); }
@Override public int hashCode() { int result = getInstanceName().hashCode(); result = 31 * result + serviceName.hashCode(); result = 31 * result + getDistributedObjectName().hashCode(); return result; }
@Override public int hashCode() { int result = getInstanceName().hashCode(); result = 31 * result + serviceName.hashCode(); result = 31 * result + getDistributedObjectName().hashCode(); return result; }
@Override public String getPartitionKey() { return StringPartitioningStrategy.getPartitionKey(getDistributedObjectName()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ClientProxy that = (ClientProxy) o; if (!getInstanceName().equals(that.getInstanceName())) { return false; } if (!getDistributedObjectName().equals(that.getDistributedObjectName())) { return false; } if (!serviceName.equals(that.serviceName)) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ClientProxy that = (ClientProxy) o; if (!getInstanceName().equals(that.getInstanceName())) { return false; } if (!getDistributedObjectName().equals(that.getDistributedObjectName())) { return false; } if (!serviceName.equals(that.serviceName)) { return false; } return true; }
private void initialize(ClientProxy clientProxy) throws Exception { Address initializationTarget = findNextAddressToSendCreateRequest(); if (initializationTarget == null) { throw new IOException("Not able to find a member to create proxy on!"); } ClientMessage clientMessage = ClientCreateProxyCodec.encodeRequest(clientProxy.getDistributedObjectName(), clientProxy.getServiceName(), initializationTarget); new ClientInvocation(client, clientMessage, clientProxy.getServiceName(), initializationTarget).invoke().get(); clientProxy.onInitialize(); }
private void initialize(ClientProxy clientProxy) throws Exception { Address initializationTarget = findNextAddressToSendCreateRequest(); if (initializationTarget == null) { throw new IOException("Not able to find a member to create proxy on!"); } ClientMessage clientMessage = ClientCreateProxyCodec.encodeRequest(clientProxy.getDistributedObjectName(), clientProxy.getServiceName(), initializationTarget); new ClientInvocation(client, clientMessage, clientProxy.getServiceName(), initializationTarget).invoke().get(); clientProxy.onInitialize(); }
proxy.getDistributedObjectName()); ClientProxyFuture registeredProxyFuture = proxies.remove(objectNamespace); ClientProxy registeredProxy = registeredProxyFuture == null ? null : registeredProxyFuture.get();
/** * Destroys the remote distributed object counterpart of this proxy by * issuing the destruction request to the cluster. */ public final void destroyRemotely() { ClientMessage clientMessage = ClientDestroyProxyCodec.encodeRequest(getDistributedObjectName(), getServiceName()); try { new ClientInvocation(getClient(), clientMessage, getName()).invoke().get(); } catch (Exception e) { throw rethrow(e); } }
proxy.getDistributedObjectName()); ClientProxyFuture registeredProxyFuture = proxies.remove(objectNamespace); ClientProxy registeredProxy = registeredProxyFuture == null ? null : registeredProxyFuture.get();
/** * Destroys the remote distributed object counterpart of this proxy by * issuing the destruction request to the cluster. */ public final void destroyRemotely() { ClientMessage clientMessage = ClientDestroyProxyCodec.encodeRequest(getDistributedObjectName(), getServiceName()); try { new ClientInvocation(getClient(), clientMessage, getName()).invoke().get(); } catch (Exception e) { throw rethrow(e); } }