com.limegroup.gnutella.bugs
Class LocalServletInfo

java.lang.Object
  extended bycom.limegroup.gnutella.bugs.LocalAbstractInfo
      extended bycom.limegroup.gnutella.bugs.LocalServletInfo

public class LocalServletInfo
extends com.limegroup.gnutella.bugs.LocalAbstractInfo

This class encapsulates all of the data for an individual client machine for an individual bug report.

The servlet utilizes this class to reconstruct the data for the client machine to determine the update information to return.


Field Summary
protected  java.lang.String _acceptedIncoming
           
protected  java.lang.String _activeDownloads
           
protected  java.lang.String _activeUploads
           
protected  java.lang.String _architecture
           
protected  java.lang.String _bug
           
protected  java.lang.String _bugName
           
protected  java.lang.String _connected
           
protected  java.lang.String _currentThread
           
protected  java.lang.String _detail
           
protected  java.lang.String _freeMemory
           
protected  java.lang.String _guessCapable
           
protected  java.lang.String _httpDownloaders
           
protected  java.lang.String _javaVendor
           
protected  java.lang.String _javaVersion
           
protected  java.lang.String _leaf
           
protected  java.lang.String _leafToUp
           
protected  java.lang.String _limewireVersion
           
protected  java.lang.String _oldConnections
           
protected  java.lang.String _os
           
protected  java.lang.String _osVersion
           
protected  java.lang.String _otherBug
           
protected  java.lang.String _otherThreads
           
protected  java.lang.String _props
           
protected  java.lang.String _queuedUploads
           
protected  java.lang.String _sharedFiles
           
protected  java.lang.String _threadCount
           
protected  java.lang.String _totalMemory
           
protected  java.lang.String _ultrapeer
           
protected  java.lang.String _upTime
           
protected  java.lang.String _upToLeaf
           
protected  java.lang.String _upToUp
           
protected  java.lang.String _waitingDownloaders
           
protected static java.lang.String ACCEPTED_INCOMING
          Constant for whether or not incoming has been accepted.
protected static java.lang.String ACTIVE_DOWNLOADS
          Constant for the number of active downloads.
protected static java.lang.String ACTIVE_UPLOADS
          Constant for the number of active uploads.
protected static java.lang.String ARCHITECTURE
          Constant for the architecture.
protected static java.lang.String BUG
          Constant for the exception to report.
protected static java.lang.String BUG_NAME
          Constant for the exception's name.
protected static java.lang.String CONNECTED
          Constant for the connection status.
protected static java.lang.String CURRENT_THREAD
          Constant for the current thread name.
protected static java.lang.String DETAIL
          Constant for the detail message.
protected static java.lang.String FREE_MEMORY
          Constant for the free memory.
protected static java.lang.String GUESS_CAPABLE
          Constant for guess capability.
protected static java.lang.String HTTP_DOWNLOADERS
          Constant for the number of http downloaders.
protected static java.lang.String JAVA_VENDOR
          Constant for the java vendor.
protected static java.lang.String JAVA_VERSION
          Constant for the Java version.
protected static java.lang.String LEAF
          Constant for leaf status.
protected static java.lang.String LEAF_TO_UP
          Constant for the number of leaf -> up connections.
protected static java.lang.String LIMEWIRE_VERSION
          Constant for the LimeWire version.
protected static java.lang.String OLD_CONNECTIONS
          Constant for the number of old connections.
protected static java.lang.String OS
          Constant for the OS.
protected static java.lang.String OS_VERSION
          Constant for the OS version.
protected static java.lang.String OTHER_BUG
          Constant for an underlying bug, if any.
protected static java.lang.String OTHER_THREADS
          Constant for the other active threads.
protected static java.lang.String PROPS
          Constant for the Properties object.
protected static java.lang.String QUEUED_UPLOADS
          Constant for the number of queued uploads.
protected static java.lang.String SHARED_FILES
          Constant for the number of shared files.
protected static java.lang.String THREAD_COUNT
          Constant for the total amount of active threads.
protected static java.lang.String TOTAL_MEMORY
          Constant for the total memory.
protected static java.lang.String ULTRAPEER
          Constant for ultrapeer status.
protected static java.lang.String UP_TO_LEAF
          Constant for the number of up -> leaf connections.
protected static java.lang.String UP_TO_UP
          Constant for the number of ultrapeer -> ultrapeer connections.
protected static java.lang.String UPTIME
          Constant for the uptime.
protected static java.lang.String WAITING_DOWNLOADERS
          Constant for the number of waiting downloaders.
 
Constructor Summary
LocalServletInfo()
           
 
Method Summary
 void addKeyValuePair(java.lang.String key, java.lang.String value)
          Adds one key/value pair to the data stored in this object.
 java.lang.String getAcceptedIncoming()
           
 java.lang.String getActiveDownloads()
           
 java.lang.String getActiveUploads()
           
 java.lang.String getArchitecture()
           
 java.lang.String getBug()
           
 java.lang.String getBugName()
           
 java.lang.String getConnected()
           
 java.lang.String getCurrentThread()
           
 java.lang.String getDetail()
           
 java.lang.String getFreeMemory()
           
 java.lang.String getHttpDownloaders()
           
 java.lang.String getJavaVendor()
           
 java.lang.String getJavaVersion()
           
 java.lang.String getLeaf()
           
 java.lang.String getLeafToUp()
           
 java.lang.String getLimeWireVersion()
           
 java.lang.String getOldConnections()
           
 java.lang.String getOS()
           
 java.lang.String getOSVersion()
           
 java.lang.String getOtherBug()
           
 java.lang.String getOtherThreads()
           
 java.lang.String getParsedBug()
          Returns the parsed version of the stack trace, without the message between the exception and the stack trace.
 java.lang.String getProps()
           
 java.lang.String getQueuedUploads()
           
 java.lang.String getSharedFiles()
           
 java.lang.String getThreadCount()
           
 java.lang.String getTotalMemory()
           
 java.lang.String getUltrapeer()
           
 java.lang.String getUpTime()
           
 java.lang.String getUpToLeaf()
           
 java.lang.String getUpToUp()
           
 java.lang.String getWaitingDownloaders()
           
 java.lang.String toBugReport()
          Returns this bug as a bug report.
 java.lang.String toString()
          Prints the bug's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LIMEWIRE_VERSION

protected static final java.lang.String LIMEWIRE_VERSION
Constant for the LimeWire version.

See Also:
Constant Field Values

_limewireVersion

protected java.lang.String _limewireVersion

JAVA_VERSION

protected static final java.lang.String JAVA_VERSION
Constant for the Java version.

See Also:
Constant Field Values

_javaVersion

protected java.lang.String _javaVersion

OS

protected static final java.lang.String OS
Constant for the OS.

See Also:
Constant Field Values

_os

protected java.lang.String _os

OS_VERSION

protected static final java.lang.String OS_VERSION
Constant for the OS version.

See Also:
Constant Field Values

_osVersion

protected java.lang.String _osVersion

ARCHITECTURE

protected static final java.lang.String ARCHITECTURE
Constant for the architecture.

See Also:
Constant Field Values

_architecture

protected java.lang.String _architecture

FREE_MEMORY

protected static final java.lang.String FREE_MEMORY
Constant for the free memory.

See Also:
Constant Field Values

_freeMemory

protected java.lang.String _freeMemory

TOTAL_MEMORY

protected static final java.lang.String TOTAL_MEMORY
Constant for the total memory.

See Also:
Constant Field Values

_totalMemory

protected java.lang.String _totalMemory

BUG

protected static final java.lang.String BUG
Constant for the exception to report.

See Also:
Constant Field Values

_bug

protected java.lang.String _bug

CURRENT_THREAD

protected static final java.lang.String CURRENT_THREAD
Constant for the current thread name.

See Also:
Constant Field Values

_currentThread

protected java.lang.String _currentThread

PROPS

protected static final java.lang.String PROPS
Constant for the Properties object.

See Also:
Constant Field Values

_props

protected java.lang.String _props

UPTIME

protected static final java.lang.String UPTIME
Constant for the uptime.

See Also:
Constant Field Values

_upTime

protected java.lang.String _upTime

CONNECTED

protected static final java.lang.String CONNECTED
Constant for the connection status.

See Also:
Constant Field Values

_connected

protected java.lang.String _connected

UP_TO_UP

protected static final java.lang.String UP_TO_UP
Constant for the number of ultrapeer -> ultrapeer connections.

See Also:
Constant Field Values

_upToUp

protected java.lang.String _upToUp

UP_TO_LEAF

protected static final java.lang.String UP_TO_LEAF
Constant for the number of up -> leaf connections.

See Also:
Constant Field Values

_upToLeaf

protected java.lang.String _upToLeaf

LEAF_TO_UP

protected static final java.lang.String LEAF_TO_UP
Constant for the number of leaf -> up connections.

See Also:
Constant Field Values

_leafToUp

protected java.lang.String _leafToUp

OLD_CONNECTIONS

protected static final java.lang.String OLD_CONNECTIONS
Constant for the number of old connections.

See Also:
Constant Field Values

_oldConnections

protected java.lang.String _oldConnections

ULTRAPEER

protected static final java.lang.String ULTRAPEER
Constant for ultrapeer status.

See Also:
Constant Field Values

_ultrapeer

protected java.lang.String _ultrapeer

LEAF

protected static final java.lang.String LEAF
Constant for leaf status.

See Also:
Constant Field Values

_leaf

protected java.lang.String _leaf

ACTIVE_UPLOADS

protected static final java.lang.String ACTIVE_UPLOADS
Constant for the number of active uploads.

See Also:
Constant Field Values

_activeUploads

protected java.lang.String _activeUploads

QUEUED_UPLOADS

protected static final java.lang.String QUEUED_UPLOADS
Constant for the number of queued uploads.

See Also:
Constant Field Values

_queuedUploads

protected java.lang.String _queuedUploads

ACTIVE_DOWNLOADS

protected static final java.lang.String ACTIVE_DOWNLOADS
Constant for the number of active downloads.

See Also:
Constant Field Values

_activeDownloads

protected java.lang.String _activeDownloads

HTTP_DOWNLOADERS

protected static final java.lang.String HTTP_DOWNLOADERS
Constant for the number of http downloaders.

See Also:
Constant Field Values

_httpDownloaders

protected java.lang.String _httpDownloaders

WAITING_DOWNLOADERS

protected static final java.lang.String WAITING_DOWNLOADERS
Constant for the number of waiting downloaders.

See Also:
Constant Field Values

_waitingDownloaders

protected java.lang.String _waitingDownloaders

ACCEPTED_INCOMING

protected static final java.lang.String ACCEPTED_INCOMING
Constant for whether or not incoming has been accepted.

See Also:
Constant Field Values

_acceptedIncoming

protected java.lang.String _acceptedIncoming

SHARED_FILES

protected static final java.lang.String SHARED_FILES
Constant for the number of shared files.

See Also:
Constant Field Values

_sharedFiles

protected java.lang.String _sharedFiles

OTHER_THREADS

protected static final java.lang.String OTHER_THREADS
Constant for the other active threads.

See Also:
Constant Field Values

_otherThreads

protected java.lang.String _otherThreads

DETAIL

protected static final java.lang.String DETAIL
Constant for the detail message.

See Also:
Constant Field Values

_detail

protected java.lang.String _detail

OTHER_BUG

protected static final java.lang.String OTHER_BUG
Constant for an underlying bug, if any.

See Also:
Constant Field Values

_otherBug

protected java.lang.String _otherBug

JAVA_VENDOR

protected static final java.lang.String JAVA_VENDOR
Constant for the java vendor.

See Also:
Constant Field Values

_javaVendor

protected java.lang.String _javaVendor

THREAD_COUNT

protected static final java.lang.String THREAD_COUNT
Constant for the total amount of active threads.

See Also:
Constant Field Values

_threadCount

protected java.lang.String _threadCount

BUG_NAME

protected static final java.lang.String BUG_NAME
Constant for the exception's name.

See Also:
Constant Field Values

_bugName

protected java.lang.String _bugName

GUESS_CAPABLE

protected static final java.lang.String GUESS_CAPABLE
Constant for guess capability.

See Also:
Constant Field Values

_guessCapable

protected java.lang.String _guessCapable
Constructor Detail

LocalServletInfo

public LocalServletInfo()
Method Detail

addKeyValuePair

public void addKeyValuePair(java.lang.String key,
                            java.lang.String value)
Adds one key/value pair to the data stored in this object. This method is used on the servlet to reconstruct the LocalClientInfo object.

Parameters:
key - the key for the pair
value - the value for the pair

getLimeWireVersion

public java.lang.String getLimeWireVersion()

getJavaVersion

public java.lang.String getJavaVersion()

getOS

public java.lang.String getOS()

getOSVersion

public java.lang.String getOSVersion()

getArchitecture

public java.lang.String getArchitecture()

getFreeMemory

public java.lang.String getFreeMemory()

getTotalMemory

public java.lang.String getTotalMemory()

getBug

public java.lang.String getBug()

getCurrentThread

public java.lang.String getCurrentThread()

getProps

public java.lang.String getProps()

getUpTime

public java.lang.String getUpTime()

getConnected

public java.lang.String getConnected()

getUpToUp

public java.lang.String getUpToUp()

getUpToLeaf

public java.lang.String getUpToLeaf()

getLeafToUp

public java.lang.String getLeafToUp()

getOldConnections

public java.lang.String getOldConnections()

getUltrapeer

public java.lang.String getUltrapeer()

getLeaf

public java.lang.String getLeaf()

getActiveUploads

public java.lang.String getActiveUploads()

getQueuedUploads

public java.lang.String getQueuedUploads()

getActiveDownloads

public java.lang.String getActiveDownloads()

getHttpDownloaders

public java.lang.String getHttpDownloaders()

getWaitingDownloaders

public java.lang.String getWaitingDownloaders()

getAcceptedIncoming

public java.lang.String getAcceptedIncoming()

getSharedFiles

public java.lang.String getSharedFiles()

getOtherThreads

public java.lang.String getOtherThreads()

getDetail

public java.lang.String getDetail()

getOtherBug

public java.lang.String getOtherBug()

getJavaVendor

public java.lang.String getJavaVendor()

getThreadCount

public java.lang.String getThreadCount()

getBugName

public java.lang.String getBugName()

toBugReport

public java.lang.String toBugReport()
Returns this bug as a bug report.


getParsedBug

public final java.lang.String getParsedBug()
Returns the parsed version of the stack trace, without the message between the exception and the stack trace.


toString

public java.lang.String toString()
Prints the bug's name. This is used primarily in generating the servlet log.

Returns:
a String containing the bug's name.