nesstar.api
Class ServerEx

java.lang.Object
  extended by java.util.Observable
      extended by nesstar.rdf.RDFObject
          extended by nesstar.api.Server
              extended by nesstar.api.ServerEx
All Implemented Interfaces:
Comparable, RDFObj
Direct Known Subclasses:
Server

public class ServerEx
extends Server

A server used to publish data and metadata.

Created:
26 April 2002

Field Summary
 
Fields inherited from class nesstar.api.Server
CLASS_ID
 
Fields inherited from class nesstar.rdf.RDFObject
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP
 
Constructor Summary
ServerEx(RDFDB db, URL id)
          
Create an object with the indicated id in the indicated db
 
Method Summary
static void dbg(String msg)
          Method
static Vector getAllCatalogs()
          Gets the allCatalogs attribute of the ServerEx class
static Vector getAllCatalogs(RDFDB db)
          Gets the allCatalogs attribute of the ServerEx class
static Vector getAllServersAndCatalogs(RDFDB db)
          Gets the allServersAndCatalogs attribute of the ServerEx class
static FeatureDescriptor getDescriptor(String featureName)
          get the descriptor for a feature of the class, either method or attribute
static Server getInstance(RDFDB db, URL id)
          
If an object of type Server with the indicated id exists in the db returns it otherwise create a new object in the db and returns it
 Vector oldGetCatalogs()
          Method
 List reloadCatalogs()
          
Retrieve an updated list of the catalogs of this server.
 
Methods inherited from class nesstar.api.Server
clear, get_catalogs, get_debug, get_port, get_revision, get_services, get_version, getAllInstances, getAllInstances, getCatalogs, getDebug, GetFile, GetFile, getGetterMethods, getInstance, getPartsDescriptor, getPort, GetReport, GetReport, getRevision, getServices, getVersion, initialised, listenForNewObj, Login, Login, newInstance, Reboot, Reboot, retrieve, SaveFile, SaveFile, SaveWebFile, SaveWebFile, set_catalogs, set_debug, set_port, set_revision, set_services, set_version, setCatalogs, setDebug, setPort, setRevision, setServices, setVersion, Shutdown, Shutdown, Update, Update
 
Methods inherited from class nesstar.rdf.RDFObject
AddProperty, AddStringProperty, chkFinal, compareTo, equals, err, err, get_comment, get_creationDate, get_label, get, getAccessCondition, getBinding, getBindings, getBookmarkLabel, getCollectionURL, getComment, getCreationDate, getDB, getDescriptor, getDomain, getID, getInitialisedProperties, getInternalID, getLabel, getLastClear, getPartsDescriptor, getPartsDescriptor, getPath, getProperties, GetProperties, GetProperty, GetPropertyStatement, GetPropertyStatements, getRange, getRangeType, getRef, getRef, getServer, getShortId, getShortID, getStatementHome, GetStringProperties, GetStringProperty, getTimeoutInSecs, getType, init, init, isComplete, isLocal, isMeta, isStale, loaded, neededCollectionReload, neededReload, neededReload, neededReload, neededReload, needsReload, reload, remove, set_comment, set_complete, set_creationDate, set_label, set, setComment, setComplete, setCreationDate, setDB, setHardOrSoft, setID, setLabel, setLastClear, SetProperty, setServer, SetStringProperty, setTimeoutInSecs, setTimestamp, setType, setTypeID, stale, toRDF, toRDFWrapped, toString, update
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerEx

public ServerEx(RDFDB db,
                URL id)
         throws Exception

Create an object with the indicated id in the indicated db

Parameters:
db - the db where the object is to be created
id - the id of the object to create
Throws:
Exception
Method Detail

getInstance

public static Server getInstance(RDFDB db,
                                 URL id)
                          throws Exception

If an object of type Server with the indicated id exists in the db returns it otherwise create a new object in the db and returns it

Parameters:
db - the db where the object is to be found or created
id - the id of the object to retrieve or create
Returns:
an object of type Server with the indicated id and existing in the indicated db
Throws:
Exception

getDescriptor

public static FeatureDescriptor getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute

Parameters:
featureName -

getAllServersAndCatalogs

public static Vector getAllServersAndCatalogs(RDFDB db)
                                       throws Exception
Gets the allServersAndCatalogs attribute of the ServerEx class

Parameters:
db -
Returns:
The allServersAndCatalogs value
Throws:
Exception

getAllCatalogs

public static Vector getAllCatalogs(RDFDB db)
                             throws Exception
Gets the allCatalogs attribute of the ServerEx class

Parameters:
db -
Returns:
The allCatalogs value
Throws:
Exception

getAllCatalogs

public static Vector getAllCatalogs()
                             throws Exception
Gets the allCatalogs attribute of the ServerEx class

Returns:
The allCatalogs value
Throws:
Exception

dbg

public static void dbg(String msg)
Method

Parameters:
msg -

oldGetCatalogs

public Vector oldGetCatalogs()
                      throws Exception
Method

Returns:
Throws:
Exception

reloadCatalogs

public List reloadCatalogs()
                    throws Exception

Retrieve an updated list of the catalogs of this server.

Returns:
an object of type Server with the indicated id
Throws:
Exception
Bug:
move to RDFBag

Nesstar SDK

Copyright©2003 NSD - All Rights Reserved