/** * Updates the timestamp of all method idents matching the {@link InstrumentationDefinition}s in * the given message. * * @param platformId * the platform id * @param messages * all agent messages */ private void updateMethodIdentTimestamps(long platformId, List<IAgentMessage<?>> messages) { for (IAgentMessage<?> agentMessage : messages) { if (agentMessage instanceof UpdatedInstrumentationMessage) { UpdatedInstrumentationMessage message = (UpdatedInstrumentationMessage) agentMessage; for (InstrumentationDefinition definition : message.getMessageContent()) { String fqn = definition.getClassName(); int index = fqn.lastIndexOf('.'); String packageName = fqn.substring(0, index); String className = fqn.substring(index + 1, fqn.length()); registrationService.updateMethodIdentTimestamp(platformId, packageName, className); } } } }