Documentation of 'edu.jas.util.ExecutableServer' Java class
ExecutableServer
edu.jas.util

Class ExecutableServer

  • All Implemented Interfaces:
    java.lang.Runnable


    public class ExecutableServer
    extends java.lang.Thread
    ExecutableServer is used to receive and execute classes.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DEFAULT_PORT
      Default port to listen to.
      static java.lang.String DONE
      Constant to signal completion.
      static java.lang.String STOP
      Constant to request shutdown.
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void init()
      thread initialization and start.
      static void main(java.lang.String[] args)
      main method to start serving thread.
      void run()
      run is main server method.
      int size()
      number of servers.
      void terminate()
      terminate all servers.
      java.lang.String toString()
      String representation.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        Default port to listen to.
        See Also:
        Constant Field Values
      • DONE

        public static final java.lang.String DONE
        Constant to signal completion.
        See Also:
        Constant Field Values
      • STOP

        public static final java.lang.String STOP
        Constant to request shutdown.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExecutableServer

        public ExecutableServer()
        ExecutableServer on default port.
      • ExecutableServer

        public ExecutableServer(int port)
        ExecutableServer.
        Parameters:
        port -
      • ExecutableServer

        public ExecutableServer(ChannelFactory cf)
        ExecutableServer.
        Parameters:
        cf - channel factory to reuse.
    • Method Detail

      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.InterruptedException
        main method to start serving thread.
        Parameters:
        args - args[0] is port
        Throws:
        java.lang.InterruptedException
      • init

        public void init()
        thread initialization and start.
      • size

        public int size()
        number of servers.
      • run

        public void run()
        run is main server method.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • terminate

        public void terminate()
        terminate all servers.
      • toString

        public java.lang.String toString()
        String representation.
        Overrides:
        toString in class java.lang.Thread

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.