Class GetNeighborsSampleReply
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoReply
pt.unl.fct.di.novasys.babel.protocols.membership.requests.GetNeighborsSampleReply
public class GetNeighborsSampleReply
extends pt.unl.fct.di.novasys.babel.generic.ProtoReply
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
pt.unl.fct.di.novasys.babel.generic.ProtoIPC.Type -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetNeighborsSampleReply(int maxSampleSize) GetNeighborsSampleReply(Collection<? extends pt.unl.fct.di.novasys.network.data.Host> peers) GetNeighborsSampleReply(Set<? extends pt.unl.fct.di.novasys.network.data.Host> peers) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddToSample(pt.unl.fct.di.novasys.network.data.Host h) Iterator<? extends pt.unl.fct.di.novasys.network.data.Host> intgetSize()Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoReply
getIdMethods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC
getType
-
Field Details
-
REPLY_ID
public static final short REPLY_ID- See Also:
-
-
Constructor Details
-
GetNeighborsSampleReply
public GetNeighborsSampleReply(int maxSampleSize) -
GetNeighborsSampleReply
-
GetNeighborsSampleReply
-
-
Method Details
-
getSize
public int getSize() -
addToSample
public boolean addToSample(pt.unl.fct.di.novasys.network.data.Host h) -
getSampleIterator
-