KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > monitoring > MonitoringManagerImpl


1 /*
2  * @(#)MonitoringManagerImpl.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.monitoring;
9
10 import com.sun.corba.se.spi.monitoring.MonitoringManager;
11 import com.sun.corba.se.spi.monitoring.MonitoredObject;
12 import com.sun.corba.se.spi.monitoring.MonitoredObjectFactory;
13 import com.sun.corba.se.spi.monitoring.MonitoringFactories;
14
15 public class MonitoringManagerImpl implements MonitoringManager {
16     private final MonitoredObject rootMonitoredObject;
17
18     MonitoringManagerImpl( String JavaDoc nameOfTheRoot, String JavaDoc description ) {
19         MonitoredObjectFactory f =
20             MonitoringFactories.getMonitoredObjectFactory();
21         rootMonitoredObject =
22             f.createMonitoredObject( nameOfTheRoot, description );
23     }
24
25     public void clearState( ) {
26         rootMonitoredObject.clearState( );
27     }
28
29     public MonitoredObject getRootMonitoredObject( ) {
30         return rootMonitoredObject;
31     }
32 }
33         
34     
35
36    
37
38
Popular Tags