/** * * @return String representing the DistributedSystemMembership of the Client VM */ public String getMembershipID() { return this.proxyId.getDSMembership(); } public int getSocketPort()
/** * * @return String representing the DistributedSystemMembership of the Client VM */ public String getMembershipID() { return this.proxyId.getDSMembership(); } public int getSocketPort()
/** * returning Map of client queue size against client Id * * param clientMap is a Map of client queue size against ClientProxyMembershipID */ private Map getClientIDMap(Map ClientProxyMembershipIDMap) { Map clientIdMap = new HashMap(); Set entrySet = ClientProxyMembershipIDMap.entrySet(); Iterator entries = entrySet.iterator(); while (entries.hasNext()) { Map.Entry entry = (Map.Entry)entries.next(); ClientProxyMembershipID key = (ClientProxyMembershipID)entry.getKey(); Integer size = (Integer)entry.getValue(); clientIdMap.put(key.getDSMembership(), size); } return clientIdMap; }
/** * returning Map of client queue size against client Id * * param clientMap is a Map of client queue size against ClientProxyMembershipID */ private Map getClientIDMap(Map ClientProxyMembershipIDMap) { Map clientIdMap = new HashMap(); Set entrySet = ClientProxyMembershipIDMap.entrySet(); Iterator entries = entrySet.iterator(); while (entries.hasNext()) { Map.Entry entry = (Map.Entry)entries.next(); ClientProxyMembershipID key = (ClientProxyMembershipID)entry.getKey(); Integer size = (Integer)entry.getValue(); clientIdMap.put(key.getDSMembership(), size); } return clientIdMap; }
/** * returns a string representation of this identifier, ignoring the toString * cache */ public String toStringNoCache() { StringBuffer sb = new StringBuffer("identity(").append(getDSMembership()) .append(",connection=").append(uniqueId); if (identity != null) { DurableClientAttributes dca = getDurableAttributes(); if (dca.getId().length() > 0) { sb.append(",durableAttributes=") .append(getDurableAttributes()).append(')').toString(); } } return sb.toString(); }
private String getBaseRegionName() { String id = isDurable()? getDurableId() : getDSMembership(); if (id.indexOf('/') >= 0) { id = id.replace('/', ':'); } StringBuilder buffer = new StringBuilder() .append("_gfe_") .append(isDurable() ? "" : "non_") .append("durable_client_") .append("with_id_"+id) .append("_") .append(this.uniqueId); return buffer.toString(); }
private String getBaseRegionName() { String id = isDurable()? getDurableId() : getDSMembership(); if (id.indexOf('/') >= 0) { id = id.replace('/', ':'); } StringBuffer buffer = new StringBuffer() .append("_gfe_") .append(isDurable() ? "" : "non_") .append("durable_client_") .append("with_id_"+id) .append("_") .append(this.uniqueId); return buffer.toString(); }
/** * returns a string representation of this identifier, ignoring the toString * cache */ public String toStringNoCache() { StringBuffer sb = new StringBuffer("identity(").append(getDSMembership()) .append(",connection=").append(uniqueId); if (identity != null) { DurableClientAttributes dca = getDurableAttributes(); if (dca.getId().length() > 0) { sb.append(",durableAttributes=") .append(getDurableAttributes()).append(')').toString(); } } return sb.toString(); }
public Map getConnectedIncomingGateways() { Map connectedIncomingGateways = new HashMap(); synchronized (_clientThreadsLock) { Iterator connectedClients = this._clientThreads.entrySet().iterator(); while (connectedClients.hasNext()) { Map.Entry entry = (Map.Entry)connectedClients.next(); ClientProxyMembershipID proxyID = (ClientProxyMembershipID)entry .getKey(); Set connections = (Set)entry.getValue(); Iterator connectionsIterator = connections.iterator(); while (connectionsIterator.hasNext()) { ServerConnection sc = (ServerConnection)connectionsIterator.next(); if (sc.getCommunicationMode() == Acceptor.GATEWAY_TO_GATEWAY) { IncomingGatewayStatus status = new IncomingGatewayStatus(proxyID .getDSMembership(), sc.getSocketAddress(), sc.getSocketPort()); connectedIncomingGateways.put(proxyID.getDSMembership(), status); } } } } return connectedIncomingGateways; }
public Map getConnectedIncomingGateways() { Map connectedIncomingGateways = new HashMap(); synchronized (_clientThreadsLock) { Iterator connectedClients = this._clientThreads.entrySet().iterator(); while (connectedClients.hasNext()) { Map.Entry entry = (Map.Entry)connectedClients.next(); ClientProxyMembershipID proxyID = (ClientProxyMembershipID)entry .getKey(); Set connections = (Set)entry.getValue(); Iterator connectionsIterator = connections.iterator(); while (connectionsIterator.hasNext()) { ServerConnection sc = (ServerConnection)connectionsIterator.next(); if (sc.getCommunicationMode() == Acceptor.GATEWAY_TO_GATEWAY) { IncomingGatewayStatus status = new IncomingGatewayStatus(proxyID .getDSMembership(), sc.getSocketAddress(), sc.getSocketPort()); connectedIncomingGateways.put(proxyID.getDSMembership(), status); } } } } return connectedIncomingGateways; }
/** * @return Returns the serverCqName. */ public String constructServerCqName(String cqName, ClientProxyMembershipID clientProxyId) { String cName = null; if (clientProxyId.isDurable()) { cName = cqName + "__" + clientProxyId.getDurableId(); } else { cName = cqName + "__" + clientProxyId.getDSMembership(); } return cName; }
ClientConnInfo clientConInfo = new ClientConnInfo(p.getProxyID(), p.getSocketHost(), p.getRemotePort(), p.isPrimary()); uniqueIds.put(p.getProxyID().getDSMembership(), clientConInfo); ClientProxyMembershipID clientId = conn.getProxyID(); if (clientId != null) { // Check added to fix bug 51987 if (uniqueIds.get(clientId.getDSMembership()) == null) { ClientConnInfo clientConInfo = new ClientConnInfo(conn.getProxyID(), conn.getSocketHost(), conn.getSocketPort(), false); uniqueIds.put(clientId.getDSMembership(), clientConInfo);
String clientIdFromProxy = ccp.getProxyID().getDSMembership(); if(clientIdFromProxy != null && clientIdFromProxy.equals(clientID)){ foundClientinCCP = true; ClientProxyMembershipID cliIdFrmProxy = conn.getProxyID(); if (clientID.equals(cliIdFrmProxy.getDSMembership() )) { String durableId = cliIdFrmProxy.getDurableId(); clientInfo = new ClientInfo((durableId != null && durableId.length() > 0 ? "Yes" : "No"), "N.A." , "N.A." );
String clientName = proxyID.getDSMembership();
String clientName = proxyId.getDSMembership(); status.setClientId(connInfo.toString()); status.setName(clientName);