java.rmi.Naming.list()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(199)

本文整理了Java中java.rmi.Naming.list()方法的一些代码示例,展示了Naming.list()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Naming.list()方法的具体详情如下:
包路径:java.rmi.Naming
类名称:Naming
方法名:list

Naming.list介绍

暂无

代码示例

代码示例来源:origin: IanDarwin/javasrc

while (!done) {
  try {
    String[] names = Naming.list(theURL);
    ta.setText("");
    for (int i=0; i<names.length; i++) {

代码示例来源:origin: org.neo4j/neo4j-shell

/**
 * Ensures that the RMI registry is created for this JVM instance and port,
 * see {@link #getPort()}.
 *
 * @return the registry for the port.
 * @throws RemoteException RMI error.
 */
public Registry ensureRegistryCreated() throws RemoteException
{
  try
  {
    Naming.list( toShortUrl() );
    return LocateRegistry.getRegistry( getHost(), getPort() );
  }
  catch ( RemoteException e )
  {
    try
    {
      return LocateRegistry.createRegistry( getPort(), null, new HostBoundSocketFactory( host ) );
    }
    catch ( UnknownHostException hostException )
    {
      throw new RemoteException( "Unable to bind to '" + host + "', unknown hostname.", hostException );
    }
  }
  catch ( java.net.MalformedURLException e )
  {
    throw new RemoteException( "Malformed URL", e );
  }
}

代码示例来源:origin: org.openrdf/sesame

sFound = java.rmi.Naming.list("rmi://localhost:"+RMICenter.sRMIPort+"/FactoryInterface");

相关文章