@Override protected AgentConfig performRemoteCall(IAgentService service) throws Exception { return agentService.register(networkInterfaces, agentName, version); } };
@Override protected Void performRemoteCall(IAgentService service) throws Exception { service.unregister(platformIdent); return null; } };
@Override protected Collection<JmxAttributeDescriptor> performRemoteCall(IAgentService service) throws Exception { return agentService.analyzeJmxAttributes(platformIdent, descriptors); } };
/** * {@inheritDoc} */ @Override public int compare(MethodSensorData o1, MethodSensorData o2, ICachedDataService cachedDataService) { if (null == cachedDataService) { return 0; } MethodIdent methodIdent1 = cachedDataService.getMethodIdentForId(o1.getMethodIdent()); MethodIdent methodIdent2 = cachedDataService.getMethodIdentForId(o2.getMethodIdent()); if ((null != methodIdent1) && (null != methodIdent2)) { return compare(methodIdent1, methodIdent2); } else { return 0; } }
/** * Service for management of the agents instrumentation. * * @author Marius Oehler * */ @ServiceInterface(exporter = ServiceExporterType.HTTP) public interface IAgentInstrumentationService { /** * Triggers the update process of the instrumentation for the given platforms. If a given * platform has pending instrumentation they are applied. The {@link InstrumentationStatus} of * the given platforms are {@link InstrumentationStatus#UP_TO_DATE} after this method returned. * * @param updatePlatformIds * {@link Collection} of IDs of {@link PlatformIdent}s to update */ void updateInstrumentation(Collection<Long> updatePlatformIds); }
/** * {@inheritDoc} */ @Override public String[] getStringValues(InvocationSequenceData invocSequence, ICachedDataService cachedDataService) { PlatformIdent pIdent = cachedDataService.getPlatformIdentForId(invocSequence.getPlatformIdent()); if (null != pIdent) { return new String[] { pIdent.getAgentName() }; } else { return new String[0]; } }
/** * {@inheritDoc} */ @Override protected Void performRemoteCall(IAgentStorageService remoteObject) { remoteObject.addDataObjects(dataObjects); return null; }
/** * {@inheritDoc} */ @Override protected Void performRemoteCall(IAgentService remoteObject) throws Exception { remoteObject.instrumentationApplied(platformIdent, methodToSensorMap); return null; }
@Override protected InstrumentationDefinition performRemoteCall(IAgentService service) throws Exception { return agentService.analyze(platformIdent, hash, type); } };
@Override protected List<IAgentMessage<?>> performRemoteCall(IAgentService service) throws Exception { return agentService.fetchAgentMessages(platformIdent); } };
@Override protected Void performRemoteCall(IKeepAliveService service) { service.sendKeepAlive(platformId); return null; } };
/** * {@inheritDoc} */ @Override public String[] getStringValues(InvocationSequenceData invocSequence, ICachedDataService cachedDataService) { MethodIdent mIdent = cachedDataService.getMethodIdentForId(invocSequence.getMethodIdent()); if (null != mIdent) { return new String[] { mIdent.getFullyQualifiedMethodSignature() }; } else { return new String[0]; } }
/** * This service is used by the Agents to send their data objects to and it is used by all the * graphical interfaces to request these data objects and a part of the domain model. * * @author Patrice Bouillet * */ @ServiceInterface(exporter = ServiceExporterType.RMI, serviceId = 2) public interface IAgentStorageService extends Remote { /** * Data Objects are used for all transmissions between the Agent(s), the CMR and the user * interface. * * @param dataObjects * The list containing all the data objects. */ void addDataObjects(List<? extends DefaultData> dataObjects); }
/** * {@inheritDoc} */ @Override protected Comparable<?> getSeriesKey(TimerData template) { MethodIdent methodIdent = cachedDataService.getMethodIdentForId(template.getMethodIdent()); return TextFormatter.getMethodString(methodIdent); }
@ServiceInterface(exporter = ServiceExporterType.HTTP) public interface ITimerDataAccessService {
@ServiceInterface(exporter = ServiceExporterType.RMI, serviceId = 3) public interface IKeepAliveService extends Remote {
@ServiceInterface(exporter = ServiceExporterType.HTTP) public interface IJmxDataAccessService {
@ServiceInterface(exporter = ServiceExporterType.HTTP) public interface ISpanService {
@ServiceInterface(exporter = ServiceExporterType.HTTP) public interface IInfluxDBService {
@ServiceInterface(exporter = ServiceExporterType.HTTP) public interface ICmrManagementService {