ObjectName

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
[[Category:Administration]]
 
[[Category:Administration]]
  
The [JMX] ObjectName describes the name of a managed object.
+
The [[JMX]] ObjectName describes the name of a managed object.
  
 
   resin:type=WebApp,name=/foo,host=wiki.caucho.com
 
   resin:type=WebApp,name=/foo,host=wiki.caucho.com
Line 8: Line 8:
  
 
# A naming domain (e.g. "resin:")
 
# A naming domain (e.g. "resin:")
# An associate list of key,value properties
+
# An association list of key,value properties
 +
 
 +
== domain ==
 +
 
 +
The domain is used as a namespace to distinguish naming conventions.  So "resin" uses the Resin naming conventions.  "j2ee" uses J2EE naming conventions.
 +
 
 +
== Resin conventions ==
 +
 
 +
Each objects managed by Resin have the following convention:
 +
 
 +
  resin:type=class-name,name=identifier[,context]
 +
 
 +
For example, the unique [http://www.caucho.com/resin-javadoc/com/caucho/management/server/ServerMXBean.html ServerMXBean] in a Resin instance has the name:
 +
 
 +
  resin:type=ServerMXBean
 +
 
 +
A [cluster] with an id="app-tier" would have the name:
 +
 
 +
  resin:type=ClusterMXBean,name=app-tier
 +
 
 +
And a [[web-app]] with an id='/foo' in the virtual host 'www.foo.com' would have the name:
 +
 
 +
  resin:type=WebAppMXBean,name=/foo,Host=www.foo.com
 +
 
 +
== Contexts ==
 +
 
 +
Currently, Resin has two contexts, <em>Host</em> and <em>WebApp</em>.

Latest revision as of 19:40, 3 August 2006


The JMX ObjectName describes the name of a managed object.

 resin:type=WebApp,name=/foo,host=wiki.caucho.com

The ObjectName has two main sections:

  1. A naming domain (e.g. "resin:")
  2. An association list of key,value properties

domain

The domain is used as a namespace to distinguish naming conventions. So "resin" uses the Resin naming conventions. "j2ee" uses J2EE naming conventions.

Resin conventions

Each objects managed by Resin have the following convention:

 resin:type=class-name,name=identifier[,context]

For example, the unique ServerMXBean in a Resin instance has the name:

 resin:type=ServerMXBean

A [cluster] with an id="app-tier" would have the name:

 resin:type=ClusterMXBean,name=app-tier

And a web-app with an id='/foo' in the virtual host 'www.foo.com' would have the name:

 resin:type=WebAppMXBean,name=/foo,Host=www.foo.com

Contexts

Currently, Resin has two contexts, Host and WebApp.

Personal tools