Class SharedClientState


  • public class SharedClientState
    extends java.lang.Object
    This class represents
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedClientState​(java.io.PrintStream out, boolean printTuples)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect​(java.lang.String hostname, int port)  
      void disconnect()  
      void doCommand​(java.lang.String commandString)  
      • Methods inherited from class java.lang.Object

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

      • logger

        private static org.apache.logging.log4j.Logger logger
      • socket

        private java.net.Socket socket
      • objectInput

        private java.io.ObjectInputStream objectInput
      • receiverThread

        private java.lang.Thread receiverThread
        This thread receives data from the server asynchronously, and prints out whatever it receives.
      • out

        private java.io.PrintStream out
      • printTuples

        private boolean printTuples
      • semCommandDone

        private java.util.concurrent.Semaphore semCommandDone
      • schema

        private Schema schema
      • objectOutput

        private java.io.ObjectOutputStream objectOutput
        This stream is used to send objects (commands, specifically) to the
    • Constructor Detail

      • SharedClientState

        public SharedClientState​(java.io.PrintStream out,
                                 boolean printTuples)
    • Method Detail

      • connect

        public void connect​(java.lang.String hostname,
                            int port)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • doCommand

        public void doCommand​(java.lang.String commandString)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • disconnect

        public void disconnect()
                        throws java.io.IOException
        Throws:
        java.io.IOException