![]() |
Enterprise
RTView®
User Guide |
Oracle® Coherence Monitor - Customization
There are several options
for customizing the Oracle Coherence Monitor. The sections below describe how to
customize connections, displays and security. Any files described below will
need to be stored somewhere where the Oracle Coherence Monitor can access them.
You should create a working directory to hold these files and run the OCM
from that directory while you are working on the customization. When your
customization files are ready, you must make them
available to the OCM (as well as to the Display Server, Data Server and
Historian if you will be using them). Add and Modify Connections The LocalJmxNode connection is used when you run the OCM as the management node in your cluster. This connection requires no modifications. The RemoteJmxRMI connection is used when you run the OCM using a remote JMX port. This connection is configured to listen to port 9991 on localhost with no authentication. Unless this is the correct host, port and authentication setting for your JMX enabled management node, you must modify the RemoteJmxRMI connection. You may want to create additional JMX connections to run multiple instances of the OCM to connect to different JMX enabled management nodes. All of the built-in displays provided use the $conn substitution as the connection for all data attachments. When you run the Oracle Coherence Monitor, you can specify a different connection name for the $conn substitution as follows (where MyConnection is the name of your JMX connection):
NOTE: On UNIX, passing a connection substitution as a command line argument requires a \ before the $ (e.g. -sub:\$conn...). This prevents the UNIX shell from looking in the environment for the connection variable.
JMXOPTIONS.ini Add Displays
By default, the Oracle Coherence Monitor comes configured with three roles: demo, admin and super. (See Role-Based Security for information on modifying built-in security.) To customize security, copy users.xml and roles.xml (contained in lib\gmsjocm.jar and also located in demos\ocmdemo) into your working directory. Once modified, you must make these files available to the OCM. NOTE: The built-in admin and super roles are used in the Administration displays to limit administration activities to users with the correct permissions. These roles should not be removed. Use Process Name as Location Name Start the Oracle Coherence Monitor with the command line option -processnames to specify that the Process Name should be used as the Location Name for all nodes.
NOTE: When using multiple command line arguments, -ocm or -ocmnode must come first. For example, run_ocmonitor -ocmnode -u1000 will work; run_ocmonitor -u1000 -ocmnode will not. Shorten Long Cache Names To shorten long Cache Names, edit the substitution variable $cacheNameFormat contained in the initialization file OPTIONS.ini. By default, $cacheNameFormat is set to 14*14 and displays the initial 14 characters followed by a ".." and then the remaining 14characters. Change the value of $cacheNameFormat to N*M, where N is the number of initial characters to display and M is the number of ending characters to display.
Alternately, it is possible to start the Oracle Coherence Monitor with the command line option -sub:$cacheNameFormat:N*M. NOTE: Application options set on the command line will override values in initialization (.ini) files.
NOTE: When using multiple command line arguments, -ocm or -ocmnode must come first. For example, run_ocmonitor -ocmnode -u1000 will work; run_ocmonitor -u1000 -ocmnode will not. Use a Custom Historian Database By default the Historian will connect to the HSQLDB database in demos\ocmdemo. You can use any database that supports JDBC, however you must first set up your custom database as the Historian database. Next, add a table to your database named CACHEHEALTHDATA with the following fields:
HISTORY.ini OPTIONS.ini
Make Customization Files Available to the Oracle Coherence Monitor When your customization files are ready, you have three options to make them available to the OCM (as well as to the Display Server, Data Server and Historian if you will be using them):1. Run the OCM, Display Server, Data Server and Historian from your working directory. If you select this option and decide to run any of the applications from another system, you'll need to copy this directory to that system and run from there. 2. Pack your files into a .jar file named myclasses.jar. The scripts for the OCM, Display Server, Data Server and Historian will look for this .jar file in the startup directory and add it to the classpath. If you select this option and decide to run any of the applications from another system, you'll need to copy myclasses.jar to the startup directory there. 3. Pack your files into a .jar file by any name. Add the path to this .jar file to the RTV_USERPATH environment variable on any system where you will be running the OCM, Display Server, Data Server or Historian. Using Custom Navigation Tree Definition File
with the Display Server 1. Copy custom_navtree.xml to servlets\ocmonitor. 2. In an initialized command window go to the servlets\ocmonitor directory. 3. Rebuild ocmonitor.war, type:
4. Use this version of ocmonitor.war when deploying the OCM as a thin client application.
|
|
|
|
|
|
|
|