Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.product
Class TrackEvent

java.lang.Object
  extended by org.hyperic.hq.product.TrackEvent
All Implemented Interfaces:
java.io.Serializable

public class TrackEvent
extends java.lang.Object
implements java.io.Serializable

Simple data class for sending config and log track events back to the server. Eventually these may need to be seperated out.

See Also:
Serialized Form

Field Summary
static int MESSAGE_MAXLEN
           
static int SOURCE_MAXLEN
           
 
Constructor Summary
TrackEvent(AppdefEntityID id, long time, int level, java.lang.String source, java.lang.String message)
           
TrackEvent(java.lang.String id, long time, int level, java.lang.String source, java.lang.String message)
           
 
Method Summary
static TrackEvent decode(java.lang.String data)
           
 java.lang.String encode()
           
 AppdefEntityID getAppdefId()
           
 int getLevel()
           
 java.lang.String getMessage()
           
 java.lang.String getSource()
           
 long getTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE_MAXLEN

public static final int MESSAGE_MAXLEN
See Also:
Constant Field Values

SOURCE_MAXLEN

public static final int SOURCE_MAXLEN
See Also:
Constant Field Values
Constructor Detail

TrackEvent

public TrackEvent(AppdefEntityID id,
                  long time,
                  int level,
                  java.lang.String source,
                  java.lang.String message)

TrackEvent

public TrackEvent(java.lang.String id,
                  long time,
                  int level,
                  java.lang.String source,
                  java.lang.String message)
Method Detail

getAppdefId

public AppdefEntityID getAppdefId()

getSource

public java.lang.String getSource()

getMessage

public java.lang.String getMessage()

getTime

public long getTime()

getLevel

public int getLevel()

encode

public java.lang.String encode()
                        throws java.io.IOException
Throws:
java.io.IOException

decode

public static TrackEvent decode(java.lang.String data)
                         throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Hyperic HQ Plugin API v. 4.4.0.2

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