Top Inners Fields Constructors Methods
org.eclipse.jetty.io

public Class IncludeExcludeConnectionStatistics

extends ConnectionStatistics
Class Inheritance
Imports
java.util.AbstractSet, .HashSet, .Iterator, .Set, java.util.function.Predicate, org.eclipse.jetty.util.IncludeExcludeSet

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final IncludeExcludeSet<Class<? extends Connection>, Connection>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Class<? extends Connection>
public void
exclude(String className)

public void
exclude(Class<? extends Connection> clazz)

public void
include(String className)

public void
include(Class<? extends Connection> clazz)

public void
public void
Inherited from org.eclipse.jetty.io.ConnectionStatistics:
doStartdumpgetConnectionDurationMaxgetConnectionDurationMeangetConnectionDurationStdDevgetConnectionsgetConnectionsMaxgetConnectionStatisticsGroupsgetConnectionsTotalgetReceivedBytesgetReceivedBytesRategetReceivedMessagesgetReceivedMessagesRategetSentBytesgetSentBytesRategetSentMessagesgetSentMessagesRateonConnectionClosedonConnectionOpenedonTotalClosedonTotalOpenedresettoString

Field Detail

_setback to summary
private final IncludeExcludeSet<Class<? extends Connection>, Connection> _set

Constructor Detail

IncludeExcludeConnectionStatisticsback to summary
public IncludeExcludeConnectionStatistics()

Method Detail

connectionForNameback to summary
private Class<? extends Connection> connectionForName(String className) throws ClassNotFoundException
excludeback to summary
public void exclude(String className) throws ClassNotFoundException
excludeback to summary
public void exclude(Class<? extends Connection> clazz)
includeback to summary
public void include(String className) throws ClassNotFoundException
includeback to summary
public void include(Class<? extends Connection> clazz)
onClosedback to summary
public void onClosed(Connection connection)

Overrides org.eclipse.jetty.io.ConnectionStatistics.onClosed.

Overrides default org.eclipse.jetty.io.Connection.Listener.onClosed.

Annotations
@Override
onOpenedback to summary
public void onOpened(Connection connection)

Overrides org.eclipse.jetty.io.ConnectionStatistics.onOpened.

Overrides default org.eclipse.jetty.io.Connection.Listener.onOpened.

Annotations
@Override
org.eclipse.jetty.io back to summary

public Class IncludeExcludeConnectionStatistics.ConnectionSet

extends AbstractSet<Class<? extends Connection>>
implements Predicate<Connection>
Class Inheritance
All Implemented Interfaces
java.util.function.Predicate

Field Summary

Modifier and TypeField and Description
private final Set<Class<? extends Connection>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
add(Class<? extends Connection>
element to be added to this set
aClass
)

Overrides java.util.AbstractCollection.add.

Implements java.util.Set.add, java.util.Collection.add.

Adds the specified element to this set if it is not already present (optional operation).

public Iterator<Class<? extends Connection>>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Returns an iterator over the elements in this set.

public boolean
remove(Object
object to be removed from this set, if present
o
)

Overrides java.util.AbstractCollection.remove.

Implements java.util.Set.remove, java.util.Collection.remove.

Removes the specified element from this set if it is present (optional operation).

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Returns the number of elements in this set (its cardinality).

public boolean
test(Connection
the input argument
connection
)

Implements java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Inherited from java.util.AbstractSet:
equalshashCoderemoveAll

Field Detail

setback to summary
private final Set<Class<? extends Connection>> set

Constructor Detail

ConnectionSetback to summary
public ConnectionSet()

Method Detail

addback to summary
public boolean add(Class<? extends Connection> aClass)

Overrides java.util.AbstractCollection.add.

Implements java.util.Set.add, java.util.Collection.add.

Doc from java.util.Set.add.

Adds the specified element to this set if it is not already present (optional operation). More formally, adds the specified element e to this set if the set contains no element e2 such that Objects.equals(e, e2). If this set already contains the element, the call leaves the set unchanged and returns false. In combination with the restriction on constructors, this ensures that sets never contain duplicate elements.

The stipulation above does not imply that sets must accept all elements; sets may refuse to add any particular element, including null, and throw an exception, as described in the specification for Collection.add. Individual set implementations should clearly document any restrictions on the elements that they may contain.

Parameters
aClass:Class<? extends Connection>

element to be added to this set

Returns:boolean

true if this set did not already contain the specified element

Annotations
@Override
iteratorback to summary
public Iterator<Class<? extends Connection>> iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Doc from java.util.Set.iterator.

Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).

Returns:Iterator<Class<? extends Connection>>

an iterator over the elements in this set

Annotations
@Override
removeback to summary
public boolean remove(Object o)

Overrides java.util.AbstractCollection.remove.

Implements java.util.Set.remove, java.util.Collection.remove.

Doc from java.util.Set.remove.

Removes the specified element from this set if it is present (optional operation). More formally, removes an element e such that Objects.equals(o, e), if this set contains such an element. Returns true if this set contained the element (or equivalently, if this set changed as a result of the call). (This set will not contain the element once the call returns.)

Parameters
o:Object

object to be removed from this set, if present

Returns:boolean

true if this set contained the specified element

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Doc from java.util.Set.size.

Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this set (its cardinality)

Annotations
@Override
testback to summary
public boolean test(Connection connection)

Implements java.util.function.Predicate.test.

Doc from java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Parameters
connection:Connection

the input argument

Returns:boolean

true if the input argument matches the predicate, otherwise false

Annotations
@Override