Java Code Examples for com.sun.corba.se.impl.logging.ORBUtilSystemException#get()
The following examples show how to use
com.sun.corba.se.impl.logging.ORBUtilSystemException#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: CDRInputStream_1_0.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * 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 2
Source File: CDRInputStream_1_0.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * 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: RequestMessage_1_1.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
RequestMessage_1_1(ORB orb, ServiceContexts _service_contexts, int _request_id, boolean _response_expected, byte[] _reserved, byte[] _object_key, String _operation, Principal _requesting_principal) { super(Message.GIOPBigMagic, GIOPVersion.V1_1, FLAG_NO_FRAG_BIG_ENDIAN, Message.GIOPRequest, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; service_contexts = _service_contexts; request_id = _request_id; response_expected = _response_expected; reserved = _reserved; object_key = _object_key; operation = _operation; requesting_principal = _requesting_principal; }
Example 4
Source File: SpecialMethod.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public CorbaMessageMediator invoke(java.lang.Object servant, CorbaMessageMediator request, byte[] objectId, ObjectAdapter objectAdapter) { ORB orb = (ORB)request.getBroker() ; ORBUtilSystemException wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.OA_INVOCATION ) ; if ((servant == null) || (servant instanceof NullServant)) { return request.getProtocolHandler().createSystemExceptionResponse( request, wrapper.badSkeleton(), null); } else { return request.getProtocolHandler().createSystemExceptionResponse( request, wrapper.getinterfaceNotImplemented(), null); } }
Example 5
Source File: ORBConfiguratorImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
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: CorbaMessageMediatorImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public CorbaMessageMediatorImpl(ORB orb, Connection connection) { this.orb = orb; this.connection = (CorbaConnection)connection; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; this.interceptorWrapper = InterceptorsSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; }
Example 7
Source File: CorbaResponseWaitingRoomImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public CorbaResponseWaitingRoomImpl(ORB orb, CorbaConnection connection) { this.orb = orb; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; this.connection = connection; out_calls = Collections.synchronizedMap(new HashMap<Integer, OutCallDesc>()); }
Example 8
Source File: CorbaClientDelegateImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public CorbaClientDelegateImpl(ORB orb, CorbaContactInfoList contactInfoList) { this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; this.contactInfoList = contactInfoList; }
Example 9
Source File: CacheTable.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public CacheTable(ORB orb, boolean u) { //System.out.println("using new cache table"); this.orb = orb; wrapper = ORBUtilSystemException.get(orb, CORBALogDomains.RPC_ENCODING); noReverseMap = u; size = INITIAL_SIZE; entryCount = 0; initTables(); }
Example 10
Source File: INSURLOperationImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 11
Source File: AnyImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 12
Source File: AnyImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 13
Source File: ReplyMessage_1_2.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static void isValidReplyStatus(int replyStatus) { switch (replyStatus) { case NO_EXCEPTION : case USER_EXCEPTION : case SYSTEM_EXCEPTION : case LOCATION_FORWARD : case LOCATION_FORWARD_PERM : case NEEDS_ADDRESSING_MODE : break; default : ORBUtilSystemException localWrapper = ORBUtilSystemException.get( CORBALogDomains.RPC_PROTOCOL ) ; throw localWrapper.illegalReplyStatus( CompletionStatus.COMPLETED_MAYBE); } }
Example 14
Source File: IDLJavaSerializationOutputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
public void init(org.omg.CORBA.ORB orb, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers) { this.orb = (ORB) orb; this.bufferManager = bufferManager; wrapper = ORBUtilSystemException.get((ORB) orb, CORBALogDomains.RPC_ENCODING); bos = new _ByteArrayOutputStream(ORBConstants.GIOP_DEFAULT_BUFFER_SIZE); }
Example 15
Source File: ReplyMessage_1_0.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
ReplyMessage_1_0(ORB orb, ServiceContexts _service_contexts, int _request_id, int _reply_status, IOR _ior) { super(Message.GIOPBigMagic, false, Message.GIOPReply, 0); this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; service_contexts = _service_contexts; request_id = _request_id; reply_status = _reply_status; ior = _ior; }
Example 16
Source File: TypeCodeImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public TypeCodeImpl(ORB orb) { // initialized to tk_null _orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; }
Example 17
Source File: ReplyMessage_1_1.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static void isValidReplyStatus(int replyStatus) { switch (replyStatus) { case NO_EXCEPTION : case USER_EXCEPTION : case SYSTEM_EXCEPTION : case LOCATION_FORWARD : break; default : ORBUtilSystemException localWrapper = ORBUtilSystemException.get( CORBALogDomains.RPC_PROTOCOL ) ; throw localWrapper.illegalReplyStatus( CompletionStatus.COMPLETED_MAYBE); } }
Example 18
Source File: ORB.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected ORB() { // Initialize logging first, since it is needed nearly // everywhere (for example, in TypeCodeImpl). wrapperMap = new ConcurrentHashMap<>(); wrapper = ORBUtilSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; omgWrapper = OMGSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; typeCodeMap = new HashMap<>(); primitiveTypeCodeConstants = new TypeCodeImpl[] { new TypeCodeImpl(this, TCKind._tk_null), new TypeCodeImpl(this, TCKind._tk_void), new TypeCodeImpl(this, TCKind._tk_short), new TypeCodeImpl(this, TCKind._tk_long), new TypeCodeImpl(this, TCKind._tk_ushort), new TypeCodeImpl(this, TCKind._tk_ulong), new TypeCodeImpl(this, TCKind._tk_float), new TypeCodeImpl(this, TCKind._tk_double), new TypeCodeImpl(this, TCKind._tk_boolean), new TypeCodeImpl(this, TCKind._tk_char), new TypeCodeImpl(this, TCKind._tk_octet), new TypeCodeImpl(this, TCKind._tk_any), new TypeCodeImpl(this, TCKind._tk_TypeCode), new TypeCodeImpl(this, TCKind._tk_Principal), new TypeCodeImpl(this, TCKind._tk_objref), null, // tk_struct null, // tk_union null, // tk_enum new TypeCodeImpl(this, TCKind._tk_string), null, // tk_sequence null, // tk_array null, // tk_alias null, // tk_except new TypeCodeImpl(this, TCKind._tk_longlong), new TypeCodeImpl(this, TCKind._tk_ulonglong), new TypeCodeImpl(this, TCKind._tk_longdouble), new TypeCodeImpl(this, TCKind._tk_wchar), new TypeCodeImpl(this, TCKind._tk_wstring), new TypeCodeImpl(this, TCKind._tk_fixed), new TypeCodeImpl(this, TCKind._tk_value), new TypeCodeImpl(this, TCKind._tk_value_box), new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface) } ; monitoringManager = MonitoringFactories.getMonitoringManagerFactory( ). createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION); }
Example 19
Source File: INSServerRequestDispatcher.java From hottub with GNU General Public License v2.0 | 4 votes |
public INSServerRequestDispatcher( ORB orb ) { this.orb = orb; this.wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_PROTOCOL ) ; }
Example 20
Source File: CorbaResponseWaitingRoomImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public CorbaResponseWaitingRoomImpl(ORB orb, CorbaConnection connection) { this.orb = orb; wrapper = ORBUtilSystemException.get( orb, CORBALogDomains.RPC_TRANSPORT ) ; this.connection = connection; out_calls = Collections.synchronizedMap(new HashMap<Integer, OutCallDesc>()); }