"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.server
Class NetworkTableServer

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.NetworkTableNode
      extended by edu.wpi.first.wpilibj.networktables2.server.NetworkTableServer
All Implemented Interfaces:
AbstractNetworkTableEntryStore.TableListenerManager, ClientConnectionListenerManager, ServerIncomingConnectionListener, IRemote

public class NetworkTableServer
extends NetworkTableNode
implements ServerIncomingConnectionListener

A server node in NetworkTables 2.0

Author:
Mitchell

Field Summary
 
Fields inherited from class edu.wpi.first.wpilibj.networktables2.NetworkTableNode
entryStore
 
Constructor Summary
NetworkTableServer(IOStreamProvider streamProvider)
          Create a NetworkTable Server
NetworkTableServer(IOStreamProvider streamProvider, NetworkTableEntryTypeManager typeManager, NTThreadManager threadManager)
          Create a NetworkTable Server
 
Method Summary
 void close()
          close all networking activity related to this node
 boolean isConnected()
          Get the current state of the objects connection
 boolean isServer()
          If the object is acting as a server
 void onNewConnection(ServerConnectionAdapter connectionAdapter)
          Called on create of a new connection
 
Methods inherited from class edu.wpi.first.wpilibj.networktables2.NetworkTableNode
addConnectionListener, addTableListener, containsKey, fireConnectedEvent, fireDisconnectedEvent, fireTableListeners, getBoolean, getDouble, getEntryStore, getString, getValue, init, putBoolean, putComplex, putDouble, putString, putValue, putValue, putValue, removeConnectionListener, removeTableListener, retrieveValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkTableServer

public NetworkTableServer(IOStreamProvider streamProvider,
                          NetworkTableEntryTypeManager typeManager,
                          NTThreadManager threadManager)
Create a NetworkTable Server

Parameters:
streamProvider -
threadManager -
transactionPool -

NetworkTableServer

public NetworkTableServer(IOStreamProvider streamProvider)
Create a NetworkTable Server

Parameters:
streamProvider -
Method Detail

close

public void close()
Description copied from class: NetworkTableNode
close all networking activity related to this node

Specified by:
close in class NetworkTableNode

onNewConnection

public void onNewConnection(ServerConnectionAdapter connectionAdapter)
Description copied from interface: ServerIncomingConnectionListener
Called on create of a new connection

Specified by:
onNewConnection in interface ServerIncomingConnectionListener
Parameters:
connectionAdapter - the server connection adapter

isConnected

public boolean isConnected()
Description copied from interface: IRemote
Get the current state of the objects connection

Specified by:
isConnected in interface IRemote
Returns:
the current connection state

isServer

public boolean isServer()
Description copied from interface: IRemote
If the object is acting as a server

Specified by:
isServer in interface IRemote
Returns:
if the object is a server

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"