Download ESO NG/AMS - User`s Manual

Transcript
ESO
NG/AMS - User's Manual
Doc.
Issue
Date
Page
VLT-MAN-ESO-19400-2739
2
08/01/2003
61 of 126
int ngamsIsDir(const char *filename)
Return 1 if the filename given is a directory, otherwise 0 is returned.
filename:
Name of directory to probe.
ngamsSTAT ngamsExit(const char
*host,
const int
port,
const float
timeoutSecs,
const int
wait,
ngamsSTATUS
*status)
Send an EXIT command to the NG/AMS Server to make it
clean up and terminate execution.
ngamsSTAT ngamsLabel(const char
*host,
const int
port,
const float
timeoutSecs,
const char
*slotId,
ngamsSTATUS
*status)
Send a LABEL command to the NG/AMS Server.
slotId:
ID of slot hosting the disk for which to generate the label.
char *ngamsLicense(void)
Return pointer to buffer containing the NG/AMS License Agreement.
ngamsSTAT ngamsOffline(const char
*host,
const int
port,
const float
timeoutSecs,
const int
force,
const int
wait,
ngamsSTATUS
*status)
Send an OFFLINE command to the NG/AMS Server to bring it to Offline State.
force:
Force the server to go Offline immediately, even though it is
busy.
ngamsSTAT ngamsOnline(const char
*host,
const int
port,
const float
timeoutSecs,
const int
wait,
ngamsSTATUS
*status)
Send an ONLINE command to the NG/AMS Server to bring it to Online State.
ngamsSTAT ngamsRegister(const char
*host,
const int
port,
const float
timeoutSecs,
const char
*path,
const int
wait,
ngamsSTATUS
*status)
Send an REGISTER command to the NG/AMS Server to make it register
a file or set of files.
path:
Path starting point from which the scanning for files to
register will be initiated. Only files with a known mime-type
is taken into account.
ngamsSTAT ngamsRemDisk(const char
*host,
const int
port,
const float
timeoutSecs,
const char
*diskId,
const int
execute,
ngamsSTATUS
*status)
Send a REMDISK command to the NG/AMS Server. If execute is 0 the
disk information will not be deleted from the NGAS DB and from the
the disk itself. Otherwise, if 1 is specified, this information will
will be deleted.