Classes | Defines | Enumerations | Variables

RawAPI/rawcommn.h File Reference

Go to the source code of this file.

Classes

struct  srawFileList
struct  srawComm
struct  srawStatus
struct  srawRequest
struct  srawObjAttrOld
struct  srawObjAttr
struct  srawQueryResult
struct  srawPoolStatusDMData
struct  srawPoolStatusData
struct  srawPoolStatus
struct  srawWorkSpace
struct  srawDataMoverAttr
struct  srawDataMover
struct  srawFileSystem
struct  srawCopyCache
struct  srawArchiveList

Defines

#define PORT_MASTER   1996
#define PORT_MOVER   1994
#define PORT_MOVER_DATAFS   1998
#define PORT_RFIO_SERV   1974
#define ATLSERVER_ARCHIVE   1
#define MAX_ATLSERVER   1
#define MAX_MASTER   1
#define MAX_NUM_DM   10
#define MBUF_SOCK   32768
#define MBUF_ADSM   32768
#define MBUF_RFIO   32768
#define CUR_QUERY_LIMIT   0
#define SLEEP_CACHE_FULL   600
#define MAXLOOP_CACHE_FULL   3
#define DEF_FILESIZE   2044000000
#define MAX_FILE_SIZE   2147483647
#define MAX_FILE_SIZE_U   4294967295
#define MAX_FILE_NO   1024
#define MAX_NODE   16
#define MIN_DATAFS_PATH   12
#define MAX_OWNER   16
#define MAX_OS   8
#define MAX_FULL_FILE   256
#define MAX_FILE   128
#define MAX_TAPE_FILE   17
#define VERSION_SRAWOBJATTR   5
#define SIZE_CACHE_METADATA_5   424
#define SIZE_CACHE_METADATA_4   344
#define MAX_OBJ_FS   32
#define MAX_OBJ_HL   112
#define MAX_OBJ_LL   52
#define MAX_OBJ_HL_O   92
#define MAX_OBJ_LL_O   36
#define MAX_OBJ_HL_LEVEL   14
#define MAX_MC   30
#define MAX_MC_O   12
#define MAX_DATE   20
#define MAX_APPLTYPE   28
#define MAX_ITEM   32
#define HEAD_OFFSET   3
#define HEAD_LEN   12
#define STATUS_LEN   512
#define WORK_LEN   20
#define IDENT_COMM   -1
#define IDENT_STATUS   -2
#define IDENT_QUERY   -3
#define IDENT_POOL   -4
#define IDENT_WORKSPACE   -5
#define IDENT_NEXT_BUFFER   -6
#define IDENT_MOVER_ATTR   -7
#define IDENT_STAGE_FILE   -8
#define IDENT_SPACE_INFO   -9
#define IDENT_PURGE_INFO   -10
#define IDENT_SPACE_LOOK   -11
#define IDENT_CLEAN_REQUEST   -12
#define IDENT_FILELIST_REQUEST   -13
#define IDENT_QUERY_ARCHDB   -14
#define IDENT_FULL_ARCHDISK   -15
#define IDENT_ARCHIVE_FILE   -16
#define IDENT_STAGE_LIST   -17
#define IDENT_QUERY_FILEDB   -18
#define IDENT_QUERY_DONE   -19
#define IDENT_CACHE_STATUS   -20
#define IDENT_COPY_CACHE   -21
#define IDENT_ARCHIVE_LIST   -22
#define IDENT_PROC_INFO   -23
#define IDENT_COMM64   -24

Enumerations

enum  ARCH_DEVICE {
  ARCH_ANY, ARCH_TAPE, ARCH_TAPE_MC, MGR_TAPE,
  ARCH_DISK, ARCH_DAQ_DISK
}
enum  RETR_DEVICE { RETR_CLIENT, RETR_STAGE_TEMP, RETR_STAGE_PERM, RETR_FILESYSTEM }
enum  FILETYPE { FIXED_INTS4, STREAM }
enum  ACTION {
  ARCHIVE, ARCHIVE_MGR, ARCHIVE_RECORD, ARCHIVE_OVER,
  CREATE_ARCHIVE, CLOSE, REMOVE, REMOVE_MGR,
  FILE_CHECK, OPEN, QUERY, QUERY_ARCHIVE,
  QUERY_ARCHIVE_MGR, QUERY_REMOVE, QUERY_REMOVE_MGR, RETRIEVE,
  RETRIEVE_RECORD, RETRIEVE_STAGE, STAGE, QUERY_UNSTAGE,
  UNSTAGE, QUERY_POOL, QUERY_WORKSPACE, QUERY_STAGE,
  ARCHIVE_TO_CACHE, ARCHIVE_FROM_CACHE, QUERY_RETRIEVE, QUERY_ARCHIVE_OVER,
  QUERY_ARCHIVE_TO_CACHE, SPM_REQUEST_MOVER, QUERY_RETRIEVE_RECORD, QUERY_ARCHIVE_FROM_CACHE,
  END_SESSION, QUERY_ARCHIVE_RECORD, STAGE_FROM_CACHE, RETRIEVE_FROM_CACHE,
  SEND_FROM_CACHE, QUERY_RETRIEVE_STAGE, COPY_RC_TO_FILESYSTEM, RETRIEVE_TO_FILESYSTEM,
  ARCHIVE_FROM_FILESYSTEM, COPY_WC_TO_FILESYSTEM, MIGRATE_CACHE_PATH, QUERY_FILESERVER,
  SEND_TO_FILESERVER, RECEIVE_FROM_DM, SHOW_ARCHIVES
}
enum  STATUS {
  STA_BEGIN_TRANS, STA_NEXT_BUFFER, STA_END_OF_FILE, STA_END_OF_SESSION,
  STA_ERROR, STA_ERROR_EOF, STA_FILE_STAGED, STA_END_OF_FILE_NOT_STAGED,
  STA_SEEK_BUFFER, STA_ARCHIVE_AVAIL, STA_SWITCH_SERVER, STA_INFO,
  STA_PURGED, STA_NOT_PURGED, STA_CACHE_FULL, STA_CACHE_FILE_AWAY,
  STA_ARCHIVE_NOT_AVAIL, STA_NO_ACCESS, STA_SWITCH_ENTRY, STA_ENTRY_INFO,
  STA_FILE_CACHED, STA_CACHE_COPY, STA_CACHE_COPY_ERROR
}

Variables

static const char cTooBig [8] = "(>=4GB)"
static char cNodeMaster0 [MAX_NODE] = "lxgstore"
static char cNodeMasterE1 [MAX_NODE] = "lxha05"
static char cNodeMasterE2 [MAX_NODE] = "lxha04"
static char cDataFSType [16] = "lustre"
static char cDataFSHigh1 [16] = "/lustre_alpha/"
static char cDataFSHigh2 [16] = "/lustre/"
static char cAdminUser [MAX_OWNER] = "goeri"
static char cForceMigPath [32] = "/ArchiveNow"
static char * pcOS

Define Documentation

#define ATLSERVER_ARCHIVE   1

Definition at line 201 of file rawcommn.h.

#define CUR_QUERY_LIMIT   0

Definition at line 209 of file rawcommn.h.

#define DEF_FILESIZE   2044000000

Definition at line 217 of file rawcommn.h.

#define HEAD_LEN   12
#define HEAD_OFFSET   3

Definition at line 282 of file rawcommn.h.

#define IDENT_ARCHIVE_FILE   -16

Definition at line 304 of file rawcommn.h.

#define IDENT_ARCHIVE_LIST   -22

Definition at line 310 of file rawcommn.h.

#define IDENT_CACHE_STATUS   -20

Definition at line 308 of file rawcommn.h.

#define IDENT_CLEAN_REQUEST   -12

Definition at line 300 of file rawcommn.h.

#define IDENT_COMM   -1

Definition at line 289 of file rawcommn.h.

#define IDENT_COMM64   -24

Definition at line 312 of file rawcommn.h.

#define IDENT_COPY_CACHE   -21

Definition at line 309 of file rawcommn.h.

Referenced by rfio_open_gsidaq().

#define IDENT_FILELIST_REQUEST   -13

Definition at line 301 of file rawcommn.h.

#define IDENT_FULL_ARCHDISK   -15

Definition at line 303 of file rawcommn.h.

#define IDENT_MOVER_ATTR   -7

Definition at line 295 of file rawcommn.h.

#define IDENT_NEXT_BUFFER   -6

Definition at line 294 of file rawcommn.h.

Referenced by rawRecvRequest(), and rawSendRequest().

#define IDENT_POOL   -4

Definition at line 292 of file rawcommn.h.

Referenced by rawGetWSInfo().

#define IDENT_PROC_INFO   -23

Definition at line 311 of file rawcommn.h.

#define IDENT_PURGE_INFO   -10

Definition at line 298 of file rawcommn.h.

#define IDENT_QUERY   -3

Definition at line 291 of file rawcommn.h.

Referenced by rawQueryFile().

#define IDENT_QUERY_ARCHDB   -14

Definition at line 302 of file rawcommn.h.

Referenced by rawQueryFile().

#define IDENT_QUERY_DONE   -19

Definition at line 307 of file rawcommn.h.

Referenced by rawQueryFile().

#define IDENT_QUERY_FILEDB   -18

Definition at line 306 of file rawcommn.h.

#define IDENT_SPACE_INFO   -9

Definition at line 297 of file rawcommn.h.

#define IDENT_SPACE_LOOK   -11

Definition at line 299 of file rawcommn.h.

#define IDENT_STAGE_FILE   -8

Definition at line 296 of file rawcommn.h.

#define IDENT_STAGE_LIST   -17

Definition at line 305 of file rawcommn.h.

#define IDENT_STATUS   -2
#define IDENT_WORKSPACE   -5

Definition at line 293 of file rawcommn.h.

Referenced by rawGetWSInfo().

#define MAX_APPLTYPE   28

Definition at line 279 of file rawcommn.h.

#define MAX_ATLSERVER   1

Definition at line 202 of file rawcommn.h.

Referenced by rfio_open_gsidaq().

#define MAX_DATE   20

Definition at line 278 of file rawcommn.h.

#define MAX_FILE   128

Definition at line 256 of file rawcommn.h.

#define MAX_FILE_NO   1024

Definition at line 220 of file rawcommn.h.

Referenced by rawCheckObjlist(), and rawGetFileList().

#define MAX_FILE_SIZE   2147483647

Definition at line 218 of file rawcommn.h.

Referenced by rawGetFileAttr().

#define MAX_FILE_SIZE_U   4294967295

Definition at line 219 of file rawcommn.h.

#define MAX_FULL_FILE   256

Definition at line 255 of file rawcommn.h.

Referenced by rawGetFileList(), and rawGetFilelistEntries().

#define MAX_ITEM   32

Definition at line 280 of file rawcommn.h.

#define MAX_MASTER   1

Definition at line 203 of file rawcommn.h.

#define MAX_MC   30

Definition at line 272 of file rawcommn.h.

#define MAX_MC_O   12

Definition at line 276 of file rawcommn.h.

#define MAX_NODE   16

Definition at line 225 of file rawcommn.h.

Referenced by rawGetHostConn(), and rfio_open_gsidaq().

#define MAX_NUM_DM   10

Definition at line 204 of file rawcommn.h.

#define MAX_OBJ_FS   32

Definition at line 263 of file rawcommn.h.

Referenced by rfio_newfile(), and rfio_open_gsidaq().

#define MAX_OBJ_HL   112

Definition at line 265 of file rawcommn.h.

Referenced by rfio_newfile(), and rfio_open_gsidaq().

#define MAX_OBJ_HL_LEVEL   14

Definition at line 269 of file rawcommn.h.

#define MAX_OBJ_HL_O   92

Definition at line 267 of file rawcommn.h.

#define MAX_OBJ_LL   52

Definition at line 266 of file rawcommn.h.

Referenced by rawCheckClientFile(), rfio_newfile(), and rfio_open_gsidaq().

#define MAX_OBJ_LL_O   36

Definition at line 268 of file rawcommn.h.

#define MAX_OS   8

Definition at line 240 of file rawcommn.h.

#define MAX_OWNER   16

Definition at line 235 of file rawcommn.h.

#define MAX_TAPE_FILE   17

Definition at line 257 of file rawcommn.h.

Referenced by rawCheckClientFile().

#define MAXLOOP_CACHE_FULL   3

Definition at line 215 of file rawcommn.h.

#define MBUF_ADSM   32768

Definition at line 207 of file rawcommn.h.

#define MBUF_RFIO   32768

Definition at line 208 of file rawcommn.h.

#define MBUF_SOCK   32768

Definition at line 206 of file rawcommn.h.

#define MIN_DATAFS_PATH   12

Definition at line 230 of file rawcommn.h.

#define PORT_MASTER   1996

Definition at line 195 of file rawcommn.h.

#define PORT_MOVER   1994

Definition at line 196 of file rawcommn.h.

#define PORT_MOVER_DATAFS   1998

Definition at line 197 of file rawcommn.h.

#define PORT_RFIO_SERV   1974

Definition at line 199 of file rawcommn.h.

#define SIZE_CACHE_METADATA_4   344

Definition at line 261 of file rawcommn.h.

#define SIZE_CACHE_METADATA_5   424

Definition at line 260 of file rawcommn.h.

#define SLEEP_CACHE_FULL   600

Definition at line 214 of file rawcommn.h.

#define STATUS_LEN   512

Definition at line 284 of file rawcommn.h.

#define VERSION_SRAWOBJATTR   5

Definition at line 259 of file rawcommn.h.

Referenced by rawQueryFile(), rawQueryPrint(), and rawQueryString().

#define WORK_LEN   20

Definition at line 285 of file rawcommn.h.


Enumeration Type Documentation

enum ACTION
Enumerator:
ARCHIVE 
ARCHIVE_MGR 
ARCHIVE_RECORD 
ARCHIVE_OVER 
CREATE_ARCHIVE 
CLOSE 
REMOVE 
REMOVE_MGR 
FILE_CHECK 
OPEN 
QUERY 
QUERY_ARCHIVE 
QUERY_ARCHIVE_MGR 
QUERY_REMOVE 
QUERY_REMOVE_MGR 
RETRIEVE 
RETRIEVE_RECORD 
RETRIEVE_STAGE 
STAGE 
QUERY_UNSTAGE 
UNSTAGE 
QUERY_POOL 
QUERY_WORKSPACE 
QUERY_STAGE 
ARCHIVE_TO_CACHE 
ARCHIVE_FROM_CACHE 
QUERY_RETRIEVE 
QUERY_ARCHIVE_OVER 
QUERY_ARCHIVE_TO_CACHE 
SPM_REQUEST_MOVER 
QUERY_RETRIEVE_RECORD 
QUERY_ARCHIVE_FROM_CACHE 
END_SESSION 
QUERY_ARCHIVE_RECORD 
STAGE_FROM_CACHE 
RETRIEVE_FROM_CACHE 
SEND_FROM_CACHE 
QUERY_RETRIEVE_STAGE 
COPY_RC_TO_FILESYSTEM 
RETRIEVE_TO_FILESYSTEM 
ARCHIVE_FROM_FILESYSTEM 
COPY_WC_TO_FILESYSTEM 
MIGRATE_CACHE_PATH 
QUERY_FILESERVER 
SEND_TO_FILESERVER 
RECEIVE_FROM_DM 
SHOW_ARCHIVES 

Definition at line 338 of file rawcommn.h.

Enumerator:
ARCH_ANY 
ARCH_TAPE 
ARCH_TAPE_MC 
MGR_TAPE 
ARCH_DISK 
ARCH_DAQ_DISK 

Definition at line 314 of file rawcommn.h.

enum FILETYPE
Enumerator:
FIXED_INTS4 
STREAM 

Definition at line 332 of file rawcommn.h.

Enumerator:
RETR_CLIENT 
RETR_STAGE_TEMP 
RETR_STAGE_PERM 
RETR_FILESYSTEM 

Definition at line 324 of file rawcommn.h.

enum STATUS
Enumerator:
STA_BEGIN_TRANS 
STA_NEXT_BUFFER 
STA_END_OF_FILE 
STA_END_OF_SESSION 
STA_ERROR 
STA_ERROR_EOF 
STA_FILE_STAGED 
STA_END_OF_FILE_NOT_STAGED 
STA_SEEK_BUFFER 
STA_ARCHIVE_AVAIL 
STA_SWITCH_SERVER 
STA_INFO 
STA_PURGED 
STA_NOT_PURGED 
STA_CACHE_FULL 
STA_CACHE_FILE_AWAY 
STA_ARCHIVE_NOT_AVAIL 
STA_NO_ACCESS 
STA_SWITCH_ENTRY 
STA_ENTRY_INFO 
STA_FILE_CACHED 
STA_CACHE_COPY 
STA_CACHE_COPY_ERROR 

Definition at line 439 of file rawcommn.h.


Variable Documentation

char cAdminUser[MAX_OWNER] = "goeri" [static]

Definition at line 236 of file rawcommn.h.

char cDataFSHigh1[16] = "/lustre_alpha/" [static]

Definition at line 232 of file rawcommn.h.

Referenced by rawGetFilelistEntries(), and rfio_open_gsidaq().

char cDataFSHigh2[16] = "/lustre/" [static]

Definition at line 233 of file rawcommn.h.

Referenced by rawGetFilelistEntries(), and rfio_open_gsidaq().

char cDataFSType[16] = "lustre" [static]

Definition at line 231 of file rawcommn.h.

char cForceMigPath[32] = "/ArchiveNow" [static]

Definition at line 237 of file rawcommn.h.

char cNodeMaster0[MAX_NODE] = "lxgstore" [static]

Definition at line 226 of file rawcommn.h.

Referenced by rfio_open_gsidaq().

char cNodeMasterE1[MAX_NODE] = "lxha05" [static]

Definition at line 227 of file rawcommn.h.

char cNodeMasterE2[MAX_NODE] = "lxha04" [static]

Definition at line 228 of file rawcommn.h.

const char cTooBig[8] = "(>=4GB)" [static]

Definition at line 222 of file rawcommn.h.

Referenced by rawQueryPrint(), and rawQueryString().

char* pcOS [static]

Definition at line 241 of file rawcommn.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines