Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 



org.eclipse.wst.validation
Class PerformanceCounters

java.lang.Object
  extended by 
org.eclipse.wst.validation.PerformanceCounters

public class PerformanceCounters
extends java.lang.Object

Some performance information for a validation invocation. This object is immutable.

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
PerformanceCounters (java.lang.String validatorId, java.lang.String validatorName, java.lang.String resourceName, int numberInvocations, long elapsedTime, long cpuTime)
           
 
Method Summary
 long getCpuTime ()
          Answer the amount of CPU time in nanoseconds.
 long getElapsedTime ()
          Answer the elapsed time in milliseconds.
 int getNumberInvocations ()
           
 java.lang.String getResourceName ()
           
 java.lang.String getValidatorId ()
           
 java.lang.String getValidatorName ()
           
 long getWhen ()
          Answer when was the event logged.
 java.lang.String toString ()
           
 java.lang.String toString (boolean asSummary)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerformanceCounters

public PerformanceCounters(java.lang.String validatorId,
                           java.lang.String validatorName,
                           java.lang.String resourceName,
                           int numberInvocations,
                           long elapsedTime,
                           long cpuTime)
Parameters:
validatorId -
validatorName -
resourceName -
numberInvocations - number of times the validator was invoked
elapsedTime - elapsed time in milliseconds
cpuTime - CPU time in nanoseconds
Method Detail

getValidatorId

public java.lang.String getValidatorId()

getNumberInvocations

public int getNumberInvocations()

getElapsedTime

public long getElapsedTime()
Answer the elapsed time in milliseconds.


getCpuTime

public long getCpuTime()
Answer the amount of CPU time in nanoseconds. If this can not be determined, answer -1.


toString

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

toString

public java.lang.String toString(boolean asSummary)

getValidatorName

public java.lang.String getValidatorName()

getWhen

public long getWhen()
Answer when was the event logged.

See Also:
System.currentTimeMillis()

getResourceName

public java.lang.String getResourceName()



 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire