Example usage for javax.management Descriptor toString

List of usage examples for javax.management Descriptor toString

Introduction

In this page you can find the example usage for javax.management Descriptor toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.apache.cassandra.db.compaction.CompactionManager.java

private SSTableReader lookupSSTable(final ColumnFamilyStore cfs, Descriptor descriptor) {
    for (SSTableReader sstable : cfs.getSSTables()) {
        // .equals() with no other changes won't work because in sstable.descriptor, the directory is an absolute path.
        // We could construct descriptor with an absolute path too but I haven't found any satisfying way to do that
        // (DB.getDataFileLocationForTable() may not return the right path if you have multiple volumes). Hence the
        // endsWith.
        if (sstable.descriptor.toString().endsWith(descriptor.toString()))
            return sstable;
    }//from  w  ww  . ja v  a2  s  .  c  om
    return null;
}