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
    Modifier and Type
    Field
    Description
    static final short
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GetNeighborsSampleReply(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 Type
    Method
    Description
    boolean
    addToSample(pt.unl.fct.di.novasys.network.data.Host h)
     
    Iterator<? extends pt.unl.fct.di.novasys.network.data.Host>
     
    int
     

    Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoReply

    getId

    Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoIPC

    getType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • GetNeighborsSampleReply

      public GetNeighborsSampleReply(int maxSampleSize)
    • GetNeighborsSampleReply

      public GetNeighborsSampleReply(Collection<? extends pt.unl.fct.di.novasys.network.data.Host> peers)
    • GetNeighborsSampleReply

      public GetNeighborsSampleReply(Set<? extends pt.unl.fct.di.novasys.network.data.Host> peers)
  • Method Details

    • getSize

      public int getSize()
    • addToSample

      public boolean addToSample(pt.unl.fct.di.novasys.network.data.Host h)
    • getSampleIterator

      public Iterator<? extends pt.unl.fct.di.novasys.network.data.Host> getSampleIterator()