public void setType(int type) {
        this.type = type;
        if (level == LEVEL_UNDEFINED) {
            switch (type) {
                case TYPE_INT:
                case TYPE_LONG:
                case TYPE_DOUBLE:
                    level = LEVEL_LOW;
                    break;
                case TYPE_STAT:
                    level = LEVEL_MEDIUM;
                    unit = "unit.ms";
                    break;
                case TYPE_LOAD:
                    level = LEVEL_HIGH;
                    break;
                case TYPE_SUBMODULE:
                    level = LEVEL_MAX;
                    break;
                default:
                    break;
            }
        }
    }
public void setType ( int type ) { this . type = type ; if ( level == LEVEL_UNDEFINED ) { switch ( type ) { case TYPE_INT : case TYPE_LONG : case TYPE_DOUBLE : level = LEVEL_LOW ; break ; case TYPE_STAT : level = LEVEL_MEDIUM ; unit = "unit.ms" ; break ; case TYPE_LOAD : level = LEVEL_HIGH ; break ; case TYPE_SUBMODULE : level = LEVEL_MAX ; break ; default : break ; } } }
(WebSphere internal use only)