Fwd: build # in manifests of our jars
by Jason Dobies
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Forwarding to rhq-devel
- -------- Original Message --------
Subject: build # in manifests of our jars
Date: Tue, 02 Feb 2010 11:25:24 -0500
From: Ian Springer <ian.springer(a)redhat.com>
Organization: Red Hat, Inc.
As some of you may know, a Build-Number attribute is written in the
manifest of all of our jars. This build # can be found in the GUI by
selecting the Help>About menu item or from the Agent by typing the
'version' prompt command. Traditionally, the build # is used most by QE
to quickly ascertain what version of the source their build was built from.
In our SVN days, the SVN revision was used as the build #, which worked
nicely, since SVN revisions are guaranteed to be sequential over time.
For example, if I knew RHQ 1.2 was SVN r4000 and RHQ 1.3 was SVN r5000,
and my local build had build # 4500, then I know I'm working with a
build from somewhere in between 1.2 and 1.3.
Since we switched to git, the Build-Number attribute is always 0. This
is because the buildnumber plugin we were using only supported SVN. I've
updated the linux-config branch to start using the abbreviated git
last-commit SHA-1 hash (e.g. 7e45a62) as the build #. This is useful but
it lacks the quality of being sequential over time like SVN revisions.
To compensate for this, I've also made sure all our jars have a
Build-Time header which contains a human-readable date+time string. Does
this work for people, particularly QE, or would people prefer the build
# to be a sequential integer based on the current time (e.g.
year.dayOfYear.secondOfDay or seconds-since-epoch)? Or do people prefer
that both are provided, e.g.:
Build-Number: 10-33-23012
Git-Revision: 7e45a62
Also, should I cherry pick the build # updates into master now, or
should I wait until the end of this sprint when we merge all of
linux-config back into master?
- --Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJLaFVGAAoJEOMmcTqOSQHCxQ8IAIuu/6M+wrx3ty+fzHVWNYAk
46tM3xRtQsnc00sBRQezLlnFnKIHH6OdLJWnYbtoxoDMqPNweU8IZVRDiup0+i5B
jIirkE81EBnNxj7E6diwKI7z6Fx+Ms2Ltjg0LTQd9RD/9s70yKy8EcbeAbnPk53g
klq/ZmafJS6oG3sLh2z1xfxRRvbrhVwkKBwYudLlQK0DWN76U2Sp2qngPbHaCylX
aNEZCkaevzssd/SZTOPQCzmGWxvIwmOm6P1RL1pbd8rzcdbSe0UhmjDTWHcmy2bk
KTzOrwqJEIwZRjWomr18WDtUuWUcDkN6io/2BFY9cVRw819030CuR/2pohYZWWM=
=L4sI
-----END PGP SIGNATURE-----
14 years, 3 months
Multiple Server instances
by Daniel Poggel
Hello,
i developed a plugin to select some data from an oracle database. In Jopr (now RHQ) I can create multiple Server - Instances. In the rhq-plugin.xml I definied a metric, which scheduled every 35 seconds.
In my Server Component I have some variables, which set in the start() method like:
dx4database = resourceContext.getPluginConfiguration().getSimple(CONFIG_DX4DB).getStringValue();
The getValues() Method returns with a JDBC-SQL-SELECT the specific metric. In the SQL-Statement I used the variable, mentioned above.
Now it seems that each server in JOPR didn't use his own properties, definied under Connection. The dx4database is defined as "private String dx4database" in the ServerComponentClass.
Another Problem is: If i create a new Server in JOPR, the metric that I defined in the rhq-plugin.xml didn't show up under Schedules-Register.
Please, can anyone help? How Can I create with the two JAVA-Class (ServerComponent and ServerDiscoverComponent) more than one instance with their own properties and their own attributes?
Here are some code snippets:
rhqplugin.xml:
......
<server name="Doxis4DatabaseMonitorServer"
class="Doxis4DatabaseMonitorComponent"
discovery="Doxis4DatabaseMonitorDiscoveryComponent"
description="Doxis 4 CSB Server"
supportsManualAdd="true">
<plugin-configuration>
<c:simple-property name="dbname" default="nr-vm-oracle" displayName="Database Name" description="Oracle-Database name" required="true"/>
<c:simple-property name="SID" default="ser" displayName="Database SID" description="The Database SID" required="true"/>
<c:simple-property name="port" default="1521" displayName="Port" description="The Database Access-Port" required="true"/>
<c:simple-property name="username" default="UI_DOXIS4_UIT" displayName="Username" description="Database - Schema (User)" required="true"/>
<c:simple-property name="password" displayName="Password" description="Password" required="true"/>
<c:simple-property name="dx4database" displayName="Doxis4 Datenbank" description="Doxis4 Datenbank" required="true"/>
</plugin-configuration>
<metric property="archivdocuments" displayType="summary" displayName="Anzahl archiv. Dokumente"/>
</server>
.........
DiscoveryComponent:
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context) {
Set<DiscoveredResourceDetails> result = new HashSet<DiscoveredResourceDetails>();
ResourceType resourceType = context.getResourceType();
Configuration configuration = null;
List<Configuration> configurations = context.getPluginConfigurations();
configuration=configurations.get(0);
String key = "Database Monitoring "+configuration.getSimpleValue("dx4database", null);
String name = key;
String version = "3.6";
String description = "Database Monitoring";
result.add(new DiscoveredResourceDetails(resourceType, key, name,
version, description, configuration, null));
return result;
}
ServerComponent:
..............
public void start(ResourceContext con)
throws InvalidPluginConfigurationException, Exception {
this.resourceContext = con;
this.contentContext = con.getContentContext();
database_host = resourceContext.getPluginConfiguration().getSimple(
CONFIG_DATABASENAME).getStringValue();
database_user = resourceContext.getPluginConfiguration().getSimple(CONFIG_USER)
.getStringValue();
database_password = resourceContext.getPluginConfiguration().getSimple(
CONFIG_PASSWORD).getStringValue();
database_port = resourceContext.getPluginConfiguration().getSimple(CONFIG_PORT)
.getStringValue();
database_sid = resourceContext.getPluginConfiguration().getSimple(CONFIG_SID)
.getStringValue();
dx4database = resourceContext.getPluginConfiguration().getSimple(CONFIG_DX4DB)
.getStringValue();
DataSource unpooled = DataSources.unpooledDataSource(
"jdbc:oracle:thin:@"
+ database_host
+ ":"
+ database_port
+ ":"
+ database_sid, database_user,database_password);
pooled=DataSources.pooledDataSource(unpooled);
}
public void getValues(MeasurementReport report,
Set<MeasurementScheduleRequest> metrics) throws Exception {
for (MeasurementScheduleRequest request : metrics) {
archdocuments=getArchiveSize();
System.out.println("RequestName:"+request.getName());
if (request.getName().equals("archivdocuments"))
report.addData(new MeasurementDataNumeric(request, new Double(
archdocuments)));
}
}
.....................
___________________________________________________________
NEU: Mit WEB.DE DSL über 1000,- ¿ sparen!
http://produkte.web.de/go/02/
14 years, 3 months
RfC: Moving modules/enterprise/server/plugins to /modules/server-plugins
by Heiko W.Rupp
Hi,
I was thinking if we should move the server side plugins to /modules in parallel of plugins.
This would have he benefit that server compiles will not take longer and longer when the
list of server side plugins increase.
Also I think it is a better place for community to see them and pick them up.
And agent-plugins are also not hosted below agent (or server) or enterprise.
What do you think?
Heiko
14 years, 3 months
Taking database version 2.80 for content purposes
by Jason Dobies
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
See $SUBJECT
- --
Jason Dobies
http://rhq-project.org
RHCE# 805008743336126
Freenode: jdob @ #rhq
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJLazUEAAoJEOMmcTqOSQHChUsH/3ZlRNITbjtdU2Nq0w7boaJR
y/bXAWJSawl57UOlybVqtiT6PN3RgWT83RrCHmOZ6zyERoSqL9P4SenN4mpdtNzi
OlDnkQG6Qhgwc+wZMMSLjB0OymrQbcwMPErqheYzxQCw4BRgIp54tztEqpVpR/69
qnK2MG5N30WtR97NS3NvfkGhDkja107jWeQeE/DI1xUm3KKsS5y+dOsl2KM06T25
ZYA51NjDXD/AwUQq15B3+cCRV+HFKVlPnwUshkljdvm+kkVgQSYHbRhET8IzLKy2
bzPquO62VxViEgkUc0cf0fq6aVNm1fGqzJc6OBUOveQM/BiSq+YDXUws1/njVrc=
=V0ek
-----END PGP SIGNATURE-----
14 years, 3 months
Re: [rhq] modules/enterprise
by Joseph Marques
On 02/04/2010 01:33 PM, Bryan Kearney wrote:
> modules/enterprise/agent/src/main/java/org/rhq/enterprise/agent/AgentMain.java | 8 ++--
> modules/enterprise/agent/src/main/java/org/rhq/enterprise/agent/JLineAgentInputReader.java | 17 ++++++++--
> 2 files changed, 20 insertions(+), 5 deletions(-)
>
> New commits:
> commit 68d82c05cad099d4ba56fc5e6ecebc0e60b4a5bd
> Author: Bryan Kearney<bkearney(a)redhat.com>
> Date: Thu Feb 4 13:35:18 2010 -0500
>
> Added autocomplete in order to make Greg Happy
>
This adds auto-completion of command names, but how about the arguments
for each command?
14 years, 3 months
Community Release 3.0.0.B02
by Jason Dobies
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
RHQ... now with 100% more awesome.
The latest community release is officially available. It can be
downloaded at http://rhq-project.org/display/RHQ/Download and the full
release notes at http://rhq-project.org/display/RHQ/Release+Notes+3.0.0.B02
Congrats to the entire RHQ team for a great sprint.
- --
Jason Dobies
http://rhq-project.org
RHCE# 805008743336126
Freenode: jdob @ #rhq
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJLZ2J7AAoJEOMmcTqOSQHCZyQIAKLTpuxSbpGqubLo8k9r6HvP
dX9rn0fPquWfo/QXXGppmbbZB1uSOoau6wUaP6FnkxS/kQqVHEKnts8wugQyv8nE
pbOSir8Bq5xAu8vNLAOHOF9dX/FL8t6BgU6KbJMmFh3zuZvOKznsBtjEPUINRyGl
2lOjWUhftRZPSbL7mmUO7TXj+pC1/32IAzro7vT4BRSUlAoVSQDIM+os2MRtPLky
BLuuvhZ4qnfZxHeFX3WyzYAJdQDMkho6oBNtAVwjeMbwLwtYXVXIvVwAEH+v8r4F
Tf6nh8Hwz1YqGaryFd23Ukgkff8Qvzfl+oa6NHcvaJ/ZXBUz9dqYbPqR/0ms88s=
=EssX
-----END PGP SIGNATURE-----
14 years, 3 months
Community Build Instructions
by Jason Dobies
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Release 3.0.0.B02 is nearly complete; I'll send out another e-mail when
it's finished. In the meantime, I wrote up instructions on the build
process on the RHQ wiki for anyone who is interested.
http://rhq-project.org/display/RHQ/Community+Release+Build+Instructions
- --
Jason Dobies
http://rhq-project.org
RHCE# 805008743336126
Freenode: jdob @ #rhq
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJLZ0PNAAoJEOMmcTqOSQHCCH8IAMCR2ZL67ampm561hjLRGF1W
NLmflOneVFpuLkaxZZmJ6dYawJn3BrWEhSEC1AAymCC3ngFbgIdCDNUWEA/+iG0b
DJLAZxTXCBSarJFB4JdAaB3Q/Emhjm3xnRETqY/mInbatBU8600HEbABMjepfGTq
45sGHG/3TFa0KqF+K9Lqtmd9cphRG5N/4O7zAd9vxWaUAj1Fe+HfpUAnPMKP/sbg
kI3MmGFVIgyTAPli1FKKOoNHscTAL8w0f6OKFl1Otb3kIMqJT0VccfBXUY5CVLkc
31OQJZF/X0TtDPoAeP1cErNUWAnP38QhqP8kuVd7YUh/ne5bOMi5Ek9m7RFvb3A=
=q6vl
-----END PGP SIGNATURE-----
14 years, 3 months
CLI questions
by Marek Goldmann
Hi all,
How can I import a resource? I can see in ResourceManager a uninventory command, but where is addToInventory command? I cannot see InventoryManager exposed in remote API as InventoryManagerRemote? It is a bug or "feature"?
There is a need to add for more complicated examples to http://www.rhq-project.org/display/JOPR2/Running+the+RHQ+CLI page. Currently there are only searching examples which is good but not sufficient. More examples like: updating configuration, setting alerts, importing, unimporting, deploying apps, etc etc would be much appreciated.
--Marek
14 years, 3 months