Java Code Examples for com.sun.corba.se.spi.resolver.Resolver

The following are top voted examples for showing how to use com.sun.corba.se.spi.resolver.Resolver. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 2
Project: OpenJSharp   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 3
Project: openjdk-jdk10   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 4
Project: openjdk-jdk10   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 5
Project: openjdk9   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 6
Project: openjdk9   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 7
Project: lookaside_java-1.8.0-openjdk   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 8
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 9
Project: jdk8u_corba   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 10
Project: jdk8u_corba   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 11
Project: infobip-open-jdk-8   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 12
Project: infobip-open-jdk-8   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 13
Project: openjdk-source-code-learn   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 14
Project: openjdk-source-code-learn   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 15
Project: OLD-OpenJDK8   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 16
Project: OLD-OpenJDK8   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 17
Project: openjdk-orb   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 18
Project: openjdk-icedtea7   File: ORBConfiguratorImpl.java   Source Code and License 6 votes vote down vote up
private void initializeNaming( ORB orb )
{
    LocalResolver localResolver = ResolverDefault.makeLocalResolver() ;
    orb.setLocalResolver( localResolver ) ;

    Resolver bootResolver = ResolverDefault.makeBootstrapResolver( orb,
        orb.getORBData().getORBInitialHost(),
        orb.getORBData().getORBInitialPort() ) ;

    Operation urlOperation = ResolverDefault.makeINSURLOperation( orb,
        bootResolver ) ;
    orb.setURLOperation( urlOperation ) ;

    Resolver irResolver = ResolverDefault.makeORBInitRefResolver( urlOperation,
        orb.getORBData().getORBInitialReferences() ) ;

    Resolver dirResolver = ResolverDefault.makeORBDefaultInitRefResolver(
        urlOperation, orb.getORBData().getORBDefaultInitialReference() ) ;

    Resolver resolver =
        ResolverDefault.makeCompositeResolver( localResolver,
            ResolverDefault.makeCompositeResolver( irResolver,
                ResolverDefault.makeCompositeResolver( dirResolver,
                    bootResolver ) ) ) ;
    orb.setResolver( resolver ) ;
}
 
Example 19
Project: openjdk-icedtea7   File: ORBImpl.java   Source Code and License 6 votes vote down vote up
/**
 * Resolve the stringified reference of one of the initially
 * available CORBA services.
 * @param identifier The stringified object reference of the
 * desired service.
 * @return An object reference for the desired service.
 * @exception InvalidName The supplied identifier is not associated
 * with a known service.
 * @exception SystemException One of a fixed set of Corba system exceptions.
 */
public org.omg.CORBA.Object resolve_initial_references(
    String identifier) throws InvalidName
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        org.omg.CORBA.Object result = res.resolve( identifier ) ;

        if (result == null)
            throw new InvalidName() ;
        else
            return result ;
    }
}
 
Example 20
Project: OpenJSharp   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 21
Project: OpenJSharp   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 22
Project: OpenJSharp   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 23
Project: OpenJSharp   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 24
Project: openjdk-jdk10   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 25
Project: openjdk-jdk10   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 26
Project: openjdk-jdk10   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 27
Project: openjdk-jdk10   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 28
Project: openjdk9   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 29
Project: openjdk9   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 30
Project: openjdk9   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 31
Project: openjdk9   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 32
Project: lookaside_java-1.8.0-openjdk   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 33
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 34
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 35
Project: lookaside_java-1.8.0-openjdk   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 36
Project: jdk8u_corba   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 37
Project: jdk8u_corba   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 38
Project: jdk8u_corba   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 39
Project: jdk8u_corba   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 40
Project: infobip-open-jdk-8   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 41
Project: infobip-open-jdk-8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 42
Project: infobip-open-jdk-8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 43
Project: infobip-open-jdk-8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 44
Project: openjdk-source-code-learn   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 45
Project: openjdk-source-code-learn   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 46
Project: openjdk-source-code-learn   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 47
Project: openjdk-source-code-learn   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 48
Project: OLD-OpenJDK8   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 49
Project: OLD-OpenJDK8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 50
Project: OLD-OpenJDK8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 51
Project: OLD-OpenJDK8   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 52
Project: openjdk-orb   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver rirResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.rirResolver = rirResolver ;
}
 
Example 53
Project: openjdk-orb   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 54
Project: openjdk-orb   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 55
Project: openjdk-orb   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 56
Project: openjdk-icedtea7   File: INSURLOperationImpl.java   Source Code and License 5 votes vote down vote up
public INSURLOperationImpl( ORB orb, Resolver bootstrapResolver )
{
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.ORB_RESOLVER ) ;
    this.bootstrapResolver = bootstrapResolver ;
}
 
Example 57
Project: openjdk-icedtea7   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Get a list of the initially available CORBA services.
 * This does not work unless an ORBInitialHost is specified during
 * initialization (or unless there is an ORB running on the AppletHost)
 * since the localhostname
 * is inaccessible to applets. If a service properties URL was specified,
 * then it is used, otherwise the bootstrapping protocol is used.
 * @return A list of the initial services available.
 */
public String[] list_initial_services()
{
    Resolver res ;

    synchronized( this ) {
        checkShutdownState();
        res = resolver ;
    }

    synchronized (resolverLock) {
        java.util.Set keys = res.list() ;
        return (String[])keys.toArray( new String[keys.size()] ) ;
    }
}
 
Example 58
Project: openjdk-icedtea7   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Set the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public void setResolver( Resolver resolver )
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        this.resolver = resolver ;
    }
}
 
Example 59
Project: openjdk-icedtea7   File: ORBImpl.java   Source Code and License 5 votes vote down vote up
/** Get the resolver used in this ORB.  This resolver will be used for list_initial_services
 * and resolve_initial_references.
 */
public Resolver getResolver()
{
    synchronized (this) {
            checkShutdownState();
    }
    synchronized (resolverLock) {
        return resolver ;
    }
}
 
Example 60
Project: OpenJSharp   File: BootstrapServer.java   Source Code and License 4 votes vote down vote up
/**
 * Main startup routine for the bootstrap server.
 * It first determines the port on which to listen, checks that the
 * specified file is available, and then creates the resolver
 * that will be used to service the requests in the
 * BootstrapServerRequestDispatcher.
 * @param args the command-line arguments to the main program.
 */
public static final void main(String[] args)
{
    String propertiesFilename = null;
    int initialPort = ORBConstants.DEFAULT_INITIAL_PORT;

    // Process arguments
    for (int i=0;i<args.length;i++) {
        // Look for the filename
        if (args[i].equals("-InitialServicesFile") && i < args.length -1) {
            propertiesFilename = args[i+1];
        }

        // Was the initial port specified? If so, override
        // This property normally is applied for the client side
        // configuration of resolvers.  Here we are using it to
        // define the server port that the with which the resolvers
        // communicate.
        if (args[i].equals("-ORBInitialPort") && i < args.length-1) {
            initialPort = java.lang.Integer.parseInt(args[i+1]);
        }
    }

    if (propertiesFilename == null) {
        System.out.println( CorbaResourceUtil.getText("bootstrap.usage",
            "BootstrapServer"));
        return;
    }

    // Create a file
    File file = new File(propertiesFilename);

    // Verify that if it exists, it is readable
    if (file.exists() == true && file.canRead() == false) {
        System.err.println(CorbaResourceUtil.getText(
            "bootstrap.filenotreadable", file.getAbsolutePath()));
        return;
    }

    // Success: start up
    System.out.println(CorbaResourceUtil.getText(
        "bootstrap.success", Integer.toString(initialPort),
        file.getAbsolutePath()));

    Properties props = new Properties() ;

    // Use the SERVER_PORT to create an Acceptor using the
    // old legacy code in ORBConfiguratorImpl.  When (if?)
    // the legacy support is removed, this code will need
    // to create an Acceptor directly.
    props.put( ORBConstants.SERVER_PORT_PROPERTY,
        Integer.toString( initialPort ) ) ;

    ORB orb = (ORB) org.omg.CORBA.ORB.init(args,props);

    LocalResolver lres = orb.getLocalResolver() ;
    Resolver fres = ResolverDefault.makeFileResolver( orb, file ) ;
    Resolver cres = ResolverDefault.makeCompositeResolver( fres, lres ) ;
    LocalResolver sres = ResolverDefault.makeSplitLocalResolver( cres, lres ) ;

    orb.setLocalResolver( sres ) ;

    try {
        // This causes the acceptors to start listening.
        orb.resolve_initial_references(ORBConstants.ROOT_POA_NAME);
    } catch (org.omg.CORBA.ORBPackage.InvalidName e) {
        RuntimeException rte = new RuntimeException("This should not happen");
        rte.initCause(e);
        throw rte;
    }

    orb.run() ;
}