/** * {@inheritDoc} */ @Override public String toString() { if (null != getPathToContinue()) { return "[" + getName() + "] " + getPathToContinue().toString(); } else { return "[" + getName() + "]"; } }
/** * {@inheritDoc} */ @Override public SubstitutionDescriptor getSubstitutionDescriptor() { return new SubstitutionDescriptor(false, true); } }
/** * {@inheritDoc} */ @Override public String toString() { return getId() + " :: name: " + name + " (" + priority + ")"; }
/** * {@inheritDoc} */ @Override public PropertyPathStart getPropertyPathStart() { PropertyPathStart propertyPathStart = new PropertyPathStart(); propertyPathStart.setName(getDisplayName()); propertyPathStart.setContentType(ParameterContentType.FIELD); // create field navigation PropertyPath fieldPath = new PropertyPath(); fieldPath.setName(fieldName); addPaths(fieldPath); // connect to the start and return propertyPathStart.setPathToContinue(fieldPath); return propertyPathStart; }
/** * {@inheritDoc} */ protected void applyAssignment(AgentConfig agentConfiguration, SensorInstrumentationPoint sensorInstrumentationPoint) { // there can be only one exception sensor so I just take the id ExceptionSensorTypeConfig exceptionSensorTypeConfig = agentConfiguration.getExceptionSensorTypeConfig(); long sensorId = exceptionSensorTypeConfig.getId(); // set to rsc sensorInstrumentationPoint.addSensorId(sensorId, exceptionSensorTypeConfig.getPriority()); // add all settings sensorInstrumentationPoint.addSettings(exceptionSensorAssignment.getSettings()); }
/** * {@inheritDoc} */ protected void applyAssignment(AgentConfig agentConfiguration, SensorInstrumentationPoint sensorInstrumentationPoint) { // first deal with sensor id MethodSensorTypeConfig methodSensorTypeConfig = getSensorTypeConfigFromConfiguration(agentConfiguration, environment, methodSensorAssignment); long sensorId = methodSensorTypeConfig.getId(); // set to rsc sensorInstrumentationPoint.addSensorId(sensorId, methodSensorTypeConfig.getPriority()); // add all settings sensorInstrumentationPoint.addSettings(methodSensorAssignment.getSettings()); }
/** * {@inheritDoc} */ @Override public String toString() { return getId() + " :: class: " + getClassName(); }
/** * {@inheritDoc} */ @Override public String toString() { return getId() + " :: class: " + getClassName(); }
/** * {@inheritDoc} */ @Override protected void applyAssignment(AgentConfig agentConfiguration, MethodType methodType, MethodInstrumentationConfig methodInstrumentationConfig) { SpecialInstrumentationPoint specialInstrumentationPoint = getOrCreateSpecialInstrumentationPoint(agentConfiguration, methodType, methodInstrumentationConfig); MethodSensorTypeConfig methodSensorTypeConfig = getSensorTypeConfigFromConfiguration(agentConfiguration); long sensorId = methodSensorTypeConfig.getId(); specialInstrumentationPoint.setSensorId(sensorId); specialInstrumentationPoint.setSubstitutionDescriptor(functionalAssignment.getSpecialMethodSensorConfig().getSubstitutionDescriptor()); }
/** * {@inheritDoc} */ @Override public boolean isEnhancedExceptionSensorActivated() throws StorageException { ensureConfigurationExists(); if (isExceptionSensorActivated()) { return agentConfiguration.getExceptionSensorTypeConfig().isEnhanced(); } return false; }
/** * {@inheritDoc} */ @Override public PropertyPathStart getPropertyPathStart() { PropertyPathStart propertyPathStart = new PropertyPathStart(); propertyPathStart.setName(getDisplayName()); propertyPathStart.setContentType(ParameterContentType.RETURN); addPaths(propertyPathStart); return propertyPathStart; }
/** * {@inheritDoc} */ @Override public ExceptionSensorTypeConfig getExceptionSensorType() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getExceptionSensorTypeConfig(); }
/** * {@inheritDoc} */ @Override public RetransformationStrategy getRetransformStrategy() throws StorageException { ensureConfigurationExists(); return agentConfiguration.getRetransformationStrategy(); }
@Override public Collection<JmxAttributeDescriptor> answer(InvocationOnMock invocation) throws Throwable { Collection<JmxAttributeDescriptor> descriptors = (Collection<JmxAttributeDescriptor>) invocation.getArguments()[1]; for (JmxAttributeDescriptor d : descriptors) { d.setId(definitionDataIdentId); } return descriptors; } });
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + (int) (this.id ^ (this.id >>> 32)); result = (prime * result) + (int) (this.sensorId ^ (this.sensorId >>> 32)); result = (prime * result) + ((this.substitutionDescriptor == null) ? 0 : this.substitutionDescriptor.hashCode()); return result; }
/** * {@inheritDoc} */ @Override public String toString() { if (null != pathToContinue) { return name + "-->" + pathToContinue.toString(); } else { return name; } }
/** * {@inheritDoc} */ @Override public SubstitutionDescriptor getSubstitutionDescriptor() { // we just use for intercepting, no substitutions return new SubstitutionDescriptor(false, false); }
/** * {@inheritDoc} */ @Override public SubstitutionDescriptor getSubstitutionDescriptor() { return new SubstitutionDescriptor(true, true); }
/** * {@inheritDoc} */ @Override public SubstitutionDescriptor getSubstitutionDescriptor() { return new SubstitutionDescriptor(false, true); } }
/** * {@inheritDoc} */ @Override public SubstitutionDescriptor getSubstitutionDescriptor() { return new SubstitutionDescriptor(true, false); }