protected VisorCache initHistory(VisorCache c){
  if (c != null) {
    c.name=name;
    c.mode=mode;
    c.memorySize=memorySize;
    c.indexesSize=indexesSize;
    c.size=size;
    c.nearSize=nearSize;
    c.dhtSize=dhtSize;
    c.primarySize=primarySize;
    c.offHeapAllocatedSize=offHeapAllocatedSize;
    c.offHeapEntriesCnt=offHeapEntriesCnt;
    c.swapSize=swapSize;
    c.swapKeys=swapKeys;
    c.partitions=partitions;
    c.primaryPartitions=Collections.emptyList();
    c.backupPartitions=Collections.emptyList();
    c.metrics=metrics;
  }
  return c;
}

protected VisorCache initHistory ( VisorCache c ) { if ( c != null ) { c . name = name ; c . mode = mode ; c . memorySize = memorySize ; c . indexesSize = indexesSize ; c . size = size ; c . nearSize = nearSize ; c . dhtSize = dhtSize ; c . primarySize = primarySize ; c . offHeapAllocatedSize = offHeapAllocatedSize ; c . offHeapEntriesCnt = offHeapEntriesCnt ; c . swapSize = swapSize ; c . swapKeys = swapKeys ; c . partitions = partitions ; c . primaryPartitions = Collections . emptyList ( ) ; c . backupPartitions = Collections . emptyList ( ) ; c . metrics = metrics ; } return c ; }
fill values that should be stored in history ;
