本文整理汇总了Java中com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher类的典型用法代码示例。如果您正苦于以下问题:Java CorbaServerRequestDispatcher类的具体用法?Java CorbaServerRequestDispatcher怎么用?Java CorbaServerRequestDispatcher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CorbaServerRequestDispatcher类属于com.sun.corba.se.spi.protocol包,在下文中一共展示了CorbaServerRequestDispatcher类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: register_initial_reference
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
/**
* If this operation is called with an id, <code>"Y"</code>, and an
* object, <code>YY</code>, then a subsequent call to
* <code>ORB.resolve_initial_references( "Y" )</code> will
* return object <code>YY</code>.
*
* @param id The ID by which the initial reference will be known.
* @param obj The initial reference itself.
* @throws InvalidName if this operation is called with an empty string id
* or this operation is called with an id that is already registered,
* including the default names defined by OMG.
* @throws BAD_PARAM if the obj parameter is null.
*/
public void register_initial_reference(
String id, org.omg.CORBA.Object obj ) throws InvalidName
{
CorbaServerRequestDispatcher insnd ;
synchronized (this) {
checkShutdownState();
}
if ((id == null) || (id.length() == 0))
throw new InvalidName() ;
synchronized (this) {
checkShutdownState();
}
synchronized (resolverLock) {
insnd = insNamingDelegate ;
java.lang.Object obj2 = localResolver.resolve( id ) ;
if (obj2 != null)
throw new InvalidName(id + " already registered") ;
localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
}
synchronized (this) {
if (StubAdapter.isStub(obj))
// Make all remote object references available for INS.
requestDispatcherRegistry.registerServerRequestDispatcher(
insnd, id ) ;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:47,代码来源:ORBImpl.java
示例2: setINSDelegate
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
synchronized (this) {
checkShutdownState();
}
synchronized (resolverLock) {
insNamingDelegate = sdel ;
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:ORBImpl.java
示例3: handleRequestRequest
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
protected void handleRequestRequest(CorbaMessageMediator messageMediator)
{
// Does nothing if already unmarshaled.
((CDRInputObject)messageMediator.getInputObject()).unmarshalHeader();
ORB orb = (ORB)messageMediator.getBroker();
orb.checkShutdownState();
ObjectKey okey = messageMediator.getObjectKey();
if (orb.subcontractDebugFlag) {
ObjectKeyTemplate oktemp = okey.getTemplate() ;
dprint( ".handleRequest: " + opAndId(messageMediator)
+ ": dispatching to scid: " + oktemp.getSubcontractId());
}
CorbaServerRequestDispatcher sc = okey.getServerRequestDispatcher(orb);
if (orb.subcontractDebugFlag) {
dprint(".handleRequest: " + opAndId(messageMediator)
+ ": dispatching to sc: " + sc);
}
if (sc == null) {
throw wrapper.noServerScInDispatch() ;
}
// NOTE:
// This is necessary so mediator can act as ResponseHandler
// and pass necessary info to response constructors located
// in the subcontract.
// REVISIT - same class right now.
//messageMediator.setProtocolHandler(this);
try {
orb.startingDispatch();
sc.dispatch(messageMediator);
} finally {
orb.finishedDispatch();
}
}
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:41,代码来源:CorbaMessageMediatorImpl.java
示例4: register_initial_reference
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
/**
* If this operation is called with an id, <code>"Y"</code>, and an
* object, <code>YY</code>, then a subsequent call to
* <code>ORB.resolve_initial_references( "Y" )</code> will
* return object <code>YY</code>.
*
* @param id The ID by which the initial reference will be known.
* @param obj The initial reference itself.
* @throws InvalidName if this operation is called with an empty string id
* or this operation is called with an id that is already registered,
* including the default names defined by OMG.
* @throws BAD_PARAM if the obj parameter is null.
*/
public void register_initial_reference(
String id, org.omg.CORBA.Object obj ) throws InvalidName
{
CorbaServerRequestDispatcher insnd ;
if ((id == null) || (id.length() == 0))
throw new InvalidName() ;
synchronized (this) {
checkShutdownState();
}
synchronized (resolverLock) {
insnd = insNamingDelegate ;
java.lang.Object obj2 = localResolver.resolve( id ) ;
if (obj2 != null)
throw new InvalidName(id + " already registered") ;
localResolver.register( id, ClosureFactory.makeConstant( obj )) ;
}
synchronized (this) {
if (StubAdapter.isStub(obj))
// Make all remote object references available for INS.
requestDispatcherRegistry.registerServerRequestDispatcher(
insnd, id ) ;
}
}
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:43,代码来源:ORBImpl.java
示例5: makeServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeServerRequestDispatcher( ORB orb )
{
return new CorbaServerRequestDispatcherImpl( (com.sun.corba.se.spi.orb.ORB)orb ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java
示例6: makeBootstrapServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeBootstrapServerRequestDispatcher( ORB orb )
{
return new BootstrapServerRequestDispatcher( orb ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java
示例7: makeINSServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public static CorbaServerRequestDispatcher makeINSServerRequestDispatcher( ORB orb )
{
return new INSServerRequestDispatcher( orb ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:RequestDispatcherDefault.java
示例8: handleRequestRequest
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
protected void handleRequestRequest(CorbaMessageMediator messageMediator)
{
// Does nothing if already unmarshaled.
((CDRInputObject)messageMediator.getInputObject()).unmarshalHeader();
ORB orb = (ORB)messageMediator.getBroker();
synchronized (orb) {
orb.checkShutdownState();
}
ObjectKey okey = messageMediator.getObjectKey();
if (orb.subcontractDebugFlag) {
ObjectKeyTemplate oktemp = okey.getTemplate() ;
dprint( ".handleRequest: " + opAndId(messageMediator)
+ ": dispatching to scid: " + oktemp.getSubcontractId());
}
CorbaServerRequestDispatcher sc = okey.getServerRequestDispatcher(orb);
if (orb.subcontractDebugFlag) {
dprint(".handleRequest: " + opAndId(messageMediator)
+ ": dispatching to sc: " + sc);
}
if (sc == null) {
throw wrapper.noServerScInDispatch() ;
}
// NOTE:
// This is necessary so mediator can act as ResponseHandler
// and pass necessary info to response constructors located
// in the subcontract.
// REVISIT - same class right now.
//messageMediator.setProtocolHandler(this);
try {
orb.startingDispatch();
sc.dispatch(messageMediator);
} finally {
orb.finishedDispatch();
}
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:43,代码来源:CorbaMessageMediatorImpl.java
示例9: registerServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public synchronized void registerServerRequestDispatcher(
CorbaServerRequestDispatcher ssc, int scid)
{
SDRegistry.set( scid, ssc ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:RequestDispatcherRegistryImpl.java
示例10: setINSDelegate
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public void setINSDelegate( CorbaServerRequestDispatcher sdel )
{
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:ORBSingleton.java
示例11: getServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
byte[] bid = id.getId() ;
String str = new String( bid ) ;
return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( str ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WireObjectKeyTemplate.java
示例12: getServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb )
{
return oktemp.getServerRequestDispatcher( orb, id ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ObjectKeyImpl.java
示例13: getServerRequestDispatcher
import com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher; //导入依赖的package包/类
public CorbaServerRequestDispatcher getServerRequestDispatcher( ORB orb, ObjectId id )
{
return orb.getRequestDispatcherRegistry().getServerRequestDispatcher( scid ) ;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ObjectKeyTemplateBase.java
注:本文中的com.sun.corba.se.spi.protocol.CorbaServerRequestDispatcher类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论