final DataLocator dataLocator;
final RingIndex ringIndex;
if (type == Type.LOCAL) {
ringIndex = new LocalRingIndex();
dataLocator = new LocalDataLocator(capacity);
} else if (type == Type.SHARED) {
final String tmp = System.getProperty("java.io.tmpdir");
final File file = new File(tmp + fileName);