All Packages Class Hierarchy This Package Previous Next Index
Class edu.sunysb.cs.ecsl.videoserver.VSProperties
java.lang.Object
|
+----edu.sunysb.cs.ecsl.videoserver.VSProperties
- public class VSProperties
- extends Object
- implements TextProtocol
manage all specific properties of video server
-
AcquisitionServerN_DefDescr
- default description
-
AcquisitionServerN_IP
-
-
AcquisitionServersNumber
- some parameters for acquisition server
-
allProps
-
-
applicationProps
-
-
DatabaseEngine
- the actual jdbc driver is customizable.
-
DatabaseEngineClassName
- driver
-
DatabaseName
- Note: it holds only the default name, and each connection may change this
name to its own
-
DatabaseUserName
-
-
defaultProps
-
-
ListenSocket
-
-
PushServN_AcqServer
- the Id for corresponding acquisition server.
-
PushServN_BroadcastInPort
-
-
PushServN_BroadcastsM_IP
- the key is composed from base + pserv num + "_" + chan num
-
PushServN_BroadcastsM_Port
-
-
PushServN_Control
- Input control UDP port: a single computer may have several push server
running on it.
-
PushServN_IP
-
-
PushServN_NumBroadcasts
- each push server represents a single channel for a set of local
networks, may have several broadcast addresses - for this channel
-
PushServN_PPrefix
- path prefix for the database
-
PushServNumber
- configure several push servers
-
single_instance
-
-
VSProperties()
-
-
defaultPropsPut(String, String, String)
-
-
finalize()
-
-
GetPropertiesInstance()
- Use this function to access the instance of properties
-
getPropertiesList()
-
-
getProperty(String)
-
-
getPropertyInt(String)
-
-
list_properties(DataOutputStream)
-
-
list_push_serv_ids_by_ch_id(int)
- Each acquisition server may transmit it's channel data to several
push servers at the same time.
-
list_push_serv_ids_by_IP(String)
- returns the Vector of Dictionaries of all push server Ids that broadcast
something on given IP address.
-
save_app_defaults()
-
-
set_property(BufferedReader, DataOutputStream)
-
-
setProperty(String, String)
-
single_instance
private static VSProperties single_instance
defaultProps
Properties defaultProps
applicationProps
Properties applicationProps
DatabaseEngine
protected final String DatabaseEngine
- the actual jdbc driver is customizable. by default we use postgresql
DatabaseEngineClassName
protected final String DatabaseEngineClassName
- driver
DatabaseName
protected final String DatabaseName
- Note: it holds only the default name, and each connection may change this
name to its own
DatabaseUserName
protected final String DatabaseUserName
ListenSocket
protected final String ListenSocket
AcquisitionServersNumber
protected final String AcquisitionServersNumber
- some parameters for acquisition server
AcquisitionServerN_IP
protected final String AcquisitionServerN_IP
AcquisitionServerN_DefDescr
protected final String AcquisitionServerN_DefDescr
- default description
PushServNumber
protected final String PushServNumber
- configure several push servers
PushServN_AcqServer
protected final String PushServN_AcqServer
- the Id for corresponding acquisition server. The idea is that channel
ID is the acquisition server ID. But single acquisition server may
distribute data to several distantly located push servers - in case
that the distribution of network load is required. Each client, given
its IP address have a set of nearest push servers, one per channel.
This class should privide also the way to get all push servers for
particular client. Remember - each push server may have only one
incoming data stream from only one acquisition server.
PushServN_IP
protected final String PushServN_IP
PushServN_Control
protected final String PushServN_Control
- Input control UDP port: a single computer may have several push server
running on it. The only way those servers distinguish from each other
is the incoming UDP control socket to listen. The control socket is
specified from command line on startup.
PushServN_BroadcastInPort
protected final String PushServN_BroadcastInPort
PushServN_PPrefix
protected final String PushServN_PPrefix
- path prefix for the database
PushServN_NumBroadcasts
protected final String PushServN_NumBroadcasts
- each push server represents a single channel for a set of local
networks, may have several broadcast addresses - for this channel
PushServN_BroadcastsM_IP
protected final String PushServN_BroadcastsM_IP
- the key is composed from base + pserv num + "_" + chan num
PushServN_BroadcastsM_Port
protected final String PushServN_BroadcastsM_Port
allProps
protected Vector allProps
VSProperties
public VSProperties()
GetPropertiesInstance
public static synchronized VSProperties GetPropertiesInstance()
- Use this function to access the instance of properties
defaultPropsPut
private void defaultPropsPut(String key,
String val,
String help)
getProperty
protected String getProperty(String key)
getPropertyInt
protected int getPropertyInt(String key)
setProperty
protected void setProperty(String key,
String value)
getPropertiesList
protected Vector getPropertiesList()
list_properties
protected void list_properties(DataOutputStream outputStream) throws IOException
set_property
protected void set_property(BufferedReader inputReader,
DataOutputStream outputStream) throws IOException, SyntaxException
finalize
protected void finalize() throws Throwable
- Overrides:
- finalize in class Object
save_app_defaults
protected void save_app_defaults() throws Throwable
list_push_serv_ids_by_IP
protected Vector list_push_serv_ids_by_IP(String user_ip) throws UnknownHostException
- returns the Vector of Dictionaries of all push server Ids that broadcast
something on given IP address. Given push server ID you may get the
corresponding channel.
Format: key = "id", key = "ip", key = "port"
list_push_serv_ids_by_ch_id
protected Vector list_push_serv_ids_by_ch_id(int channel_id) throws UnknownHostException
- Each acquisition server may transmit it's channel data to several
push servers at the same time. Returns the Vector of String's.
Acquisition server id and channel id is the same
All Packages Class Hierarchy This Package Previous Next Index