Class JFTP.ChanSet

java.lang.Object
org.jcsp.net.dynamic.JFTP.ChanSet
Enclosing class:
JFTP

private static class JFTP.ChanSet extends Object
Implementation of a set type structure for holding ChannelOutput objects with a flag to indicate that the request set is currently being processed.
  • Field Details

    • set

      private Vector set
      Holds the ChannelOutput objects.
    • beingProcessed

      private boolean beingProcessed
      true if a class is currently being loaded.
  • Constructor Details

    • ChanSet

      public ChanSet(ChannelOutput out)
      Constructs a new ChanSet with an initial entry in the set.
  • Method Details

    • nowBeingProcessed

      public void nowBeingProcessed()
      Sets the flag to indicate that a class is currently being loaded.
    • isBeingProcessed

      public boolean isBeingProcessed()
      Returns true if a class is being loaded by another thread.
    • addRequest

      public void addRequest(ChannelOutput out)
      Adds a request (the channel to reply on) to the set.
      Parameters:
      out - channel to send the reply on.
    • writeToAll

      public void writeToAll(JFTP.ClassReply reply)
      Broadcast the reply to all of the clients in the set.
      Parameters:
      reply - the message to send.