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 File: ORBConfiguratorImpl.java    From TencentKona-8 with 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 #2
Source File: ORBConfiguratorImpl.java    From openjdk-8 with 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 #3
Source File: ORBConfiguratorImpl.java    From jdk8u60 with 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 #4
Source File: ORBConfiguratorImpl.java    From jdk8u60 with 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 #5
Source File: ORBConfiguratorImpl.java    From JDKSourceCode1.8 with 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 #6
Source File: ORBConfiguratorImpl.java    From JDKSourceCode1.8 with 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 #7
Source File: ORBConfiguratorImpl.java    From openjdk-jdk9 with 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 #8
Source File: ORBConfiguratorImpl.java    From hottub with 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 #9
Source File: ORBConfiguratorImpl.java    From hottub with 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 #10
Source File: ORBConfiguratorImpl.java    From openjdk-jdk8u-backup with 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 File: ORBConfiguratorImpl.java    From TencentKona-8 with 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 #12
Source File: ORBConfiguratorImpl.java    From openjdk-jdk8u-backup with 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 #13
Source File: ORBConfiguratorImpl.java    From openjdk-jdk9 with 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 File: ORBConfiguratorImpl.java    From openjdk-8-source with 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 File: ORBConfiguratorImpl.java    From openjdk-8-source with 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 File: ORBConfiguratorImpl.java    From openjdk-jdk8u with 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 File: ORBConfiguratorImpl.java    From jdk1.8-source-analysis with 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 #18
Source File: ORBConfiguratorImpl.java    From jdk1.8-source-analysis with 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 #19
Source File: ORBConfiguratorImpl.java    From openjdk-jdk8u with 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 File: DataCollectorFactory.java    From openjdk-8-source with 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 #21
Source File: ORBImpl.java    From hottub with 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 #22
Source File: ORBImpl.java    From hottub with 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 #23
Source File: ORBImpl.java    From openjdk-jdk8u-backup with 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 #24
Source File: ORBImpl.java    From openjdk-jdk8u with 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 #25
Source File: ORBImpl.java    From openjdk-jdk8u-backup with 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 #26
Source File: ORBDataParserImpl.java    From openjdk-jdk8u-backup with 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 File: DataCollectorFactory.java    From openjdk-jdk8u-backup with 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 #28
Source File: ORBImpl.java    From openjdk-jdk8u with 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 #29
Source File: ORBImpl.java    From openjdk-jdk8u with 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 #30
Source File: ORBImpl.java    From openjdk-8-source with 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 ) ;
}