Esempio n. 1
0
 public CorbaOutboundConnectionCacheImpl(ORB orb, ContactInfo contactInfo) {
   super(
       orb,
       contactInfo.getConnectionCacheType(),
       ((CorbaContactInfo) contactInfo).getMonitoringName());
   this.connectionCache = new Hashtable();
 }
Esempio n. 2
0
 public Connection get(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".get: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     dprintStatistics();
     return (Connection) connectionCache.get(contactInfo);
   }
 }
Esempio n. 3
0
 public void put(ContactInfo contactInfo, Connection connection) {
   if (orb.transportDebugFlag) {
     dprint(".put: " + contactInfo + " " + contactInfo.hashCode() + " " + connection);
   }
   synchronized (backingStore()) {
     connectionCache.put(contactInfo, connection);
     connection.setConnectionCache(this);
     dprintStatistics();
   }
 }
Esempio n. 4
0
 public void remove(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".remove: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     if (contactInfo != null) {
       connectionCache.remove(contactInfo);
     }
     dprintStatistics();
   }
 }