Sanav GC-101 Manuel d'installation Page 37

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 36
9.2.2) Stopping the Device Communication Server
When started in "background" mode (ie. Without the "-i" option), a "Process ID" (PID) file is created at
"$GTS_HOME/logs/template.pid", which contains the process-id of the backgrounded task. This file is used to stop
the server with the command:
/zzz> $GTS_HOME/bin/runserver.pl -s template -kill
On Linux systems, the Perl command "psjava", included with OpenGTS, can be used to display information regarding
which Device Communication Servers are currently running, including the "template" server:
/zzz> $GTS_HOME/bin/psjava
PID Parent L User Java class/jar
------ ------ - -------- -------------------------------------------------------
215( 1) 1 opengts org.apache.catalina.startup.Bootstrap
8115( 1) 1 opengts /usr/local/OpenGTS_1.2.3/build/lib/gtsdmtp.jar
8129( 1) 1 opengts /usr/local/OpenGTS_1.2.3/build/lib/template.jar
This command lists all known running Java processes, with their associated PID (process-id), parent PID, user, and
Java class or jar file which is currently running. The "org.apache.catalina.startup.Bootstrap" process indicates
that Apache Tomcat is running with the indicated PID. "gtsdmtp" and "template" indicate their respective running
Device Communication Servers.
9.3) Runtime XML Configuration File.
The raw socket-based device communication servers (such as the example 'template' server) support the runtime
configuration using the file "dcservers.xml". An example format of the "dcservers.xml" is as follows:
<DCServerConfig
bindAddress=""
backlog=""
portOffset="0"
includeDir="dcservers"
>
<Include file="dcserver_template.xml" optional="true"/>
<DCServer name="icare">
...
</DCServer>
...
</DCServerConfig>
The attributes for the DCServerConfig tag include the following:
bindAddress : This attribute specifies the local IP address or host name to which the server will bind. This is
useful when the local server has more than one IP address, and needs to send UDP packets back to a client
device. If left blank, the server will bind to the default local IP address.
backlog : The maximum queue length for incoming connection indications (a request to connect). If a
connection indication arrives when the queue is full, the connection is refused. If left blank, or is 0 or less, then the
default backlog value will be used. See the class "java.net.ServerSocket" for more information.
portOffset : This value is added to any port specification. Unless otherwise needed for specific system
requirements, this value should remain "0".
includeDir : If the "DCServerConfig" tag contains any "Include" sub-tags, this is the directory that will be
search for the included files.
OpenGTS Configuration and Installation Manual Page 37 of 60
Vue de la page 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 59 60

Commentaires sur ces manuels

Pas de commentaire