Package org.apache.synapse.aspects
Class AspectConfiguration
- java.lang.Object
-
- org.apache.synapse.aspects.AspectConfiguration
-
- All Implemented Interfaces:
StatisticsConfigurable,Identifiable
public class AspectConfiguration extends Object implements StatisticsConfigurable, Identifiable
Aspect configuration Currently contains only statistics configuration related things
-
-
Constructor Summary
Constructors Constructor Description AspectConfiguration(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableStatistics()To disable statisticsvoiddisableTracing()To disable tracingvoidenableStatistics()To enable statisticsvoidenableTracing()To enable tracingIntegergetHashCode()StringgetId()Get the identifier of an abstractionStringgetUniqueId()booleanisStatisticsEnable()Whether statistics has been enabledbooleanisTracingEnabled()Whether Tracing has been enabledvoidsetHashCode(String hashCode)voidsetId(String id)voidsetStatisticsEnable(boolean statisticsEnable)voidsetTracingEnabled(boolean tracingEnabled)voidsetUniqueId(String uniqueId)
-
-
-
Constructor Detail
-
AspectConfiguration
public AspectConfiguration(String id)
-
-
Method Detail
-
isStatisticsEnable
public boolean isStatisticsEnable()
Description copied from interface:StatisticsConfigurableWhether statistics has been enabled- Specified by:
isStatisticsEnablein interfaceStatisticsConfigurable- Returns:
- True if enable , o.w , false
-
disableStatistics
public void disableStatistics()
Description copied from interface:StatisticsConfigurableTo disable statistics- Specified by:
disableStatisticsin interfaceStatisticsConfigurable
-
enableStatistics
public void enableStatistics()
Description copied from interface:StatisticsConfigurableTo enable statistics- Specified by:
enableStatisticsin interfaceStatisticsConfigurable
-
isTracingEnabled
public boolean isTracingEnabled()
Description copied from interface:StatisticsConfigurableWhether Tracing has been enabled- Specified by:
isTracingEnabledin interfaceStatisticsConfigurable- Returns:
- True if enable , else false
-
disableTracing
public void disableTracing()
Description copied from interface:StatisticsConfigurableTo disable tracing- Specified by:
disableTracingin interfaceStatisticsConfigurable
-
enableTracing
public void enableTracing()
Description copied from interface:StatisticsConfigurableTo enable tracing- Specified by:
enableTracingin interfaceStatisticsConfigurable
-
getId
public String getId()
Description copied from interface:IdentifiableGet the identifier of an abstraction- Specified by:
getIdin interfaceIdentifiable- Returns:
- String Representation of ID
-
setStatisticsEnable
public void setStatisticsEnable(boolean statisticsEnable)
-
setTracingEnabled
public void setTracingEnabled(boolean tracingEnabled)
-
setId
public void setId(String id)
-
getUniqueId
public String getUniqueId()
- Specified by:
getUniqueIdin interfaceStatisticsConfigurable
-
setUniqueId
public void setUniqueId(String uniqueId)
- Specified by:
setUniqueIdin interfaceStatisticsConfigurable
-
setHashCode
public void setHashCode(String hashCode)
- Specified by:
setHashCodein interfaceStatisticsConfigurable
-
getHashCode
public Integer getHashCode()
- Specified by:
getHashCodein interfaceStatisticsConfigurable
-
-