Package org.jgroups.protocols
Class Fragmentation
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.Fragmentation
-
-
Field Summary
Fields Modifier and Type Field Description protected int
frag_size
protected java.util.concurrent.atomic.LongAdder
num_frags_received
protected java.util.concurrent.atomic.LongAdder
num_frags_sent
-
Fields inherited from class org.jgroups.stack.Protocol
after_creation_hook, down_prot, ergonomics, id, local_addr, log, policies, stack, stats, up_prot
-
-
Constructor Summary
Constructors Constructor Description Fragmentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFragSize()
long
getNumberOfReceivedFragments()
long
getNumberOfSentFragments()
void
resetStats()
<T extends Fragmentation>
TsetFragSize(int f)
-
Methods inherited from class org.jgroups.stack.Protocol
accept, addPolicy, addr, addr, afterCreationHook, destroy, down, down, down, enableStats, getAddress, getComponents, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getPolicies, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, init, isErgonomics, level, parse, policies, providedDownServices, providedUpServices, removePolicy, requiredDownServices, requiredUpServices, resetStatistics, setAddress, setDownProtocol, setErgonomics, setId, setLevel, setPolicies, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, stop, toString, up, up, up
-
-
-
-
Method Detail
-
getFragSize
public int getFragSize()
-
setFragSize
public <T extends Fragmentation> T setFragSize(int f)
-
getNumberOfSentFragments
public long getNumberOfSentFragments()
-
getNumberOfReceivedFragments
public long getNumberOfReceivedFragments()
-
resetStats
public void resetStats()
- Overrides:
resetStats
in classProtocol
-
-