|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.Server
public class Server
A server used to publish data and metadata. Code automatically generated from ARGO/UML
| Field Summary | |
|---|---|
static String |
CLASS_ID
|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
Server(RDFDB db,
URL id)
Create an object with the indicated id in the indicated db |
|
| Method Summary | |
|---|---|
void |
clear()
Clear all properties of this object |
RDFRef |
get_catalogs()
|
String |
get_debug()
|
String |
get_port()
|
String |
get_revision()
|
RDFRef |
get_services()
|
String |
get_version()
|
static Vector |
getAllInstances()
|
static Vector |
getAllInstances(RDFDB db)
|
List |
getCatalogs()
|
String |
getDebug()
The level of debugging: off disable the generation of debugging information on send debugging information a log file |
static FeatureDescriptor |
getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented |
Bookmark |
GetFile(String serverPath)
Get a File from the server; |
MIMEObject |
GetFile(String serverPath,
BasicExecutorLog log)
Get a File from the server; |
static Collection |
getGetterMethods()
|
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 |
static Server |
getInstance(String rdf)
|
static Collection |
getPartsDescriptor()
|
Integer |
getPort()
The TCP/IP port on which the server listens for connections from the users, should be 80 or 8080 (this might conflict with a Web Server running on the same machine). |
Bookmark |
GetReport()
|
String |
GetReport(BasicExecutorLog log)
|
String |
getRevision()
The server software revision code. |
List |
getServices()
Additional services hosted by the server. |
String |
getVersion()
The server software version name. |
void |
initialised()
Notify that the object has been created and its properties setup for the first time. |
static void |
listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added. |
Bookmark |
Login(String userID,
String userPassword)
|
void |
Login(String userID,
String userPassword,
BasicExecutorLog log)
|
static Server |
newInstance(RDFDB db)
Create a new object of this type with a locally unique id and returns it |
Bookmark |
Reboot()
|
void |
Reboot(BasicExecutorLog log)
|
static Server |
retrieve(URL id)
If an object of type Server with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.) |
Bookmark |
SaveFile(String serverPath,
File file)
Save a file in the server; |
void |
SaveFile(String serverPath,
File file,
BasicExecutorLog log)
Save a file in the server; |
Bookmark |
SaveWebFile(String webPath,
File file)
Save a file in the web root of the server |
void |
SaveWebFile(String webPath,
File file,
BasicExecutorLog log)
Save a file in the web root of the server |
void |
set_catalogs(RDFRef catalogs)
|
void |
set_debug(String debug)
|
void |
set_port(String port)
|
void |
set_revision(String revision)
|
void |
set_services(RDFRef services)
|
void |
set_version(String version)
|
void |
setCatalogs(List catalogs)
|
void |
setDebug(String debug)
The level of debugging: off disable the generation of debugging information on send debugging information a log file |
void |
setPort(Integer port)
The TCP/IP port on which the server listens for connections from the users, should be 80 or 8080 (this might conflict with a Web Server running on the same machine). |
void |
setRevision(String revision)
The server software revision code. |
void |
setServices(List services)
Additional services hosted by the server. |
void |
setVersion(String version)
The server software version name. |
Bookmark |
Shutdown()
|
void |
Shutdown(BasicExecutorLog log)
|
Bookmark |
Update(File zippedCode)
|
void |
Update(File zippedCode,
BasicExecutorLog log)
|
| 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 |
| Field Detail |
|---|
public static String CLASS_ID
| Constructor Detail |
|---|
public Server(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be createdid - the id of the object to create
Exception| Method Detail |
|---|
public void set_catalogs(RDFRef catalogs)
catalogs -
public void setCatalogs(List catalogs)
throws Exception
catalogs -
Exceptionpublic void setDebug(String debug)
debug - public void set_debug(String debug)
debug - public void setPort(Integer port)
port - public void set_port(String port)
port - public void setRevision(String revision)
This corresponds to the date the software was recompiled the last time.
revision - public void set_revision(String revision)
revision - public void setVersion(String version)
version - public void set_version(String version)
version -
public void setServices(List services)
throws Exception
services -
Exceptionpublic void set_services(RDFRef services)
services -
public static Vector getAllInstances(RDFDB db)
throws Exception
db - the db where the instances are to be found
Exception
public static Vector getAllInstances()
throws Exception
Exception
public static Server getInstance(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be found or createdid - the id of the object to retrieve or create
Exception
public static Server getInstance(String rdf)
throws Exception
rdf - some rdf code that contains a description of an object of this kind
Exception
public RDFRef get_catalogs()
throws Exception
Exception
public List getCatalogs()
throws Exception
Exceptionpublic String getDebug()
public String get_debug()
throws Exception
Exceptionpublic Integer getPort()
public String get_port()
throws Exception
Exceptionpublic String getRevision()
This corresponds to the date the software was recompiled the last time.
public String get_revision()
throws Exception
Exceptionpublic String getVersion()
public String get_version()
throws Exception
Exception
public List getServices()
throws Exception
Exception
public RDFRef get_services()
throws Exception
Exception
public Bookmark GetReport()
throws Exception
Exception
public String GetReport(BasicExecutorLog log)
throws Exception
log - the Executor of this method;if null a default one is used
Exception
public Bookmark GetFile(String serverPath)
throws Exception
Get a File from the server;
A temporary file is created before to return the requested file
serverPath -
Exception
public MIMEObject GetFile(String serverPath,
BasicExecutorLog log)
throws Exception
Get a File from the server;
A temporary file is created before to return the requested file
serverPath - log - the Executor of this method;if null a default one is used
Exceptionpublic static FeatureDescriptor getDescriptor(String featureName)
featureName - public static Collection getPartsDescriptor()
public static Collection getGetterMethods()
public static Server newInstance(RDFDB db)
throws Exception
db - the db where the object is to be found or created
Exceptionpublic static void listenForNewObj(NewObjListener listener)
listener - the listenerpublic void initialised()
initialised in class RDFObject
public static Server retrieve(URL id)
throws Exception
id - the id of the object to retrieve
Exceptionpublic void clear()
RDFObject
clear in class RDFObject
public Bookmark Login(String userID,
String userPassword)
throws Exception
userID - userPassword -
Exception
public void Login(String userID,
String userPassword,
BasicExecutorLog log)
throws Exception
userID - userPassword - log - the Executor of this method;if null a default one is used
Exception
public Bookmark Reboot()
throws Exception
Exception
public void Reboot(BasicExecutorLog log)
throws Exception
log - the Executor of this method;if null a default one is used
Exception
public Bookmark Shutdown()
throws Exception
Exception
public void Shutdown(BasicExecutorLog log)
throws Exception
log - the Executor of this method;if null a default one is used
Exception
public Bookmark Update(File zippedCode)
throws Exception
zippedCode -
Exception
public void Update(File zippedCode,
BasicExecutorLog log)
throws Exception
zippedCode - log - the Executor of this method;if null a default one is used
Exception
public Bookmark SaveFile(String serverPath,
File file)
throws Exception
Save a file in the server;
if the file already exists, a backup copy is created with name fileName.# with # = 1..n
serverPath - file - the file to be saved
Exception
public void SaveFile(String serverPath,
File file,
BasicExecutorLog log)
throws Exception
Save a file in the server;
if the file already exists, a backup copy is created with name fileName.# with # = 1..n
serverPath - file - the file to be savedlog - the Executor of this method;if null a default one is used
Exception
public Bookmark SaveWebFile(String webPath,
File file)
throws Exception
Save a file in the web root of the server
if the file already exists, a backup copy is created with name fileName.# with # = 1..n
webPath - the path on the server relative to the web rootfile - the file to be saved
Exception
public void SaveWebFile(String webPath,
File file,
BasicExecutorLog log)
throws Exception
Save a file in the web root of the server
if the file already exists, a backup copy is created with name fileName.# with # = 1..n
webPath - the path on the server relative to the web rootfile - the file to be savedlog - the Executor of this method;if null a default one is used
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||