public LogNetworkStreamMerger(LogRequest req,MediaType mediaType,LogSvcPropertiesLoader propertiesLoader){
  logger.trace("In LogNetworkStreamMerger's constructor");
  this.request=req;
  this.mediaType=mediaType;
  this.propertiesLoader=propertiesLoader;
  List<LogNetworkReader> readers=getLogNetworkStreams();
  int size=readers.size();
  logHeads=new LogMessage[size];
  this.logStreamList=new LogNetworkReader[size];
  int index=0;
  for (  LogNetworkReader reader : readers) {
    logStreamList[index]=reader;
    logHeads[index]=null;
    index++;
  }
}

public LogNetworkStreamMerger ( LogRequest req , MediaType mediaType , LogSvcPropertiesLoader propertiesLoader ) { logger . trace ( "In LogNetworkStreamMerger's constructor" ) ; this . request = req ; this . mediaType = mediaType ; this . propertiesLoader = propertiesLoader ; List < LogNetworkReader > readers = getLogNetworkStreams ( ) ; int size = readers . size ( ) ; logHeads = new LogMessage [ size ] ; this . logStreamList = new LogNetworkReader [ size ] ; int index = 0 ; for ( LogNetworkReader reader : readers ) { logStreamList [ index ] = reader ; logHeads [ index ] = null ; index ++ ; } }
merges all logs on each node based on time stamp
