Hi,
I created a Topo listener and it is running on FE server as a separate thread. Update method is invoked on events like addition or update but never on MO deletion. MOs are deleted exclusively using TopoAPI methods:
deleteObjectAndSubElements(String objKey);
deleteObject(ManagedObject obj, boolean deleteSubElements, boolean dealWithLocks);
the class itself:
public class TopoListner implements TopoActionListener, RunProcessInterface
{
private boolean isInitialized = false;
@Override
public void callMain(String[] args)
{
TopoAPI topo = (TopoAPI) NmsUtil.getAPI("TopoAPI");
try
{
topo.register(this);
}
catch (Exception e)
{
Log.exception("Couldn't create TopoListener process, topo.register() failed ", e);
return;
}
isInitialized = true;
}
@Override
public void update(TopoNotificationEvent event) throws RemoteException
{
String eventType = event.getUpdateType();
Log.debug("=== TopoListener === eventType is [" + eventType + "]");
}
@Override
public boolean isInitialized()
{
return isInitialized;
}
@Override
public void shutDown()
{
// Nothing to do on shutdown
}
}
Am I doing something wrong or is this a bug? Considering it a bug, is there a workaround?
Regards,
Tom