Line (Hyperic HQ Plugin API)
Keywords: org.novadeck.jxla.data.Line class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.novadeck.jxla.data
Class Line

    java.lang.Object
      org.novadeck.jxla.data.Line

All Implemented Interfaces:
  java.lang.Cloneable

    public class Line

extends java.lang.Object
implements java.lang.Cloneable

Only one instance of it is use for computing logs. All information represents are about one web request

Method Summary
`java.lang.Object` | `clone()`
`java.util.Date` | `getDate()` Retrieve date of resquest
`java.lang.String` | `getHost()` Retrieve the internal website name for this request
`java.lang.String` | `getKeywords()` Retrieve keywords from serach engine referers if any
`static Line` | `getLine(java.lang.String host, int day, int month, int year, int hour, int minute, int second, java.lang.String remoteIp, java.lang.String uri, java.lang.String referer, java.lang.String userAgent, java.lang.String status, long size, java.lang.String user, double time_taken, java.lang.String offset, long date_msec)` update line with current information
`java.lang.String` | `getLogDate()` Retrieve date of resquest
`java.lang.String` | `getReferer()` Retrieve the referer of request
`java.lang.String` | `getRemoteIP()` Retrieve remote user computer name ( if reverse dns enabled) or his IP ( if not )
`long` | `getSize()` Retrive size if the response, used to updated site traffic information
`java.lang.Long` | `getStatus()` Retrieve status response of the request
`static double` | `getTimeMultiplier()`
`double` | `getTimeTaken()` Retrive size if the response, used to updated site traffic information
`java.lang.String` | `getURI()` Retrieve the uri of the requst
`java.lang.String` | `getUser()` Retrieve user logging name
`java.lang.String` | `getUserAgent()` retrieve remote user UserAgent, using short names
`boolean` | `isLineEmpty()` Return true if line is correctly parsed, and ready to be used to update reports
`void` | `release()` empty all data information
`static void` | `setTimeMultiplier(double t)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Method Detail

### release

    public void release()

  empty all data information

### getLine

    public static Line getLine(java.lang.String host,
                               int day,
                               int month,
                               int year,
                               int hour,
                               int minute,
                               int second,
                               java.lang.String remoteIp,
                               java.lang.String uri,
                               java.lang.String referer,
                               java.lang.String userAgent,
                               java.lang.String status,
                               long size,
                               java.lang.String user,
                               double time_taken,
                               java.lang.String offset,
                               long date_msec)

  update line with current information

### getDate

    public java.util.Date getDate()

  Retrieve date of resquest

  Returns:
    date of request

### getLogDate

    public java.lang.String getLogDate()

  Retrieve date of resquest

  Returns:
    date of request

### getHost

    public java.lang.String getHost()

  Retrieve the internal website name for this request

  Returns:
    site name

### getURI

    public java.lang.String getURI()

  Retrieve the uri of the requst

  Returns:
    URI of the request

### getReferer

    public java.lang.String getReferer()

  Retrieve the referer of request

  Returns:
    referer

### getKeywords

    public java.lang.String getKeywords()

  Retrieve keywords from serach engine referers if any

  Returns:
    search keyword or null

### getRemoteIP

    public java.lang.String getRemoteIP()

  Retrieve remote user computer name ( if reverse dns enabled) or his IP ( if not )

  Returns:
    remote user machine

### getStatus

    public java.lang.Long getStatus()

  Retrieve status response of the request

  Returns:
    status

### getUserAgent

    public java.lang.String getUserAgent()

  retrieve remote user UserAgent, using short names

  Returns:
    user agent
  See Also:
    `Utils`

### getSize

    public long getSize()

  Retrive size if the response, used to updated site traffic information

  Returns:
    size of HTTP response

### getTimeTaken

    public double getTimeTaken()

  Retrive size if the response, used to updated site traffic information

  Returns:
    size of HTTP response

### getUser

    public java.lang.String getUser()

  Retrieve user logging name

  Returns:
    user info

### isLineEmpty

    public boolean isLineEmpty()

  Return true if line is correctly parsed, and ready to be used to update reports

  Returns:
    if line is empty

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### clone

    public java.lang.Object clone()

  Overrides:
    `clone` in class `java.lang.Object`

### setTimeMultiplier

    public static void setTimeMultiplier(double t)

### getTimeMultiplier

    public static double getTimeMultiplier()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.