org.gcube.common.accounting.node.util
Class Util
java.lang.Object
org.gcube.common.accounting.node.util.Util
public class Util
- extends Object
- Author:
- Andrea Manzi(CERN)
Constructor Summary |
Util(org.gcube.common.core.utils.logging.GCUBELog logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
DATE_FORMAT_DAY
public static final String DATE_FORMAT_DAY
- See Also:
- Constant Field Values
format
public static SimpleDateFormat format
format_day
public static SimpleDateFormat format_day
Util
public Util(org.gcube.common.core.utils.logging.GCUBELog logger)
groupAccountingMessages
protected ArrayList<org.gcube.messaging.common.messages.NodeAccountingMessage<org.gcube.messaging.common.messages.records.IntervalRecord>> groupAccountingMessages(ArrayList<LogEntry> entries,
DateInterval interval)
generateDateIntervals
public ArrayList<DateInterval> generateDateIntervals(PersistenceAdapter adapter,
Long interval)
- generateDateIntervals
- Parameters:
adapter
- interval
-
- Returns:
matchIntervalsWithLogFiles
public HashMap<File,ArrayList<DateInterval>> matchIntervalsWithLogFiles(File[] files,
ArrayList<DateInterval> inputIntervals)
- Parameters:
files
- inputIntervals
-
- Returns:
updateAccoutingInfo
public void updateAccoutingInfo(ArrayList<org.gcube.messaging.common.messages.NodeAccountingMessage<org.gcube.messaging.common.messages.records.IntervalRecord>> messages,
PersistenceAdapter adapter,
DateInterval interval)
throws Exception
- Throws:
Exception
createAccountingInfo
public ArrayList<org.gcube.messaging.common.messages.NodeAccountingMessage<org.gcube.messaging.common.messages.records.IntervalRecord>> createAccountingInfo(File input,
DateInterval interval)
throws IOException,
Exception
- Throws:
IOException
Exception
getClazz
public static String getClazz(String line)
getName
public static String getName(String line)
Copyright © 2013. All Rights Reserved.