@ManagedOperation(description="Prints the number of rows currently allocated in the matrix for all members. " + "This value will not be lower than xmit_table_now_rows") public String dumpXmitTablesNumCurrentRows() { StringBuilder sb=new StringBuilder(); for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) sb.append(String.format("%s: %d\n", entry.getKey(), entry.getValue().getNumRows())); return sb.toString(); }
@ManagedAttribute(description="Prints the number of rows currently allocated in the matrix. This value will not " + "be lower than xmit_table_now_rows") public int getXmitTableNumCurrentRows() { Table<Message> table=local_addr != null? xmit_table.get(local_addr) : null; return table != null? table.getNumRows() : 0; }
@ManagedOperation(description="Prints the number of rows currently allocated in the matrix for all members. " + "This value will not be lower than xmit_table_now_rows") public String dumpXmitTablesNumCurrentRows() { StringBuilder sb=new StringBuilder(); for(Map.Entry<Address,Table<Message>> entry: xmit_table.entrySet()) sb.append(String.format("%s: %d\n", entry.getKey(), entry.getValue().getNumRows())); return sb.toString(); }
@ManagedAttribute(description="Prints the number of rows currently allocated in the matrix. This value will not " + "be lower than xmit_table_now_rows") public int getXmitTableNumCurrentRows() { Table<Message> table=local_addr != null? xmit_table.get(local_addr) : null; return table != null? table.getNumRows() : 0; }