Class NetworkTablesJNI


  • public final class NetworkTablesJNI
    extends Object
    • Constructor Detail

      • NetworkTablesJNI

        public NetworkTablesJNI()
    • Method Detail

      • getDefaultInstance

        public static int getDefaultInstance()
      • createInstance

        public static int createInstance()
      • destroyInstance

        public static void destroyInstance​(int inst)
      • getInstanceFromHandle

        public static int getInstanceFromHandle​(int handle)
      • getEntry

        public static int getEntry​(int inst,
                                   String key)
      • getEntries

        public static int[] getEntries​(int inst,
                                       String prefix,
                                       int types)
      • getEntryName

        public static String getEntryName​(int entry)
      • getEntryLastChange

        public static long getEntryLastChange​(int entry)
      • getType

        public static int getType​(int entry)
      • setBoolean

        public static boolean setBoolean​(int entry,
                                         long time,
                                         boolean value,
                                         boolean force)
      • setDouble

        public static boolean setDouble​(int entry,
                                        long time,
                                        double value,
                                        boolean force)
      • setString

        public static boolean setString​(int entry,
                                        long time,
                                        String value,
                                        boolean force)
      • setRaw

        public static boolean setRaw​(int entry,
                                     long time,
                                     byte[] value,
                                     boolean force)
      • setRaw

        public static boolean setRaw​(int entry,
                                     long time,
                                     ByteBuffer value,
                                     int len,
                                     boolean force)
      • setBooleanArray

        public static boolean setBooleanArray​(int entry,
                                              long time,
                                              boolean[] value,
                                              boolean force)
      • setDoubleArray

        public static boolean setDoubleArray​(int entry,
                                             long time,
                                             double[] value,
                                             boolean force)
      • setStringArray

        public static boolean setStringArray​(int entry,
                                             long time,
                                             String[] value,
                                             boolean force)
      • getBoolean

        public static boolean getBoolean​(int entry,
                                         boolean defaultValue)
      • getDouble

        public static double getDouble​(int entry,
                                       double defaultValue)
      • getString

        public static String getString​(int entry,
                                       String defaultValue)
      • getRaw

        public static byte[] getRaw​(int entry,
                                    byte[] defaultValue)
      • getBooleanArray

        public static boolean[] getBooleanArray​(int entry,
                                                boolean[] defaultValue)
      • getDoubleArray

        public static double[] getDoubleArray​(int entry,
                                              double[] defaultValue)
      • getStringArray

        public static String[] getStringArray​(int entry,
                                              String[] defaultValue)
      • setDefaultBoolean

        public static boolean setDefaultBoolean​(int entry,
                                                long time,
                                                boolean defaultValue)
      • setDefaultDouble

        public static boolean setDefaultDouble​(int entry,
                                               long time,
                                               double defaultValue)
      • setDefaultString

        public static boolean setDefaultString​(int entry,
                                               long time,
                                               String defaultValue)
      • setDefaultRaw

        public static boolean setDefaultRaw​(int entry,
                                            long time,
                                            byte[] defaultValue)
      • setDefaultBooleanArray

        public static boolean setDefaultBooleanArray​(int entry,
                                                     long time,
                                                     boolean[] defaultValue)
      • setDefaultDoubleArray

        public static boolean setDefaultDoubleArray​(int entry,
                                                    long time,
                                                    double[] defaultValue)
      • setDefaultStringArray

        public static boolean setDefaultStringArray​(int entry,
                                                    long time,
                                                    String[] defaultValue)
      • setEntryFlags

        public static void setEntryFlags​(int entry,
                                         int flags)
      • getEntryFlags

        public static int getEntryFlags​(int entry)
      • deleteEntry

        public static void deleteEntry​(int entry)
      • deleteAllEntries

        public static void deleteAllEntries​(int inst)
      • createEntryListenerPoller

        public static int createEntryListenerPoller​(int inst)
      • destroyEntryListenerPoller

        public static void destroyEntryListenerPoller​(int poller)
      • addPolledEntryListener

        public static int addPolledEntryListener​(int poller,
                                                 String prefix,
                                                 int flags)
      • addPolledEntryListener

        public static int addPolledEntryListener​(int poller,
                                                 int entry,
                                                 int flags)
      • cancelPollEntryListener

        public static void cancelPollEntryListener​(int poller)
      • removeEntryListener

        public static void removeEntryListener​(int entryListener)
      • waitForEntryListenerQueue

        public static boolean waitForEntryListenerQueue​(int inst,
                                                        double timeout)
      • createConnectionListenerPoller

        public static int createConnectionListenerPoller​(int inst)
      • destroyConnectionListenerPoller

        public static void destroyConnectionListenerPoller​(int poller)
      • addPolledConnectionListener

        public static int addPolledConnectionListener​(int poller,
                                                      boolean immediateNotify)
      • cancelPollConnectionListener

        public static void cancelPollConnectionListener​(int poller)
      • removeConnectionListener

        public static void removeConnectionListener​(int connListener)
      • waitForConnectionListenerQueue

        public static boolean waitForConnectionListenerQueue​(int inst,
                                                             double timeout)
      • createRpcCallPoller

        public static int createRpcCallPoller​(int inst)
      • destroyRpcCallPoller

        public static void destroyRpcCallPoller​(int poller)
      • createPolledRpc

        public static void createPolledRpc​(int entry,
                                           byte[] def,
                                           int poller)
      • cancelPollRpc

        public static void cancelPollRpc​(int poller)
      • waitForRpcCallQueue

        public static boolean waitForRpcCallQueue​(int inst,
                                                  double timeout)
      • postRpcResponse

        public static boolean postRpcResponse​(int entry,
                                              int call,
                                              byte[] result)
      • callRpc

        public static int callRpc​(int entry,
                                  byte[] params)
      • getRpcResult

        public static byte[] getRpcResult​(int entry,
                                          int call)
      • getRpcResult

        public static byte[] getRpcResult​(int entry,
                                          int call,
                                          double timeout)
      • cancelRpcResult

        public static void cancelRpcResult​(int entry,
                                           int call)
      • getRpc

        public static byte[] getRpc​(int entry,
                                    byte[] defaultValue)
      • setNetworkIdentity

        public static void setNetworkIdentity​(int inst,
                                              String name)
      • getNetworkMode

        public static int getNetworkMode​(int inst)
      • startServer

        public static void startServer​(int inst,
                                       String persistFilename,
                                       String listenAddress,
                                       int port)
      • stopServer

        public static void stopServer​(int inst)
      • startClient

        public static void startClient​(int inst)
      • startClient

        public static void startClient​(int inst,
                                       String serverName,
                                       int port)
      • startClient

        public static void startClient​(int inst,
                                       String[] serverNames,
                                       int[] ports)
      • startClientTeam

        public static void startClientTeam​(int inst,
                                           int team,
                                           int port)
      • stopClient

        public static void stopClient​(int inst)
      • setServer

        public static void setServer​(int inst,
                                     String serverName,
                                     int port)
      • setServer

        public static void setServer​(int inst,
                                     String[] serverNames,
                                     int[] ports)
      • setServerTeam

        public static void setServerTeam​(int inst,
                                         int team,
                                         int port)
      • startDSClient

        public static void startDSClient​(int inst,
                                         int port)
      • stopDSClient

        public static void stopDSClient​(int inst)
      • setUpdateRate

        public static void setUpdateRate​(int inst,
                                         double interval)
      • flush

        public static void flush​(int inst)
      • getConnections

        public static ConnectionInfo[] getConnections​(int inst)
      • isConnected

        public static boolean isConnected​(int inst)
      • now

        public static long now()
      • createLoggerPoller

        public static int createLoggerPoller​(int inst)
      • destroyLoggerPoller

        public static void destroyLoggerPoller​(int poller)
      • addPolledLogger

        public static int addPolledLogger​(int poller,
                                          int minLevel,
                                          int maxLevel)
      • cancelPollLogger

        public static void cancelPollLogger​(int poller)
      • removeLogger

        public static void removeLogger​(int logger)
      • waitForLoggerQueue

        public static boolean waitForLoggerQueue​(int inst,
                                                 double timeout)