Open SiteSearch 4.1.1
Final

ORG.oclc.zbroker
Class ZBroker

java.lang.Object
  |
  +--ORG.oclc.zbroker.ZBroker

public class ZBroker
extends Object
implements timedObject

ZBroker is a server that handles connections from external Z39.50 clients other than the JaSSI. It is designed to bind to a well-defined port and broker connections from these clients. It implements the connection-less protocol to the ZBase at the back end to reduce ports in use on the server and holds the socket open to the external clients.


Constructor Summary
ZBroker()
           
 
Method Summary
 boolean acceptConnection()
           
 void configure(IniFile ini)
           
static int getConnectionCount()
           
static String getHostId()
           
static String getHostName()
           
static int getPort()
           
static String getStats()
           
static String getStats(long currentTime, long lastTime)
           
static void main(String[] args)
           
static OpsClient opsClient()
          Retrieves the OpsClient object associated with the ZBroker.
static SessionInfo sessionInfoHandler()
           
static void stop()
           
 void suspendConnections()
           
 void timerExpired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZBroker

public ZBroker()
Method Detail

timerExpired

public void timerExpired()
Specified by:
timerExpired in interface timedObject

opsClient

public static final OpsClient opsClient()
Retrieves the OpsClient object associated with the ZBroker.
Returns:
OpsClient

getStats

public static String getStats()

getStats

public static String getStats(long currentTime,
                              long lastTime)

getConnectionCount

public static int getConnectionCount()

suspendConnections

public void suspendConnections()

acceptConnection

public boolean acceptConnection()
                         throws IOException

configure

public void configure(IniFile ini)

stop

public static void stop()

main

public static void main(String[] args)

getHostName

public static String getHostName()

getHostId

public static String getHostId()

getPort

public static int getPort()

sessionInfoHandler

public static SessionInfo sessionInfoHandler()

Open SiteSearch 4.1.1
Final