Java Code Examples for com.sun.corba.se.impl.naming.cosnaming.NamingContextDataStore#IsEmpty

The following examples show how to use com.sun.corba.se.impl.naming.cosnaming.NamingContextDataStore#IsEmpty . 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: NamingContextImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 2
Source File: NamingContextImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 3
Source File: NamingContextImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 4
Source File: NamingContextImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 5
Source File: NamingContextImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 6
Source File: NamingContextImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 7
Source File: NamingContextImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 8
Source File: NamingContextImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 9
Source File: NamingContextImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 10
Source File: NamingContextImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 11
Source File: NamingContextImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 12
Source File: NamingContextImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 13
Source File: NamingContextImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 14
Source File: NamingContextImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 15
Source File: NamingContextImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 16
Source File: NamingContextImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 17
Source File: NamingContextImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 18
Source File: NamingContextImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }
 
Example 19
Source File: NamingContextImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Destroy this NamingContext object. If this NamingContext contains
 * no bindings, the NamingContext is deleted.
 * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This
 * NamingContext is not empty (i.e., contains bindings).
 * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
 * system exceptions.
 */
public  void destroy()
    throws org.omg.CosNaming.NamingContextPackage.NotEmpty
{
    lifecycleLogger.fine( "Destroying Naming Context " );
    NamingContextDataStore impl = (NamingContextDataStore)this;
    synchronized (impl) {
        if (impl.IsEmpty() == true) {
            // The context is empty so it can be destroyed
            impl.Destroy();
            lifecycleLogger.fine ( LogKeywords.LIFECYCLE_DESTROY_SUCCESS );
        }
        else {
            // This context is not empty!
            // Not a fatal error, warning should do.
            lifecycleLogger.warning( LogKeywords.LIFECYCLE_DESTROY_FAILURE +
                " NamingContext children are not destroyed still.." );
            throw new NotEmpty();
        }
    }
}
 
Example 20
Source File: NamingContextImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
* Destroy this NamingContext object. If this NamingContext contains
* no bindings, the NamingContext is deleted.
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty This NamingContext
* is not empty (i.e., contains bindings).
* @exception org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.
*/
 public  void destroy()
     throws org.omg.CosNaming.NamingContextPackage.NotEmpty
 {
     if (debug)
         dprint("destroy ");
     NamingContextDataStore impl = (NamingContextDataStore)this;
     synchronized (impl) {
         if (impl.IsEmpty() == true)
             // The context is empty so it can be destroyed
             impl.Destroy();
         else
             // This context is not empty!
             throw new org.omg.CosNaming.NamingContextPackage.NotEmpty();
     }
 }