com.sun.corba.se.spi.orb.DataCollector Java Examples

The following examples show how to use com.sun.corba.se.spi.orb.DataCollector. 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 Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBConfiguratorImpl.java    License: Apache License 2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #2
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBConfiguratorImpl.java    License: Apache License 2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #3
Source Project: TencentKona-8   Author: Tencent   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #4
Source Project: TencentKona-8   Author: Tencent   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #5
Source Project: jdk8u60   Author: chenghanpeng   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #6
Source Project: jdk8u60   Author: chenghanpeng   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #7
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ORBConfiguratorImpl.java    License: MIT License 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #8
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: ORBConfiguratorImpl.java    License: MIT License 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #9
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #10
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #11
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #12
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #13
Source Project: openjdk-8   Author: bpupadhyaya   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #14
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #15
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #16
Source Project: hottub   Author: dsrg-uoft   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #17
Source Project: hottub   Author: dsrg-uoft   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #18
Source Project: openjdk-8-source   Author: keerath   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void configure( DataCollector collector, ORB orb )
{
    ORB theOrb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;

    initObjectCopiers( theOrb ) ;
    initIORFinders( theOrb ) ;

    theOrb.setClientDelegateFactory(
        // REVISIT: this should be ProtocolDefault.
        TransportDefault.makeClientDelegateFactory( theOrb )) ;

    initializeTransport(theOrb) ;

    initializeNaming( theOrb ) ;
    initServiceContextRegistry( theOrb ) ;
    initRequestDispatcherRegistry( theOrb ) ;
    registerInitialReferences( theOrb ) ;

    persistentServerInitialization( theOrb ) ;

    runUserConfigurators( collector, theOrb ) ;
}
 
Example #19
Source Project: openjdk-8-source   Author: keerath   File: ORBConfiguratorImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
private void runUserConfigurators( DataCollector collector, ORB orb )
{
    // Run any pluggable configurators.  This is a lot like
    // ORBInitializers, only it uses the internal ORB and has
    // access to all data for parsing.
    ConfigParser parser = new ConfigParser()  ;
    parser.init( collector ) ;
    if (parser.userConfigurators != null) {
        for (int ctr=0; ctr<parser.userConfigurators.length; ctr++) {
            Class cls = parser.userConfigurators[ctr] ;
            try {
                ORBConfigurator config = (ORBConfigurator)(cls.newInstance()) ;
                config.configure( collector, orb ) ;
            } catch (Exception exc) {
                // XXX Log this exception
                // ignore this for now: a bad user configurator does nothing
            }
        }
    }
}
 
Example #20
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: DataCollectorFactory.java    License: Apache License 2.0 5 votes vote down vote up
public static DataCollector create( Applet app, Properties props,
    String localHostName )
{
    String appletHost = localHostName ;

    if (app != null) {
        URL appletCodeBase = app.getCodeBase() ;

        if (appletCodeBase != null)
            appletHost = appletCodeBase.getHost() ;
    }

    return new AppletDataCollector( app, props, localHostName,
        appletHost ) ;
}
 
Example #21
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBDataParserImpl.java    License: Apache License 2.0 5 votes vote down vote up
public ORBDataParserImpl( ORB orb, DataCollector coll )
{
    super( ParserTable.get().getParserData() ) ;
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;
    init( coll ) ;
    complete() ;
}
 
Example #22
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBImpl.java    License: Apache License 2.0 5 votes vote down vote up
public void set_parameters( Properties props )
{
    synchronized (this) {
            checkShutdownState();
    }
    preInit( null, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( props, getLocalHostName() ) ;
    postInit( null, dataCollector ) ;
}
 
Example #23
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBImpl.java    License: Apache License 2.0 5 votes vote down vote up
protected void set_parameters(Applet app, Properties props)
{
    preInit( null, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( app, props, getLocalHostName() ) ;
    postInit( null, dataCollector ) ;
}
 
Example #24
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: ORBImpl.java    License: Apache License 2.0 5 votes vote down vote up
protected void set_parameters (String[] params, Properties props)
{
    preInit( params, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( params, props, getLocalHostName() ) ;
    postInit( params, dataCollector ) ;
}
 
Example #25
Source Project: TencentKona-8   Author: Tencent   File: DataCollectorFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static DataCollector create( Applet app, Properties props,
    String localHostName )
{
    String appletHost = localHostName ;

    if (app != null) {
        URL appletCodeBase = app.getCodeBase() ;

        if (appletCodeBase != null)
            appletHost = appletCodeBase.getHost() ;
    }

    return new AppletDataCollector( app, props, localHostName,
        appletHost ) ;
}
 
Example #26
Source Project: TencentKona-8   Author: Tencent   File: ORBDataParserImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public ORBDataParserImpl( ORB orb, DataCollector coll )
{
    super( ParserTable.get().getParserData() ) ;
    this.orb = orb ;
    wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.ORB_LIFECYCLE ) ;
    init( coll ) ;
    complete() ;
}
 
Example #27
Source Project: TencentKona-8   Author: Tencent   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void set_parameters( Properties props )
{
    synchronized (this) {
            checkShutdownState();
    }
    preInit( null, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( props, getLocalHostName() ) ;
    postInit( null, dataCollector ) ;
}
 
Example #28
Source Project: TencentKona-8   Author: Tencent   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
protected void set_parameters(Applet app, Properties props)
{
    preInit( null, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( app, props, getLocalHostName() ) ;
    postInit( null, dataCollector ) ;
}
 
Example #29
Source Project: TencentKona-8   Author: Tencent   File: ORBImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
protected void set_parameters (String[] params, Properties props)
{
    preInit( params, props ) ;
    DataCollector dataCollector =
        DataCollectorFactory.create( params, props, getLocalHostName() ) ;
    postInit( params, dataCollector ) ;
}
 
Example #30
Source Project: jdk8u60   Author: chenghanpeng   File: DataCollectorFactory.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static DataCollector create( Applet app, Properties props,
    String localHostName )
{
    String appletHost = localHostName ;

    if (app != null) {
        URL appletCodeBase = app.getCodeBase() ;

        if (appletCodeBase != null)
            appletHost = appletCodeBase.getHost() ;
    }

    return new AppletDataCollector( app, props, localHostName,
        appletHost ) ;
}