com.sun.corba.se.spi.monitoring.MonitoredObject Java Examples
The following examples show how to use
com.sun.corba.se.spi.monitoring.MonitoredObject.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MonitoredObjectImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #2
Source File: MonitoredObjectImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #3
Source File: MonitoredObjectImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #4
Source File: MonitoredObjectImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #5
Source File: MonitoredObjectImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #6
Source File: MonitoredObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #7
Source File: MonitoredObjectImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #8
Source File: MonitoredObjectImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #9
Source File: MonitoredObjectImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #10
Source File: MonitoredObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #11
Source File: MonitoredObjectImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #12
Source File: MonitoredObjectImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #13
Source File: MonitoredObjectImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #14
Source File: MonitoredObjectImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #15
Source File: MonitoredObjectImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * calls clearState() on all the registered children MonitoredObjects and * MonitoredAttributes. */ public void clearState( ) { synchronized( this ) { Iterator i = monitoredAttributes.values().iterator(); // First call clearState on all the local attributes while( i.hasNext( ) ) { ((MonitoredAttribute)i.next()).clearState(); } i = children.values().iterator(); // next call clearState on all the children MonitoredObjects while( i.hasNext() ) { ((MonitoredObject)i.next()).clearState(); } } }
Example #16
Source File: MonitoredObjectImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void addChild( MonitoredObject m ) { if (m != null){ synchronized( this ) { children.put( m.getName(), m); m.setParent( this ); } } }
Example #17
Source File: MonitoredObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public synchronized void setParent( MonitoredObject p ) { parent = p; }
Example #18
Source File: ThreadPoolImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
MonitoredObject getMonitoredObject() { return threadpoolMonitoredObject; }
Example #19
Source File: MonitoredObjectImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public synchronized MonitoredObject getParent( ) { return parent; }
Example #20
Source File: WorkQueueImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
MonitoredObject getMonitoredObject() { return workqueueMonitoredObject; }
Example #21
Source File: MonitoredObjectFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public MonitoredObject createMonitoredObject( String name, String description ) { return new MonitoredObjectImpl( name, description ); }
Example #22
Source File: ThreadPoolImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void initializeMonitoring() { // Get root monitored object MonitoredObject root = MonitoringFactories.getMonitoringManagerFactory(). createMonitoringManager(MonitoringConstants.DEFAULT_MONITORING_ROOT, null). getRootMonitoredObject(); // Create the threadpool monitoring root MonitoredObject threadPoolMonitoringObjectRoot = root.getChild( MonitoringConstants.THREADPOOL_MONITORING_ROOT); if (threadPoolMonitoringObjectRoot == null) { threadPoolMonitoringObjectRoot = MonitoringFactories. getMonitoredObjectFactory().createMonitoredObject( MonitoringConstants.THREADPOOL_MONITORING_ROOT, MonitoringConstants.THREADPOOL_MONITORING_ROOT_DESCRIPTION); root.addChild(threadPoolMonitoringObjectRoot); } threadpoolMonitoredObject = MonitoringFactories. getMonitoredObjectFactory(). createMonitoredObject(name, MonitoringConstants.THREADPOOL_MONITORING_DESCRIPTION); threadPoolMonitoringObjectRoot.addChild(threadpoolMonitoredObject); LongMonitoredAttributeBase b1 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS, MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.currentNumberOfThreads()); } }; threadpoolMonitoredObject.addAttribute(b1); LongMonitoredAttributeBase b2 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_NUMBER_OF_AVAILABLE_THREADS, MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.numberOfAvailableThreads()); } }; threadpoolMonitoredObject.addAttribute(b2); LongMonitoredAttributeBase b3 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_NUMBER_OF_BUSY_THREADS, MonitoringConstants.THREADPOOL_NUMBER_OF_BUSY_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.numberOfBusyThreads()); } }; threadpoolMonitoredObject.addAttribute(b3); LongMonitoredAttributeBase b4 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_AVERAGE_WORK_COMPLETION_TIME, MonitoringConstants.THREADPOOL_AVERAGE_WORK_COMPLETION_TIME_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.averageWorkCompletionTime()); } }; threadpoolMonitoredObject.addAttribute(b4); LongMonitoredAttributeBase b5 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_CURRENT_PROCESSED_COUNT, MonitoringConstants.THREADPOOL_CURRENT_PROCESSED_COUNT_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.currentProcessedCount()); } }; threadpoolMonitoredObject.addAttribute(b5); // Add the monitored object for the WorkQueue threadpoolMonitoredObject.addChild( ((WorkQueueImpl)workQueue).getMonitoredObject()); }
Example #23
Source File: WorkQueueImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
MonitoredObject getMonitoredObject() { return workqueueMonitoredObject; }
Example #24
Source File: MonitoredObjectFactoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public MonitoredObject createMonitoredObject( String name, String description ) { return new MonitoredObjectImpl( name, description ); }
Example #25
Source File: MonitoredObjectImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public synchronized void setParent( MonitoredObject p ) { parent = p; }
Example #26
Source File: MonitoredObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public synchronized MonitoredObject getParent( ) { return parent; }
Example #27
Source File: MonitoredObjectImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public MonitoredObject getChild( String name ) { synchronized( this ) { return (MonitoredObject) children.get( name ); } }
Example #28
Source File: MonitoringManagerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public MonitoredObject getRootMonitoredObject() { return rootMonitoredObject; }
Example #29
Source File: ThreadPoolImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
MonitoredObject getMonitoredObject() { return threadpoolMonitoredObject; }
Example #30
Source File: ThreadPoolImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
private void initializeMonitoring() { // Get root monitored object MonitoredObject root = MonitoringFactories.getMonitoringManagerFactory(). createMonitoringManager(MonitoringConstants.DEFAULT_MONITORING_ROOT, null). getRootMonitoredObject(); // Create the threadpool monitoring root MonitoredObject threadPoolMonitoringObjectRoot = root.getChild( MonitoringConstants.THREADPOOL_MONITORING_ROOT); if (threadPoolMonitoringObjectRoot == null) { threadPoolMonitoringObjectRoot = MonitoringFactories. getMonitoredObjectFactory().createMonitoredObject( MonitoringConstants.THREADPOOL_MONITORING_ROOT, MonitoringConstants.THREADPOOL_MONITORING_ROOT_DESCRIPTION); root.addChild(threadPoolMonitoringObjectRoot); } threadpoolMonitoredObject = MonitoringFactories. getMonitoredObjectFactory(). createMonitoredObject(name, MonitoringConstants.THREADPOOL_MONITORING_DESCRIPTION); threadPoolMonitoringObjectRoot.addChild(threadpoolMonitoredObject); LongMonitoredAttributeBase b1 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS, MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.currentNumberOfThreads()); } }; threadpoolMonitoredObject.addAttribute(b1); LongMonitoredAttributeBase b2 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_NUMBER_OF_AVAILABLE_THREADS, MonitoringConstants.THREADPOOL_CURRENT_NUMBER_OF_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.numberOfAvailableThreads()); } }; threadpoolMonitoredObject.addAttribute(b2); LongMonitoredAttributeBase b3 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_NUMBER_OF_BUSY_THREADS, MonitoringConstants.THREADPOOL_NUMBER_OF_BUSY_THREADS_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.numberOfBusyThreads()); } }; threadpoolMonitoredObject.addAttribute(b3); LongMonitoredAttributeBase b4 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_AVERAGE_WORK_COMPLETION_TIME, MonitoringConstants.THREADPOOL_AVERAGE_WORK_COMPLETION_TIME_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.averageWorkCompletionTime()); } }; threadpoolMonitoredObject.addAttribute(b4); LongMonitoredAttributeBase b5 = new LongMonitoredAttributeBase(MonitoringConstants.THREADPOOL_CURRENT_PROCESSED_COUNT, MonitoringConstants.THREADPOOL_CURRENT_PROCESSED_COUNT_DESCRIPTION) { public Object getValue() { return new Long(ThreadPoolImpl.this.currentProcessedCount()); } }; threadpoolMonitoredObject.addAttribute(b5); // Add the monitored object for the WorkQueue threadpoolMonitoredObject.addChild( ((WorkQueueImpl)workQueue).getMonitoredObject()); }