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


Variable Index

 o AcquisitionServerN_DefDescr
default description
 o AcquisitionServerN_IP
 o AcquisitionServersNumber
some parameters for acquisition server
 o allProps
 o applicationProps
 o DatabaseEngine
the actual jdbc driver is customizable.
 o DatabaseEngineClassName
driver
 o DatabaseName
Note: it holds only the default name, and each connection may change this name to its own
 o DatabaseUserName
 o defaultProps
 o ListenSocket
 o PushServN_AcqServer
the Id for corresponding acquisition server.
 o PushServN_BroadcastInPort
 o PushServN_BroadcastsM_IP
the key is composed from base + pserv num + "_" + chan num
 o PushServN_BroadcastsM_Port
 o PushServN_Control
Input control UDP port: a single computer may have several push server running on it.
 o PushServN_IP
 o PushServN_NumBroadcasts
each push server represents a single channel for a set of local networks, may have several broadcast addresses - for this channel
 o PushServN_PPrefix
path prefix for the database
 o PushServNumber
configure several push servers
 o single_instance

Constructor Index

 o VSProperties()

Method Index

 o defaultPropsPut(String, String, String)
 o finalize()
 o GetPropertiesInstance()
Use this function to access the instance of properties
 o getPropertiesList()
 o getProperty(String)
 o getPropertyInt(String)
 o list_properties(DataOutputStream)
 o 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.
 o list_push_serv_ids_by_IP(String)
returns the Vector of Dictionaries of all push server Ids that broadcast something on given IP address.
 o save_app_defaults()
 o set_property(BufferedReader, DataOutputStream)
 o setProperty(String, String)

Variables

 o single_instance
 private static VSProperties single_instance
 o defaultProps
 Properties defaultProps
 o applicationProps
 Properties applicationProps
 o DatabaseEngine
 protected final String DatabaseEngine
the actual jdbc driver is customizable. by default we use postgresql

 o DatabaseEngineClassName
 protected final String DatabaseEngineClassName
driver

 o DatabaseName
 protected final String DatabaseName
Note: it holds only the default name, and each connection may change this name to its own

 o DatabaseUserName
 protected final String DatabaseUserName
 o ListenSocket
 protected final String ListenSocket
 o AcquisitionServersNumber
 protected final String AcquisitionServersNumber
some parameters for acquisition server

 o AcquisitionServerN_IP
 protected final String AcquisitionServerN_IP
 o AcquisitionServerN_DefDescr
 protected final String AcquisitionServerN_DefDescr
default description

 o PushServNumber
 protected final String PushServNumber
configure several push servers

 o 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.

 o PushServN_IP
 protected final String PushServN_IP
 o 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.

 o PushServN_BroadcastInPort
 protected final String PushServN_BroadcastInPort
 o PushServN_PPrefix
 protected final String PushServN_PPrefix
path prefix for the database

 o 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

 o PushServN_BroadcastsM_IP
 protected final String PushServN_BroadcastsM_IP
the key is composed from base + pserv num + "_" + chan num

 o PushServN_BroadcastsM_Port
 protected final String PushServN_BroadcastsM_Port
 o allProps
 protected Vector allProps

Constructors

 o VSProperties
 public VSProperties()

Methods

 o GetPropertiesInstance
 public static synchronized VSProperties GetPropertiesInstance()
Use this function to access the instance of properties

 o defaultPropsPut
 private void defaultPropsPut(String key,
                              String val,
                              String help)
 o getProperty
 protected String getProperty(String key)
 o getPropertyInt
 protected int getPropertyInt(String key)
 o setProperty
 protected void setProperty(String key,
                            String value)
 o getPropertiesList
 protected Vector getPropertiesList()
 o list_properties
 protected void list_properties(DataOutputStream outputStream) throws IOException
 o set_property
 protected void set_property(BufferedReader inputReader,
                             DataOutputStream outputStream) throws IOException, SyntaxException
 o finalize
 protected void finalize() throws Throwable
Overrides:
finalize in class Object
 o save_app_defaults
 protected void save_app_defaults() throws Throwable
 o 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"

 o 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