Toggle navigation
Home
org.apache.hadoop.scm.XceiverClientManager.XceiverClientWithAccessInfo to org.apache.hadoop.scm.XceiverClientSpi
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'hadoop'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Rename Variable
info
to
client
info
to
client
openClient
to
clientCache
openClient
to
clientCache
openClient
to
clientCache
Cascading Type Change (Different)
RemovalListener<String,XceiverClientWithAccessInfo>
to
RemovalListener<String,XceiverClientSpi>
Add or Remove Method invocation
CacheBuilder.newBuilder().expireAfterAccess(this.staleThresholdMs,TimeUnit.MILLISECONDS).removalListener(new RemovalListener<String,XceiverClientSpi>(){ @Override public void onRemoval( RemovalNotification<String,XceiverClientWithAccessInfo> removalNotification){ XceiverClientWithAccessInfo info=removalNotification.getValue(); if (info.hasRefence()) { synchronized (XceiverClientManager.this.openClient) { XceiverClientManager.this.openClient.put(removalNotification.getKey(),info); } } } } )
to
CacheBuilder.newBuilder().expireAfterAccess(staleThresholdMs,TimeUnit.MILLISECONDS).maximumSize(maxSize).removalListener(new RemovalListener<String,XceiverClientSpi>(){ @Override public void onRemoval( RemovalNotification<String,XceiverClientSpi> removalNotification){ synchronized (clientCache) { XceiverClientSpi info=removalNotification.getValue(); info.setEvicted(); } } } )