mirror of https://github.com/apache/cloudstack.git
Use class.getSimpleName in ResourceListener
This commit is contained in:
parent
016700737c
commit
cbbf80cee3
|
|
@ -17,8 +17,6 @@ public interface ResourceListener {
|
|||
static final Integer EVENT_PREPARE_MAINTENANCE_AFTER = 0x1 << 7;
|
||||
static final Integer EVENT_ALL = (EVENT_DISCOVER_BEFORE | EVENT_DISCOVER_AFTER | EVENT_DELETE_HOST_BEFORE | EVENT_DELETE_HOST_AFTER
|
||||
| EVENT_CANCEL_MAINTENANCE_BEFORE | EVENT_CANCEL_MAINTENANCE_AFTER | EVENT_PREPARE_MAINTENANCE_BEFORE | EVENT_PREPARE_MAINTENANCE_AFTER);
|
||||
|
||||
String getName();
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
|
|||
}
|
||||
|
||||
if (lst.contains(listener)) {
|
||||
throw new CloudRuntimeException("Duplicate resource lisener:" + listener.getName());
|
||||
throw new CloudRuntimeException("Duplicate resource lisener:" + listener.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
lst.add(listener);
|
||||
|
|
@ -213,7 +213,7 @@ public class ResourceManagerImpl implements ResourceManager, ResourceService, Ma
|
|||
} else {
|
||||
throw new CloudRuntimeException("Unknown resource event:" + event);
|
||||
}
|
||||
s_logger.debug("Sent resource event " + eventName + " to listener " + l.getName());
|
||||
s_logger.debug("Sent resource event " + eventName + " to listener " + l.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue