Methods Summary |
---|
private com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo | cast(java.lang.Object o)
if (o instanceof LegacyServerSocketEndPointInfo) {
return (LegacyServerSocketEndPointInfo) o;
}
return null;
|
protected void | dprint(java.lang.String msg)
ORBUtility.dprint("LegacyServerSocketManagerImpl", msg);
|
private java.util.Iterator | getAcceptorIterator()
Collection acceptors =
orb.getCorbaTransportManager().getAcceptors(null, null);
if (acceptors != null) {
return acceptors.iterator();
}
throw wrapper.getServerPortCalledBeforeEndpointsInitialized() ;
|
public synchronized com.sun.corba.se.spi.legacy.connection.LegacyServerSocketEndPointInfo | legacyGetEndpoint(java.lang.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);
|
public synchronized int | legacyGetPersistentServerPort(java.lang.String socketType)
if (orb.getORBData().getServerIsORBActivated()) {
// this server is activated by orbd
return legacyGetServerPort(socketType, true);
} else if (orb.getORBData().getPersistentPortInitialized()) {
// this is a user-activated server
return orb.getORBData().getPersistentServerPort();
} else {
throw wrapper.persistentServerportNotSet(
CompletionStatus.COMPLETED_MAYBE);
}
|
private int | legacyGetServerPort(java.lang.String socketType, boolean isPersistent)
Iterator endpoints = getAcceptorIterator();
while (endpoints.hasNext()) {
LegacyServerSocketEndPointInfo ep = cast(endpoints.next());
if (ep != null && ep.getType().equals(socketType)) {
if (isPersistent) {
return ep.getLocatorPort();
} else {
return ep.getPort();
}
}
}
return -1;
|
public synchronized int | legacyGetTransientOrPersistentServerPort(java.lang.String socketType)
return legacyGetServerPort(socketType,
orb.getORBData()
.getServerIsORBActivated());
|
public int | legacyGetTransientServerPort(java.lang.String type)
return legacyGetServerPort(type, false);
|
public boolean | legacyIsLocalServerPort(int port)
Iterator iterator = getAcceptorIterator();
while (iterator.hasNext()) {
LegacyServerSocketEndPointInfo endPoint = cast(iterator.next());
if (endPoint != null && endPoint.getPort() == port) {
return true;
}
}
return false;
|