com.bowstreet.appserver.logmanager
Class Component

java.lang.Object
  extended by com.bowstreet.appserver.logmanager.Component

public final class Component
extends java.lang.Object

Provides methods for recording and accessing component names used for filtering and recording log events.

Names are case in-sensitive.


Field Summary
static int ADMIN
          admin component
static int ALL
          component is not specified
static int CONFIG
          config component
static int DB
          database component
static int DIR_SERVICES
          directory service component
static int INITIALCAPACITY
          initial capacity of the components arraylist
static int MODEL
          model component
static int PROFILING
          profiling component
static int SECURITY
          security component
static int SERVER
          server component
static int SERVICE
          security component
static int SERVLET
          servlet component
 
Constructor Summary
Component()
           
 
Method Summary
static void addComponent(java.lang.String comp)
          Add a component to the predefined component array.
static java.lang.String getName(int value)
          convert an integer passed as argument to the name of component.
static java.lang.String[] getNames()
          Returns an array of defined component names.
static int getValue(java.lang.String name)
          convert the name of component to the integer representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMIN

public static final int ADMIN
admin component

See Also:
Constant Field Values

ALL

public static final int ALL
component is not specified

See Also:
Constant Field Values

CONFIG

public static final int CONFIG
config component

See Also:
Constant Field Values

DB

public static final int DB
database component

See Also:
Constant Field Values

DIR_SERVICES

public static final int DIR_SERVICES
directory service component

See Also:
Constant Field Values

INITIALCAPACITY

public static final int INITIALCAPACITY
initial capacity of the components arraylist

See Also:
Constant Field Values

MODEL

public static final int MODEL
model component

See Also:
Constant Field Values

PROFILING

public static final int PROFILING
profiling component

See Also:
Constant Field Values

SECURITY

public static final int SECURITY
security component

See Also:
Constant Field Values

SERVER

public static final int SERVER
server component

See Also:
Constant Field Values

SERVICE

public static final int SERVICE
security component

See Also:
Constant Field Values

SERVLET

public static final int SERVLET
servlet component

See Also:
Constant Field Values
Constructor Detail

Component

public Component()
Method Detail

addComponent

public static void addComponent(java.lang.String comp)
Add a component to the predefined component array. Duplicate name will be ignored.

Parameters:
comp - component name to add

getName

public static java.lang.String getName(int value)
convert an integer passed as argument to the name of component. Note that index of zero is invalid


getNames

public static java.lang.String[] getNames()
Returns an array of defined component names.


getValue

public static int getValue(java.lang.String name)
convert the name of component to the integer representation.



Copyright © 2009 IBM. All Rights Reserved.