本文整理汇总了Java中com.sun.corba.se.impl.logging.ORBUtilSystemException类的典型用法代码示例。如果您正苦于以下问题:Java ORBUtilSystemException类的具体用法?Java ORBUtilSystemException怎么用?Java ORBUtilSystemException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ORBUtilSystemException类属于com.sun.corba.se.impl.logging包,在下文中一共展示了ORBUtilSystemException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invoke
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public Object invoke( Object proxy, Method method, Object[] args )
throws Throwable
{
// Note that the declaring class in method is the interface
// in which the method was defined, not the proxy class.
Class cls = method.getDeclaringClass() ;
InvocationHandler handler =
(InvocationHandler)classToInvocationHandler.get( cls ) ;
if (handler == null) {
if (defaultHandler != null)
handler = defaultHandler ;
else {
ORBUtilSystemException wrapper = ORBUtilSystemException.get(
CORBALogDomains.UTIL ) ;
throw wrapper.noInvocationHandler( "\"" + method.toString() +
"\"" ) ;
}
}
// handler should never be null here.
return handler.invoke( proxy, method, args ) ;
}
示例2: ORBInitInfoImpl
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
/**
* 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;
}
示例3: configure
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
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 ) ;
}
示例4: RequestMessage_1_1
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
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;
}
示例5: init
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public void init(org.omg.CORBA.ORB orb,
boolean littleEndian,
BufferManagerWrite bufferManager,
byte streamFormatVersion,
boolean usePooledByteBuffers)
{
// ORB must not be null. See CDROutputStream constructor.
this.orb = (ORB)orb;
this.wrapper = ORBUtilSystemException.get( this.orb,
CORBALogDomains.RPC_ENCODING ) ;
debug = this.orb.transportDebugFlag;
this.littleEndian = littleEndian;
this.bufferManagerWrite = bufferManager;
this.bbwi = new ByteBufferWithInfo(orb, bufferManager, usePooledByteBuffers);
this.streamFormatVersion = streamFormatVersion;
createRepositoryIdHandlers();
}
示例6: CodecFactoryImpl
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
/**
* Creates a new CodecFactory implementation. Stores the ORB that
* created this factory, for later use by the Codec.
*/
public CodecFactoryImpl( ORB orb ) {
this.orb = orb;
wrapper = ORBUtilSystemException.get(
(com.sun.corba.se.spi.orb.ORB)orb,
CORBALogDomains.RPC_PROTOCOL ) ;
// Precreate a codec for version 1.0 through
// 1.(MAX_MINOR_VERSION_SUPPORTED). This can be
// done since Codecs are immutable in their current implementation.
// This is an optimization that eliminates the overhead of creating
// a new Codec each time create_codec is called.
for( int minor = 0; minor <= MAX_MINOR_VERSION_SUPPORTED; minor++ ) {
codecs[minor] = new CDREncapsCodec( orb, 1, minor );
}
}
示例7: newOutputStream
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public static CDROutputStreamBase newOutputStream(
ORB orb, GIOPVersion version, byte encodingVersion) {
switch(version.intValue()) {
case GIOPVersion.VERSION_1_0:
return new CDROutputStream_1_0();
case GIOPVersion.VERSION_1_1:
return new CDROutputStream_1_1();
case GIOPVersion.VERSION_1_2:
if (encodingVersion != Message.CDR_ENC_VERSION) {
return
new IDLJavaSerializationOutputStream(encodingVersion);
}
return new CDROutputStream_1_2();
default:
ORBUtilSystemException wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.RPC_ENCODING ) ;
// REVISIT - what is appropriate? INTERNAL exceptions
// are really hard to track later.
throw wrapper.unsupportedGiopVersion( version ) ;
}
}
示例8: CDROutputStream
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public CDROutputStream(ORB orb,
GIOPVersion version,
byte encodingVersion,
boolean littleEndian,
BufferManagerWrite bufferManager,
byte streamFormatVersion,
boolean usePooledByteBuffers)
{
impl = OutputStreamFactory.newOutputStream(orb, version,
encodingVersion);
impl.init(orb, littleEndian, bufferManager,
streamFormatVersion, usePooledByteBuffers);
impl.setParent(this);
this.orb = orb ;
this.wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.RPC_ENCODING ) ;
}
示例9: newInputStream
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public static CDRInputStreamBase newInputStream(
ORB orb, GIOPVersion version, byte encodingVersion) {
switch(version.intValue()) {
case GIOPVersion.VERSION_1_0:
return new CDRInputStream_1_0();
case GIOPVersion.VERSION_1_1:
return new CDRInputStream_1_1();
case GIOPVersion.VERSION_1_2:
if (encodingVersion != Message.CDR_ENC_VERSION) {
return
new IDLJavaSerializationInputStream(encodingVersion);
}
return new CDRInputStream_1_2();
// else fall through and report exception.
default:
ORBUtilSystemException wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.RPC_ENCODING ) ;
throw wrapper.unsupportedGiopVersion( version ) ;
}
}
示例10: CDROutputObject
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
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;
}
示例11: newBufferManagerRead
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public static BufferManagerRead newBufferManagerRead(
int strategy, byte encodingVersion, ORB orb) {
if (encodingVersion != Message.CDR_ENC_VERSION) {
if (strategy != BufferManagerFactory.GROW) {
ORBUtilSystemException wrapper =
ORBUtilSystemException.get((ORB)orb,
CORBALogDomains.RPC_ENCODING);
throw wrapper.invalidBuffMgrStrategy("newBufferManagerRead");
}
return new BufferManagerReadGrow(orb);
}
switch (strategy) {
case BufferManagerFactory.GROW:
return new BufferManagerReadGrow(orb);
case BufferManagerFactory.COLLECT:
throw new INTERNAL("Collect strategy invalid for reading");
case BufferManagerFactory.STREAM:
return new BufferManagerReadStream(orb);
default:
throw new INTERNAL("Unknown buffer manager read strategy: "
+ strategy);
}
}
示例12: newBufferManagerWrite
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public static BufferManagerWrite newBufferManagerWrite(
int strategy, byte encodingVersion, ORB orb) {
if (encodingVersion != Message.CDR_ENC_VERSION) {
if (strategy != BufferManagerFactory.GROW) {
ORBUtilSystemException wrapper =
ORBUtilSystemException.get((ORB)orb,
CORBALogDomains.RPC_ENCODING);
throw wrapper.invalidBuffMgrStrategy("newBufferManagerWrite");
}
return new BufferManagerWriteGrow(orb);
}
switch (strategy) {
case BufferManagerFactory.GROW:
return new BufferManagerWriteGrow(orb);
case BufferManagerFactory.COLLECT:
return new BufferManagerWriteCollect(orb);
case BufferManagerFactory.STREAM:
return new BufferManagerWriteStream(orb);
default:
throw new INTERNAL("Unknown buffer manager write strategy: "
+ strategy);
}
}
示例13: init
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
/**
* 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;
}
示例14: BootstrapResolverImpl
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public BootstrapResolverImpl(ORB orb, String host, int port) {
wrapper = ORBUtilSystemException.get( orb,
CORBALogDomains.ORB_RESOLVER ) ;
// Create a new IOR with the magic of INIT
byte[] initialKey = "INIT".getBytes() ;
ObjectKey okey = orb.getObjectKeyFactory().create(initialKey) ;
IIOPAddress addr = IIOPFactories.makeIIOPAddress( orb, host, port ) ;
IIOPProfileTemplate ptemp = IIOPFactories.makeIIOPProfileTemplate(
orb, GIOPVersion.V1_0, addr);
IORTemplate iortemp = IORFactories.makeIORTemplate( okey.getTemplate() ) ;
iortemp.add( ptemp ) ;
IOR initialIOR = iortemp.makeIOR( (com.sun.corba.se.spi.orb.ORB)orb,
"", okey.getId() ) ;
bootstrapDelegate = ORBUtility.makeClientDelegate( initialIOR ) ;
}
示例15: SelectorImpl
import com.sun.corba.se.impl.logging.ORBUtilSystemException; //导入依赖的package包/类
public SelectorImpl(ORB orb)
{
super(null, null, "ORB-Selector-Thread", 0, false);
this.orb = orb;
selector = null;
selectorStarted = false;
timeout = 60000;
deferredRegistrations = new ArrayList();
interestOpsList = new ArrayList();
listenerThreads = new HashMap();
readerThreads = java.util.Collections.synchronizedMap(new HashMap());
closed = false;
wrapper = ORBUtilSystemException.get(orb,CORBALogDomains.RPC_TRANSPORT);
}