Skip to content

Commit 7737be0

Browse files
committed
Reconcile: revert EndPointSelector
1 parent 5996009 commit 7737be0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

engine/api/src/main/java/org/apache/cloudstack/engine/subsystem/api/storage/EndPointSelector.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public interface EndPointSelector {
3535

3636
EndPoint select(DataObject object, boolean encryptionSupportRequired);
3737

38-
EndPoint getEndPointFromHostId(Long hostId);
39-
4038
EndPoint select(DataObject object, StorageAction action);
4139

4240
EndPoint select(DataObject object, StorageAction action, boolean encryptionSupportRequired);

engine/storage/src/main/java/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ public EndPoint select(DataObject srcData, DataObject destData, StorageAction ac
321321
return select(srcData, destData, encryptionRequired);
322322
}
323323

324-
public EndPoint findEndpointForPrimaryStorage(DataStore store) {
324+
protected EndPoint findEndpointForPrimaryStorage(DataStore store) {
325325
return findEndPointInScope(store.getScope(), findOneHostOnPrimaryStorage, store.getId());
326326
}
327327

@@ -449,7 +449,6 @@ public EndPoint select(DataStore store) {
449449
}
450450
}
451451

452-
@Override
453452
public EndPoint getEndPointFromHostId(Long hostId) {
454453
HostVO host = hostDao.findById(hostId);
455454
return RemoteHostEndPoint.getHypervisorHostEndPoint(host);

0 commit comments

Comments
 (0)