vqServer API Class vq.server.Servers

java.lang.Object
    |
    +----vq.utils.kllist
            |
            +----vq.server.Servers
Contents
Package index
Package
API index

public class Servers
extends kllist
Represents a list of servers. Ordered by TCP/IP port number. Warning: vqServer will not operate correctly if you add anything other than instances of descendants of Server to an instance of Servers. Use add(Server) to add instances of Server to an instance of Servers. Instances of Servers assume that they are the main list of servers associated with the vqServer console and GUI window. There can therefore only be one instance of Servers per virtual machine.


Constructor Index

 o Servers()
Creates an empty list.

Method Index

 o add(Server)
Adds the specified server to the list.
 o flushLogs()
Flushes the logs of each server in the list.
 o periodic(long)
Performs certain time-dependent tasks such as checking for timed-out connections.
 o read(vqis)
Reads a list of server specifications from the specified file and adds them to the list.
 o remove(Server)
Removes the specified server from the list.
 o resetLogs(String)
Resets the logs of each server in the list.
 o save(vqos)
Writes the list to the output stream specified in vqServer .cfg file format.
 o shutdown()
Shuts down each server in the list.
 o updateSavedStatus()
Updates the saved status of each server in the list.

Constructor Detail

 o Servers
public Servers()
          Creates an empty list.

Method Detail

 o read
public void read(vqis is) throws java.io.IOException
          Reads a list of server specifications from the specified file and adds them to the list.
Overrides:
read in class kllist
 o add
public void add(Server newServer)
          Adds the specified server to the list. The position of the server in the list depends on its port number.
 o remove
public void remove(Server theServer)
          Removes the specified server from the list. The server is not automatically shut down before it is removed.
 o save
public void save(vqos os) throws java.io.IOException
          Writes the list to the output stream specified in vqServer .cfg file format. Calls the save(vqos) method of each server in the list.
Overrides:
save in class kllist
 o periodic
public void periodic(long currentTime)
          Performs certain time-dependent tasks such as checking for timed-out connections. Calls the periodic(long) method of each server in the list. Called periodically by the timer thread.
Parameters:
currentTime - the current time as returned by System.currentTimeMillis()
 o updateSavedStatus
public void updateSavedStatus()
          Updates the saved status of each server in the list. Calls each server's updateSavedStatus() method.
 o shutdown
public void shutdown()
          Shuts down each server in the list. Calls each server's stop() method.
 o flushLogs
public void flushLogs()
          Flushes the logs of each server in the list. Calls each server's flushLogs() method.
 o resetLogs
public void resetLogs(java.lang.String theExtension)
          Resets the logs of each server in the list. Calls each server's resetLogs() method.


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index