CONGO AppServer

Class status

java.lang.Object
  extended bystatus

public class status
extends java.lang.Object


Constructor Summary
status()
           
 
Method Summary
 java.lang.String getProperty(java.lang.String propName)
          Get a property from the server
 int numConferences()
           
 int numRegistrants()
           
 int saveProperties()
          Save the properties out to the conf file...
 java.lang.Object serverStatus()
          Return various tidbits of information from the appserver, including version number.
 java.util.Hashtable setProperty(java.lang.String propName, java.lang.String propVal)
          Set a property in the server
static int updateCounters(int cid)
          Regenerate the history_state table for a given conference.
static int updateCounters(int cid, int rid)
          Regenerate the reg_state table for a given conference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

status

public status()
Method Detail

updateCounters

public static int updateCounters(int cid)
Regenerate the history_state table for a given conference.

Parameters:
cid - Conference ID to report on
Returns:
int 0=success, non-zero = failure

updateCounters

public static int updateCounters(int cid,
                                 int rid)
Regenerate the reg_state table for a given conference.

Parameters:
cid - Conference ID to report on
rid - Which registrant to regenerate
Returns:
int 0=success, non-zero = failure

numConferences

public int numConferences()

numRegistrants

public int numRegistrants()

getProperty

public java.lang.String getProperty(java.lang.String propName)
Get a property from the server

Parameters:
propName - The name of the property to return
Returns:
String containing the value of the property. "None" indicates a property was requested that doesn't exist or has no value. (this is sub-optimal, I know)

setProperty

public java.util.Hashtable setProperty(java.lang.String propName,
                                       java.lang.String propVal)
Set a property in the server

Parameters:
propName - The name of the property to alter
propVal - The new value of the property
Returns:
Hashtable containing:
    errorCode - The result code. '0' indicates success.
    errorString - 'Success' on successful completion, otherwise the text of the error.

saveProperties

public int saveProperties()
Save the properties out to the conf file...

Returns:
int '0' = success '1' = failure

serverStatus

public java.lang.Object serverStatus()
Return various tidbits of information from the appserver, including version number.

Returns:
Hashtable containing:
    versionMajor - Major version number
    versionMinor - Minor version number
    versionTiny - Tiny version - changes when very small changes are made
    versionString - String containing all the version elements (eg '1.2.3')
    mailNotify - "YES" or "NO" - will the system send mail to a registrant when registration is complete?
    activeConferences - Number of active conferences
    totalRegistrants - Total number of registrants
    lastUserAccess - Last user access on the appserver (not implemented)
    HTTPstatus - Status of the HTTP component (not implemented)
    SSLstatus - Status of the SSL component (not implemented)

CONGO AppServer

Copyright © 2004 Stonekeep Consulting, Inc.