Class JBusServer

java.lang.Object
java.lang.Thread
javaforce.jbus.JBusServer
All Implemented Interfaces:
Runnable

public class JBusServer extends Thread
  • Field Details

    • port

      public static int port
    • ready

      public static volatile boolean ready
  • Constructor Details

    • JBusServer

      public JBusServer()
      Create new server on port 777.
    • JBusServer

      public JBusServer(int port)
      Create new server on specified port.
  • Method Details

    • getClientCount

      public int getClientCount()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • close

      public void close()
      Close down server.
    • ready

      public boolean ready()
      Returns server ready state.
    • broadcast

      public void broadcast(String pack, String func, String args)
      Broadcasts to call clients that start with the pack.
    • present

      public static boolean present()
      Checks if a JBusServer is running.
    • main

      public static void main(String[] args)
    • serviceStart

      public static void serviceStart(String[] args)
    • serviceStop

      public static void serviceStop()