Package nds2

Class connection

java.lang.Object
nds2.connection
All Implemented Interfaces:
Closeable, AutoCloseable

public class connection extends Object implements Closeable

A connection to the NDS/NDS2 server

The connection object is used to interact with the NDS (v1 or v2) servers to retrieve
data and channel lists.
Connnection objects have a few main categories of methods:
1. Data retreival (fetch and iterate)
2. Channel listing (find_channels)

In addition there are methods designed to deal with the volume of data and channels in a NDS2 server:
1. Setting limits/epochs on requests (get_epoch, set_epoch, current_epoch)
2. Channel availability checking (get_availability)

  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
    • PROTOCOL_INVALID

      public static final int PROTOCOL_INVALID
    • PROTOCOL_ONE

      public static final int PROTOCOL_ONE
    • PROTOCOL_TWO

      public static final int PROTOCOL_TWO
    • PROTOCOL_TRY

      public static final int PROTOCOL_TRY
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
    • FAST_STRIDE

      public static final int FAST_STRIDE
    • AUTO_STRIDE

      public static final int AUTO_STRIDE
  • Constructor Details

    • connection

      protected connection(long cPtr, boolean cMemoryOwn)
    • connection

      public connection(String host, int port, int protocol)
    • connection

      public connection(String host, int port)
    • connection

      public connection(String host)
    • connection

      public connection(parameters params)
    • connection

      public connection()
  • Method Details