本文整理了Java中java.rmi.Naming.list()
方法的一些代码示例,展示了Naming.list()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Naming.list()
方法的具体详情如下:
包路径:java.rmi.Naming
类名称: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");
内容来源于网络,如有侵权,请联系作者删除!