net.sf.jour.rt.agent
Class ThreadNumber

java.lang.Object
  extended bynet.sf.jour.rt.agent.ThreadNumber
All Implemented Interfaces:
Event, java.io.Serializable

public class ThreadNumber
extends java.lang.Object
implements Event

Assign number to each thread. Created on 03.12.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 1.3 $ ($Author: vlads $) $Date: 2004/12/07 09:04:52 $
Author:
vlads
See Also:
Serialized Form

Field Summary
(package private) static int count
           
(package private)  boolean daemon
           
(package private)  int groupActiveCount
           
(package private)  java.lang.String groupName
           
(package private)  int localNumber
           
(package private)  java.lang.String name
           
(package private) static java.util.Hashtable threadNumber
           
 
Constructor Summary
ThreadNumber(java.lang.Thread key, int count)
           
 
Method Summary
static int get(java.lang.Thread key)
           
 java.lang.String getDescription()
           
 int getGroupActiveCount()
           
 java.lang.String getGroupName()
           
 int getLocalNumber()
           
 java.lang.String getName()
           
static ThreadNumber getThreadNumberEvent(java.lang.Thread key)
           
static java.lang.String getUniqueThreadName(ThreadNumber thread, SystemInfoEvent sysinfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadNumber

static java.util.Hashtable threadNumber

count

static int count

name

java.lang.String name

groupName

java.lang.String groupName

localNumber

int localNumber

groupActiveCount

int groupActiveCount

daemon

boolean daemon
Constructor Detail

ThreadNumber

public ThreadNumber(java.lang.Thread key,
                    int count)
Method Detail

getThreadNumberEvent

public static ThreadNumber getThreadNumberEvent(java.lang.Thread key)

get

public static int get(java.lang.Thread key)

getUniqueThreadName

public static java.lang.String getUniqueThreadName(ThreadNumber thread,
                                                   SystemInfoEvent sysinfo)

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

getGroupActiveCount

public int getGroupActiveCount()
Returns:
Returns the groupActiveCount.

getGroupName

public java.lang.String getGroupName()
Returns:
Returns the groupName.

getLocalNumber

public int getLocalNumber()
Returns:
Returns the localNumber.

getName

public java.lang.String getName()
Returns:
Returns the name.


Copyright © 2004 sourceforge. All Rights Reserved.