Class PublishedSource


  • public class PublishedSource
    extends java.lang.Object
    • Field Detail

      • MAX_SAMPLE_MESSAGE_SIZE

        protected static final int MAX_SAMPLE_MESSAGE_SIZE
        See Also:
        Constant Field Values
      • name

        protected java.lang.String name
      • sampleSize

        protected int sampleSize
      • sample

        protected float[] sample
      • frequency

        protected float frequency
      • host

        protected java.lang.String host
      • port

        protected int port
      • timeStamp

        protected long timeStamp
      • formatter

        protected java.text.DateFormat formatter
      • ipAddress

        protected java.lang.String ipAddress
      • socket

        protected java.net.Socket socket
      • dis

        protected java.io.DataInputStream dis
    • Constructor Detail

      • PublishedSource

        public PublishedSource​(java.lang.String ipAddress,
                               byte[] message)
                        throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • connect

        public SubscribedProvider connect()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • sampleSize

        public int sampleSize()
      • getName

        public java.lang.String getName()
      • getFrequency

        public float getFrequency()
      • getHost

        public java.lang.String getHost()
      • getTime

        public java.lang.String getTime()
      • getKey

        public java.lang.String getKey()
      • getIpAddress

        public java.lang.String getIpAddress()
      • getPort

        public int getPort()
      • getTimeStamp

        public long getTimeStamp()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getSources

        public static java.util.Collection<PublishedSource> getSources()