Java Code Examples for com.sun.xml.internal.ws.util.Pool.TubePool#takeMaster()
The following examples show how to use
com.sun.xml.internal.ws.util.Pool.TubePool#takeMaster() .
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: Stub.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 2
Source File: Stub.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 3
Source File: Stub.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 4
Source File: Stub.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 5
Source File: Stub.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 6
Source File: Stub.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 7
Source File: Stub.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }
Example 8
Source File: Stub.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public void close() { TubePool tp = (TubePool) tubes; if (tp != null) { // multi-thread safety of 'close' needs to be considered more carefully. // some calls might be pending while this method is invoked. Should we // block until they are complete, or should we abort them (but how?) Tube p = tp.takeMaster(); p.preDestroy(); tubes = null; } if (!managedObjectManagerClosed) { try { final ObjectName name = managedObjectManager.getObjectName(managedObjectManager.getRoot()); // The name is null when the MOM is a NOOP. if (name != null) { monitoringLogger.log(Level.INFO, "Closing Metro monitoring root: {0}", name); } managedObjectManager.close(); } catch (java.io.IOException e) { monitoringLogger.log(Level.WARNING, "Ignoring error when closing Managed Object Manager", e); } managedObjectManagerClosed = true; } }