You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by de...@geronimo.apache.org on 2004/07/27 04:40:17 UTC
[jira] Closed: (GERONIMO-34) JSR77 statistics implementation
Message:
The following issue has been closed.
Resolver: Gianny DAMOUR
Date: Mon, 26 Jul 2004 7:39 PM
This is no more required.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-34
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-34
Summary: JSR77 statistics implementation
Type: Improvement
Status: Closed
Priority: Minor
Resolution: WON'T FIX
Project: Apache Geronimo
Components:
management
Fix Fors:
1.0-M2
Assignee: Gianny DAMOUR
Reporter: Gianny DAMOUR
Created: Thu, 28 Aug 2003 3:19 AM
Updated: Mon, 26 Jul 2004 7:39 PM
Description:
Implementation of the javax.management.j2ee.statistics.* interfaces.
These implementations are located in the org.apache.geronimo.management.impl.statistics package.
More accurately, for each Stats interface X which extends Y, two classes have been created:
- GeronimoX: X enhancement specific to Geronimo; and
- XImpl: GeronimoX implementation.
Cheers,
Gianny
PS: the implementations have been generated via the following templates, hence, if the templates are fine, then one can skip "safely" the check of each file.
=============================================================
GeronimoX has been generated by applying this pseudo-template:
public interface GeronimoX
extends GeronimoY, X
{
#foreach( attribute of type Statistic )
public Geronimo<attribute type> provide<attribute name>();
#end
#foreach( attribute of simple type (int, long, String, etc) )
public void set<attribute name>()(<attribute type> aValue);
#end
#foreach( attribute of type array )
public void add<attribute name>()(<attribute type> aStats);
public void remove<attribute name>()(<attribute type> aStats);
#end
}
=============================================================
XImpl has been generated by applying this pseudo-template:
public class XImpl
extends YImpl
implements GeronimoX
{
#foreach( attribute of simple type (int, long, String, etc) )
private <attribute type> m_<attribute name>;
#end
#foreach( attribute of type array )
private Collection m_<attribute name>;
#end
public XImpl()() {
#foreach( attribute of type array )
m_<attribute name> = new ArrayList();
#end
}
#foreach( attribute of type Statistic )
public <attribute type> get<attribute name>() {
return (<attribute type>) getStatistic(Types.<attribute NAME>.getName());
}
public Geronimo<attribute type> provide<attribute name>() {
Geronimo<attribute name> stats = m_statsFactory.factory<attribute type>()(Types..getName(), Types.<attribute NAME>.getDescription(), this);
addStatistics(stats);
return stats;
}
#end
#foreach( attribute of simple type (int, long, String, etc) )
public <attribute type> get<attribute name>() {
return m_<attribute name>;
}
public void set<attribute name>()(<attribute type> aValue) {
m_<attribute name> = aValue;
}
#end
#foreach( attribute of type array )
public <attribute type>[] get<attribute name>() {
return (<attribute type>[]) m_<attribute name>.toArray(new <attribute type>[0]);
}
public void add<attribute name>()(<attribute type> aStats) {
m_<attribute type>.add(aStats);
}
public void remove<attribute name>()(<attribute type> aStats) {
m_<attribute type>.remove(aStats);
}
#end
/**
* Attributes supported by <attribute name>
*/
public static final class Types {
#foreach( attribute of type Statistic )
public static final Type <attribute NAME> = new Type("<attribute name>", "<attribute name>");
#end
}
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira