@Test public void should_count_agent_polls() { service.getConfig(GetConfigRequest1.sample()); verify(agentMetricsService, times(1)).countAgentPoll(); }
@Override @Transactional @Restartable public GetConfigResponse1 getConfig(GetConfigRequest1 request) throws LicenseViolationException { val environment = agentDAO.getEnvironmentName(request.getJvmUuid()).orElse(UNKNOWN_ENVIRONMENT); val request2 = GetConfigRequest2.fromFormat1(request, environment); return GetConfigResponse2.toFormat1(getConfig(request2)); }
AgentServiceImpl implements AgentService { @Override @Transactional @Restartable public GetConfigResponse1 getConfig(GetConfigRequest1 request) throws LicenseViolationException { val environment = agentDAO.getEnvironmentName(request.getJvmUuid()).orElse(UNKNOWN_ENVIRONMENT); val request2 = GetConfigRequest2.fromFormat1(request, environment); return GetConfigResponse2.toFormat1(getConfig(request2)); } }
AgentServiceImpl implements AgentService { @Override @Transactional @Restartable public GetConfigResponse1 getConfig(GetConfigRequest1 request) throws LicenseViolationException { val environment = agentDAO.getEnvironmentName(request.getJvmUuid()).orElse(UNKNOWN_ENVIRONMENT); val request2 = GetConfigRequest2.fromFormat1(request, environment); return GetConfigResponse2.toFormat1(getConfig(request2)); }  }
AgentServiceImpl implements AgentService { @Override @Transactional @Restartable public GetConfigResponse1 getConfig(GetConfigRequest1 request) throws LicenseViolationException { val environment = agentDAO.getEnvironmentName(request.getJvmUuid()).orElse(UNKNOWN_ENVIRONMENT); val request2 = GetConfigRequest2.fromFormat1(request, environment); return GetConfigResponse2.toFormat1(getConfig(request2)); }  @Override @Transactional @Restartable GetConfigResponse1 getConfig(GetConfigRequest1 request); @Override @Transactional @Restartable GetConfigResponse2 getConfig(GetConfigRequest2 request); @Override @Transactional(readOnly = true) File savePublication(
      @NonNull PublicationType publicationType,
      @NonNull String licenseKey,
      String codebaseFingerprint,
      int publicationSize,
      InputStream inputStream); @Override File generatePublicationFile(
      PublicationType publicationType, Long customerId, String correlationId); @Override PublicationType getPublicationTypeFromPublicationFile(File publicationFile); @Override String getCorrelationIdFromPublicationFile(File publicationFile); }
AgentServiceImpl implements AgentService { @Override @Transactional @Restartable public GetConfigResponse1 getConfig(GetConfigRequest1 request) throws LicenseViolationException { val environment = agentDAO.getEnvironmentName(request.getJvmUuid()).orElse(UNKNOWN_ENVIRONMENT); val request2 = GetConfigRequest2.fromFormat1(request, environment); return GetConfigResponse2.toFormat1(getConfig(request2)); }  @Override @Transactional @Restartable GetConfigResponse1 getConfig(GetConfigRequest1 request); @Override @Transactional @Restartable GetConfigResponse2 getConfig(GetConfigRequest2 request); @Override @Transactional(readOnly = true) File savePublication(
      @NonNull PublicationType publicationType,
      @NonNull String licenseKey,
      String codebaseFingerprint,
      int publicationSize,
      InputStream inputStream); @Override File generatePublicationFile(
      PublicationType publicationType, Long customerId, String correlationId); @Override PublicationType getPublicationTypeFromPublicationFile(File publicationFile); @Override String getCorrelationIdFromPublicationFile(File publicationFile); static final String UNKNOWN_ENVIRONMENT; static final Pattern CORRELATION_ID_PATTERN; }