1 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 nameOfTheRoot, String 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 |