Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel System Administration Guide > Siebel Management Framework API > Example of Component-Level JMX APIThe following is an example of the component-level JMX API. CAUTION: You must test these methods carefully before deploying them into production, because some of these commands can shut down or disable components, servers, or even the enterprise. NOTE: The content in this topic is best viewed in PDF format. import com.siebel.management.jmxapi.*; public static void main(String[] args) JmxComponentMBean cmb = new JmxComponent(); //+ The following 2 need to be changed by the person using this program String ent = "siebel"; // enterprise name String srv = "sdchs21n625"; // server name String Comp = "SRBroker"; //Component name String State = cmb.getState (ent, srv, Comp); System.out.println("getState('" + Comp + "'):" + State); Float Availability = cmb.getAvailability (ent, srv, Comp); System.out.println("getAvailability ('" + Comp + "'):" + Availability); Float RunningTasks = cmb.getNumRunningTasks (ent, srv, Comp); System.out.println("getNumRunningTasks ('" + Comp + "'):" + RunningTasks); String paramval = cmb.getParam (ent, srv, Comp, param); System.out.println("getParam('" + param + "','" + Comp + "'):" + paramval); String statval = cmb.getStat (ent, srv, Comp, stat); System.out.println("getStat('" + stat + "','" + Comp + "'):" + statval); String svalval = cmb.getSval (ent, srv, Comp, sval); System.out.println("getSval('" + sval + "','" + Comp + "'):" + svalval); |
![]() |
![]() ![]() |
Siebel System Administration Guide | Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |