org.gcube.common.accounting.node.logparser
Class LogEntry

java.lang.Object
  extended by org.gcube.common.accounting.node.logparser.LogEntry

public class LogEntry
extends java.lang.Object

Author:
Andrea Manzi(CERN)

Nested Class Summary
 class LogEntry.CallInfo
          Store info about the call
 
Constructor Summary
LogEntry(RIInvocationParser.EntryType type, java.lang.String line, java.lang.String time)
          create a log entry object
 
Method Summary
 LogEntry.CallInfo getInfo()
          get the CallInfo object
 double getInvocationTime()
          get the invocationTIme
 GCUBEScope getScope()
          get the scope
 java.util.Date getStartDate()
           
 java.lang.String getTime()
          get the time
 RIInvocationParser.EntryType getType()
          get the entry type
 void setInfo(LogEntry.CallInfo info)
          set the callInfo object
 void setInvocationTime(double invocationTime)
          set the invocation TIme
 void setScope(GCUBEScope scope)
          set the scope
 void setStartDate(java.util.Date startDate)
           
 void setTime(java.lang.String time)
          set the time
 void setType(RIInvocationParser.EntryType type)
          set the entry type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntry

public LogEntry(RIInvocationParser.EntryType type,
                java.lang.String line,
                java.lang.String time)
         throws java.text.ParseException
create a log entry object

Parameters:
type - type
line - line
time - time
Throws:
java.text.ParseException - ParseException
Method Detail

getInfo

public LogEntry.CallInfo getInfo()
get the CallInfo object

Returns:

setInfo

public void setInfo(LogEntry.CallInfo info)
set the callInfo object

Parameters:
info -

getInvocationTime

public double getInvocationTime()
get the invocationTIme

Returns:
the invocation Time

setInvocationTime

public void setInvocationTime(double invocationTime)
set the invocation TIme

Parameters:
invocationTime -

getScope

public GCUBEScope getScope()
get the scope

Returns:
scope

setScope

public void setScope(GCUBEScope scope)
set the scope

Parameters:
scope - the scope

getType

public RIInvocationParser.EntryType getType()
get the entry type

Returns:
the entry type

setType

public void setType(RIInvocationParser.EntryType type)
set the entry type

Parameters:
type -

getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date startDate)

getTime

public java.lang.String getTime()
get the time

Returns:
the time

setTime

public void setTime(java.lang.String time)
set the time

Parameters:
time - the time