Java Code Examples for com.sun.corba.se.impl.logging.OMGSystemException#get()

The following examples show how to use com.sun.corba.se.impl.logging.OMGSystemException#get() . 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: CDROutputObject.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private CDROutputObject(
    ORB orb, GIOPVersion giopVersion, Message header,
    BufferManagerWrite manager, byte streamFormatVersion,
    CorbaMessageMediator mediator)
{
    super(orb, giopVersion, header.getEncodingVersion(),
          false, manager, streamFormatVersion,
          ((mediator != null && mediator.getConnection() != null) ?
           ((CorbaConnection)mediator.getConnection()).
                 shouldUseDirectByteBuffers() : false));

    this.header = header;
    this.orb = orb;
    this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb, CORBALogDomains.RPC_ENCODING ) ;

    getBufferManager().setOutputObject(this);
    this.corbaMessageMediator = mediator;
}
 
Example 2
Source File: CDRInputStream_1_0.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * NOTE:  size passed to init means buffer size
 */
public void init(org.omg.CORBA.ORB orb,
                 ByteBuffer byteBuffer,
                 int size,
                 boolean littleEndian,
                 BufferManagerRead bufferManager)
{
    this.orb = (ORB)orb;
    this.wrapper = ORBUtilSystemException.get( (ORB)orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( (ORB)orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.littleEndian = littleEndian;
    this.bufferManagerRead = bufferManager;
    this.bbwi = new ByteBufferWithInfo(orb,byteBuffer,0);
    this.bbwi.buflen = size;
    this.bbwi.byteBuffer.limit(bbwi.buflen);
    this.markAndResetHandler = bufferManagerRead.getMarkAndResetHandler();

    debug = ((ORB)orb).transportDebugFlag;
}
 
Example 3
Source File: ORBInitInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new ORBInitInfoImpl object (scoped to package)
 *
 * @param args The arguments passed to ORB_init.
 */
ORBInitInfoImpl( ORB orb, String[] args,
    String orbId, CodecFactory codecFactory )
{
    this.orb = orb;

    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    this.args = args;
    this.orbId = orbId;
    this.codecFactory = codecFactory;
}
 
Example 4
Source File: ORBInitInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Creates a new ORBInitInfoImpl object (scoped to package)
 *
 * @param args The arguments passed to ORB_init.
 */
ORBInitInfoImpl( ORB orb, String[] args,
    String orbId, CodecFactory codecFactory )
{
    this.orb = orb;

    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    this.args = args;
    this.orbId = orbId;
    this.codecFactory = codecFactory;
}
 
Example 5
Source File: IORInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new IORInfo implementation.  This info object will establish
 * tagged components with the template for the provided IOR Template.
 */
IORInfoImpl( ObjectAdapter adapter ) {
    this.orb = adapter.getORB() ;

    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    this.adapter = adapter;
}
 
Example 6
Source File: PICurrent.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * PICurrent constructor which will be called for every ORB
 * initialization.
 */
PICurrent( ORB myORB ) {
    this.myORB = myORB;
    wrapper = OMGSystemException.get( myORB,
        CORBALogDomains.RPC_PROTOCOL ) ;
    this.orbInitializing = true;
    slotCounter = 0;
}
 
Example 7
Source File: INSURLOperationImpl.java    From openjdk-8-source with GNU General Public License v2.0 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 8
Source File: POAFactory.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public void init( ORB orb )
{
    this.orb = orb ;
    wrapper = POASystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    delegateImpl = new DelegateImpl( orb, this ) ;
    registerRootPOA() ;

    POACurrent poaCurrent = new POACurrent(orb);
    orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME,
        ClosureFactory.makeConstant( poaCurrent ) ) ;
}
 
Example 9
Source File: PICurrent.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * PICurrent constructor which will be called for every ORB
 * initialization.
 */
PICurrent( ORB myORB ) {
    this.myORB = myORB;
    wrapper = OMGSystemException.get( myORB,
        CORBALogDomains.RPC_PROTOCOL ) ;
    this.orbInitializing = true;
    slotCounter = 0;
}
 
Example 10
Source File: RequestInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new RequestInfoImpl object.
 */
public RequestInfoImpl( ORB myORB ) {
    super();

    this.myORB = myORB;
    wrapper = InterceptorsSystemException.get( myORB,
        CORBALogDomains.RPC_PROTOCOL ) ;
    stdWrapper = OMGSystemException.get( myORB,
        CORBALogDomains.RPC_PROTOCOL ) ;

    // Capture the current TSC and make it the RSC of this request.
    PICurrent current = (PICurrent)(myORB.getPIHandler().getPICurrent());
    slotTable = current.getSlotTable( );
}
 
Example 11
Source File: POAFactory.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public void init( ORB orb )
{
    this.orb = orb ;
    wrapper = POASystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    delegateImpl = new DelegateImpl( orb, this ) ;
    registerRootPOA() ;

    POACurrent poaCurrent = new POACurrent(orb);
    orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME,
        ClosureFactory.makeConstant( poaCurrent ) ) ;
}
 
Example 12
Source File: CDRInputObject.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public CDRInputObject(ORB orb,
                      CorbaConnection corbaConnection,
                      ByteBuffer byteBuffer,
                      Message header)
{
    super(orb, byteBuffer, header.getSize(), header.isLittleEndian(),
          header.getGIOPVersion(), header.getEncodingVersion(),
          BufferManagerFactory.newBufferManagerRead(
                                      header.getGIOPVersion(),
                                      header.getEncodingVersion(),
                                      orb));

    this.corbaConnection = corbaConnection;
    this.orb = orb ;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;

    if (orb.transportDebugFlag) {
        dprint(".CDRInputObject constructor:");
    }

    getBufferManager().init(header);

    this.header = header;

    unmarshaledHeader = false;

    setIndex(Message.GIOPMessageHeaderLength);

    setBufferLength(header.getSize());
}
 
Example 13
Source File: INSURLOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 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 14
Source File: PIHandlerImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public PIHandlerImpl( ORB orb, String[] args ) {
    this.orb = orb ;
    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    arguments = args ;

    // Create codec factory:
    codecFactory = new CodecFactoryImpl( orb );

    // Create new interceptor list:
    interceptorList = new InterceptorList( wrapper );

    // Create a new PICurrent.
    current = new PICurrent( orb );

    // Create new interceptor invoker, initially disabled:
    interceptorInvoker = new InterceptorInvoker( orb, interceptorList,
                                                 current );

    // Register the PI current and Codec factory objects
    orb.getLocalResolver().register( ORBConstants.PI_CURRENT_NAME,
        ClosureFactory.makeConstant( current ) ) ;
    orb.getLocalResolver().register( ORBConstants.CODEC_FACTORY_NAME,
        ClosureFactory.makeConstant( codecFactory ) ) ;
}
 
Example 15
Source File: INSURLOperationImpl.java    From jdk1.8-source-analysis with Apache License 2.0 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 16
Source File: IORInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Creates a new IORInfo implementation.  This info object will establish
 * tagged components with the template for the provided IOR Template.
 */
IORInfoImpl( ObjectAdapter adapter ) {
    this.orb = adapter.getORB() ;

    orbutilWrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    wrapper = InterceptorsSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_PROTOCOL ) ;

    this.adapter = adapter;
}
 
Example 17
Source File: POAFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void init( ORB orb )
{
    this.orb = orb ;
    wrapper = POASystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.OA_LIFECYCLE ) ;
    delegateImpl = new DelegateImpl( orb, this ) ;
    registerRootPOA() ;

    POACurrent poaCurrent = new POACurrent(orb);
    orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME,
        ClosureFactory.makeConstant( poaCurrent ) ) ;
}
 
Example 18
Source File: CDRInputObject.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public CDRInputObject(ORB orb,
                      CorbaConnection corbaConnection,
                      ByteBuffer byteBuffer,
                      Message header)
{
    super(orb, byteBuffer, header.getSize(), header.isLittleEndian(),
          header.getGIOPVersion(), header.getEncodingVersion(),
          BufferManagerFactory.newBufferManagerRead(
                                      header.getGIOPVersion(),
                                      header.getEncodingVersion(),
                                      orb));

    this.corbaConnection = corbaConnection;
    this.orb = orb ;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;

    if (orb.transportDebugFlag) {
        dprint(".CDRInputObject constructor:");
    }

    getBufferManager().init(header);

    this.header = header;

    unmarshaledHeader = false;

    setIndex(Message.GIOPMessageHeaderLength);

    setBufferLength(header.getSize());
}
 
Example 19
Source File: CDRInputObject.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public CDRInputObject(ORB orb,
                      CorbaConnection corbaConnection,
                      ByteBuffer byteBuffer,
                      Message header)
{
    super(orb, byteBuffer, header.getSize(), header.isLittleEndian(),
          header.getGIOPVersion(), header.getEncodingVersion(),
          BufferManagerFactory.newBufferManagerRead(
                                      header.getGIOPVersion(),
                                      header.getEncodingVersion(),
                                      orb));

    this.corbaConnection = corbaConnection;
    this.orb = orb ;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;

    if (orb.transportDebugFlag) {
        dprint(".CDRInputObject constructor:");
    }

    getBufferManager().init(header);

    this.header = header;

    unmarshaledHeader = false;

    setIndex(Message.GIOPMessageHeaderLength);

    setBufferLength(header.getSize());
}
 
Example 20
Source File: CDRInputObject.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public CDRInputObject(ORB orb,
                      CorbaConnection corbaConnection,
                      ByteBuffer byteBuffer,
                      Message header)
{
    super(orb, byteBuffer, header.getSize(), header.isLittleEndian(),
          header.getGIOPVersion(), header.getEncodingVersion(),
          BufferManagerFactory.newBufferManagerRead(
                                      header.getGIOPVersion(),
                                      header.getEncodingVersion(),
                                      orb));

    this.corbaConnection = corbaConnection;
    this.orb = orb ;
    this.wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;
    this.omgWrapper = OMGSystemException.get( orb,
        CORBALogDomains.RPC_ENCODING ) ;

    if (orb.transportDebugFlag) {
        dprint(".CDRInputObject constructor:");
    }

    getBufferManager().init(header);

    this.header = header;

    unmarshaledHeader = false;

    setIndex(Message.GIOPMessageHeaderLength);

    setBufferLength(header.getSize());
}