@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); this.excludedServers = SerializationHelper.readServerLocationSet(in); }
@Override public void toData(DataOutput out) throws IOException { super.toData(out); SerializationHelper.writeServerLocationSet(this.excludedServers, out); }
@Override public String toString() { return "ClientConnectionRequest{group=" + getServerGroup() + ", excluded=" + getExcludedServers() + "}"; }
@Override public void toData(final DataOutput out) throws IOException { writePid(out); writeUptime(out); writeWorkingDirectory(out); writeJvmArguments(out); writeClasspath(out); writeGemFireVersion(out); writeJavaVersion(out); writeLogFile(out); writeHost(out); writePort(out); writeName(out); }
private ClientConnectionResponse pickReplacementServer(ClientReplacementRequest clientRequest) { ServerLocation location = loadSnapshot.getReplacementServerForConnection(clientRequest.getCurrentServer(), clientRequest.getServerGroup(), clientRequest.getExcludedServers()); return new ClientConnectionResponse(location); }
private ClientConnectionResponse pickServer(ClientConnectionRequest clientRequest) { ServerLocation location = loadSnapshot.getServerForConnection(clientRequest.getServerGroup(), clientRequest.getExcludedServers()); return new ClientConnectionResponse(location); }
@Override public String toString() { return "ClientReplacementRequest{group=" + getServerGroup() + ", excluded=" + getExcludedServers() + ", currentServer=" + getCurrentServer() + "}"; }
@Override public String toString() { return "QueueConnectionRequest{group=" + getServerGroup() + ", excluded=" + getExcludedServers() + ", redundant= " + redundantCopies + ",findDurable=" + findDurable + ",proxyId=" + proxyId + "}"; }
@Override public void fromData(DataInput in) throws IOException, ClassNotFoundException { super.fromData(in); }
@Override public void toData(DataOutput out) throws IOException { super.toData(out); }
@Override public String toString() { return "ClientConnectionResponse{server=" + getServer() + "}"; }
@Override public List<ServerLocation> getAllServers() { if (PoolImpl.TEST_DURABLE_IS_NET_DOWN) { return null; } GetAllServersRequest request = new GetAllServersRequest(serverGroup); GetAllServersResponse response = (GetAllServersResponse) queryLocators(request); if (response != null) { return response.getServers(); } else { return null; } }
private GetAllServersResponse pickAllServers(GetAllServersRequest clientRequest) { ArrayList servers = loadSnapshot.getServers(clientRequest.getServerGroup()); return new GetAllServersResponse(servers); }
public static void writeServerLocationSet(Set/* <ServerLocation> */ serverLocations, DataOutput out) throws IOException { writeServerLocations(serverLocations, out); }
@Override public void toData(DataOutput out) throws IOException { SerializationHelper.writeServerLocationList(servers, out); }
public static void writeBucketServerLocationSet(Set<BucketServerLocation66> bucketServerLocations, DataOutput out) throws IOException { writeBucketServerLocations(bucketServerLocations, out); }
@Override public String toString() { return "LocatorListRequest{group=" + getServerGroup() + "}"; }
@Override public String toString() { return "GetAllServersRequest{group=" + getServerGroup(); }
@Override public String toString() { return "GetAllServersResponse{servers=" + getServers() + "}"; }
public static void writeServerLocationList(List/* <ServerLocation> */ serverLocations, DataOutput out) throws IOException { writeServerLocations(serverLocations, out); }