当前位置: 首页>>代码示例>>Java>>正文


Java NoSuchEndPoint类代码示例

本文整理汇总了Java中com.sun.corba.se.spi.activation.NoSuchEndPoint的典型用法代码示例。如果您正苦于以下问题:Java NoSuchEndPoint类的具体用法?Java NoSuchEndPoint怎么用?Java NoSuchEndPoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NoSuchEndPoint类属于com.sun.corba.se.spi.activation包,在下文中一共展示了NoSuchEndPoint类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerEndpoints

import com.sun.corba.se.spi.activation.NoSuchEndPoint; //导入依赖的package包/类
public void registerEndpoints( int serverId, String orbId,
    EndPointInfo [] endpointList ) throws NoSuchEndPoint, ServerNotRegistered,
    ORBAlreadyRegistered
{
    // orbId is ignored for now
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized (serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);

        if (entry == null) {
            if (debug)
                System.out.println(
                    "ServerManagerImpl: registerEndpoint for server Id " +
                    serverId + " called, but no such server is registered." ) ;

            throw wrapper.serverNotExpectedToRegister() ;
        } else {
            if (debug)
                System.out.println(
                    "ServerManagerImpl: registerEndpoints for server Id " +
                    serverId + " called.  This server is now active." ) ;

            entry.registerPorts( orbId, endpointList );

        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:ServerManagerImpl.java

示例2: locateServer

import com.sun.corba.se.spi.activation.NoSuchEndPoint; //导入依赖的package包/类
public ServerLocation locateServer (int serverId, String endpointType)
    throws NoSuchEndPoint, ServerNotRegistered, ServerHeldDown
{
    ServerTableEntry entry = getEntry( serverId ) ;
    if (debug)
        System.out.println( "ServerManagerImpl: locateServer called with " +
                            " serverId=" + serverId + " endpointType=" +
                            endpointType + " block=true" ) ;

    // passing in entry to eliminate multiple lookups for
    // the same entry in some cases

    return locateServer(entry, endpointType, true);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:ServerManagerImpl.java

示例3: getServerPortForType

import com.sun.corba.se.spi.activation.NoSuchEndPoint; //导入依赖的package包/类
public int getServerPortForType(ServerLocationPerORB location,
                                String endPointType)
    throws NoSuchEndPoint
{
    EndPointInfo[] listenerPorts = location.ports;
    for (int i = 0; i < listenerPorts.length; i++) {
        if ((listenerPorts[i].endpointType).equals(endPointType)) {
            return listenerPorts[i].port;
        }
    }
    throw new NoSuchEndPoint();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:ServerManagerImpl.java

示例4: activate

import com.sun.corba.se.spi.activation.NoSuchEndPoint; //导入依赖的package包/类
public void activate(int serverId)
    throws ServerAlreadyActive, ServerNotRegistered, ServerHeldDown
{

    ServerLocation   location;
    ServerTableEntry entry;
    Integer key = new Integer(serverId);

    synchronized(serverTable) {
        entry = (ServerTableEntry) serverTable.get(key);
    }

    if (entry != null && entry.isActive()) {
        if (debug)
            System.out.println( "ServerManagerImpl: activate for server Id " +
                                serverId + " failed because server is already active. " +
                                "entry = " + entry ) ;

        throw new ServerAlreadyActive( serverId );
    }

    // locate the server
    try {

        // We call getEntry here so that state of the entry is
        // checked for validity before we actually go and locate a server

        entry = getEntry(serverId);

        if (debug)
            System.out.println( "ServerManagerImpl: locateServer called with " +
                            " serverId=" + serverId + " endpointType="
                            + IIOP_CLEAR_TEXT.value + " block=false" ) ;

        location = locateServer(entry, IIOP_CLEAR_TEXT.value, false);

        if (debug)
            System.out.println( "ServerManagerImpl: activate for server Id " +
                                serverId + " found location " +
                                location.hostname + " and activated it" ) ;
    } catch (NoSuchEndPoint ex) {
        if (debug)
            System.out.println( "ServerManagerImpl: activate for server Id " +
                                " threw NoSuchEndpoint exception, which was ignored" );
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:47,代码来源:ServerManagerImpl.java

示例5: getEndpoint

import com.sun.corba.se.spi.activation.NoSuchEndPoint; //导入依赖的package包/类
public int getEndpoint(String endpointType) throws NoSuchEndPoint
{
    return orb.getLegacyServerSocketManager()
        .legacyGetTransientServerPort(endpointType);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:ServerManagerImpl.java


注:本文中的com.sun.corba.se.spi.activation.NoSuchEndPoint类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。