Class AdminClient

java.lang.Object
org.jgroups.admin.AdminClient
All Implemented Interfaces:
Receiver

public class AdminClient extends Object implements Receiver
Since:
x.y
Author:
Bela Ban
  • Field Details

    • timeout

      protected long timeout
  • Constructor Details

    • AdminClient

      public AdminClient()
  • Method Details

    • start

      protected void start(InetAddress addr, int port, String command, long timeout) throws Exception
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • help

      protected static void help()
    • receive

      public void receive(Address sender, byte[] buf, int offset, int length)
      Description copied from interface: Receiver
      Delivers a message from a given sender to the application
      Specified by:
      receive in interface Receiver
      Parameters:
      sender - The sender of the message
      buf - The buffer. An application typically de-serializes data from the buffer into objects used by the application. Note that when receive() returns, it is not safe to use the buffer any longer; if an application needs to use a buffer after this callback returns, it must make a copy.
      offset - The offset at which the received data starts
      length - The length of the received data
    • receive

      public void receive(Address sender, DataInput in, int length) throws Exception
      Description copied from interface: Receiver
      Receive data from the given sender
      Specified by:
      receive in interface Receiver
      Parameters:
      sender - The sender
      in - The data input from which to read
      length - The number of bytes to read
      Throws:
      Exception