本文整理汇总了Java中org.omg.CORBA.INTERNAL类的典型用法代码示例。如果您正苦于以下问题:Java INTERNAL类的具体用法?Java INTERNAL怎么用?Java INTERNAL使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
INTERNAL类属于org.omg.CORBA包,在下文中一共展示了INTERNAL类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newBufferManagerRead
import org.omg.CORBA.INTERNAL; //导入依赖的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);
}
}
示例2: legacyGetEndpoint
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public synchronized LegacyServerSocketEndPointInfo legacyGetEndpoint(
String name)
{
Iterator iterator = getAcceptorIterator();
while (iterator.hasNext()) {
LegacyServerSocketEndPointInfo endPoint = cast(iterator.next());
if (endPoint != null && name.equals(endPoint.getName())) {
return endPoint;
}
}
throw new INTERNAL("No acceptor for: " + name);
}
示例3: namingCtxRebindctxAlreadyBound
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( NAMING_CTX_REBINDCTX_ALREADY_BOUND, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.namingCtxRebindctxAlreadyBound",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
示例4: transNcDestroyGotExc
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL transNcDestroyGotExc( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( TRANS_NC_DESTROY_GOT_EXC, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.transNcDestroyGotExc",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
示例5: wcharArrayUnsupportedEncoding
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL wcharArrayUnsupportedEncoding( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( WCHAR_ARRAY_UNSUPPORTED_ENCODING, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.wcharArrayUnsupportedEncoding",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例6: ortNotInitialized
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL ortNotInitialized( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( ORT_NOT_INITIALIZED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "IOR.ortNotInitialized",
parameters, IORSystemException.class, exc ) ;
}
return exc ;
}
示例7: servantInvalid
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL servantInvalid( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( SERVANT_INVALID, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "INTERCEPTORS.servantInvalid",
parameters, InterceptorsSystemException.class, exc ) ;
}
return exc ;
}
示例8: duplicateOrbVersionServiceContext
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL duplicateOrbVersionServiceContext( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( DUPLICATE_ORB_VERSION_SERVICE_CONTEXT, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.duplicateOrbVersionServiceContext",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例9: giopMagicError
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL giopMagicError( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( GIOP_MAGIC_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.giopMagicError",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例10: pmfCreateRetain
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL pmfCreateRetain( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( PMF_CREATE_RETAIN, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.pmfCreateRetain",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
示例11: badHelperWriteMethod
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL badHelperWriteMethod( CompletionStatus cs, Throwable t, Object arg0) {
INTERNAL exc = new INTERNAL( BAD_HELPER_WRITE_METHOD, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = new Object[1] ;
parameters[0] = arg0 ;
doLog( Level.WARNING, "ORBUTIL.badHelperWriteMethod",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例12: cancelNotSupported
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL cancelNotSupported( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( CANCEL_NOT_SUPPORTED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.cancelNotSupported",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例13: invalidJdk131PatchLevel
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL invalidJdk131PatchLevel( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( INVALID_JDK1_3_1_PATCH_LEVEL, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.invalidJdk131PatchLevel",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例14: workQueueThreadInterrupted
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL workQueueThreadInterrupted( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
INTERNAL exc = new INTERNAL( WORK_QUEUE_THREAD_INTERRUPTED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = new Object[2] ;
parameters[0] = arg0 ;
parameters[1] = arg1 ;
doLog( Level.FINE, "ORBUTIL.workQueueThreadInterrupted",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
示例15: serverScTempSize
import org.omg.CORBA.INTERNAL; //导入依赖的package包/类
public INTERNAL serverScTempSize( CompletionStatus cs, Throwable t ) {
INTERNAL exc = new INTERNAL( SERVER_SC_TEMP_SIZE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.serverScTempSize",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}