11 #ifndef ORTE_SSTORE_BASE_H
12 #define ORTE_SSTORE_BASE_H
14 #include "orte_config.h"
16 #if !ORTE_DISABLE_FULL_SUPPORT
36 ORTE_DECLSPEC
int orte_sstore_base_open(
void);
38 #if !ORTE_DISABLE_FULL_SUPPORT
47 ORTE_DECLSPEC
int orte_sstore_base_select(
void);
57 ORTE_DECLSPEC
int orte_sstore_base_close(
void);
71 ORTE_DECLSPEC
extern int orte_sstore_base_output;
72 ORTE_DECLSPEC
extern opal_list_t orte_sstore_base_components_available;
79 #define ORTE_SSTORE_UNASSIGN_TYPE 0
80 #define ORTE_SSTORE_GLOBAL_TYPE 1
81 #define ORTE_SSTORE_LOCAL_TYPE 2
82 #define ORTE_SSTORE_TOOL_TYPE 4
83 #define ORTE_SSTORE_APP_TYPE 8
84 ORTE_DECLSPEC
extern int orte_sstore_context;
89 #define SSTORE_METADATA_LOCAL_CRS_COMP_STR CRS_METADATA_COMP
90 #define SSTORE_METADATA_LOCAL_PID_STR CRS_METADATA_PID
91 #define SSTORE_METADATA_LOCAL_CONTEXT_STR CRS_METADATA_CONTEXT
92 #define SSTORE_METADATA_LOCAL_MKDIR_STR CRS_METADATA_MKDIR
93 #define SSTORE_METADATA_LOCAL_TOUCH_STR CRS_METADATA_TOUCH
95 #define SSTORE_METADATA_LOCAL_COMPRESS_COMP_STR ("# OPAL Compress Component: ")
96 #define SSTORE_METADATA_LOCAL_COMPRESS_POSTFIX_STR ("# OPAL Compress Postfix: ")
98 #define SSTORE_METADATA_LOCAL_SNAP_REF_FMT_STR ("# Local Snapshot Format Reference: ")
99 #define SSTORE_METADATA_GLOBAL_SNAP_SEQ_STR ("# Seq: ")
100 #define SSTORE_METADATA_GLOBAL_AMCA_PARAM_STR ("# AMCA: ")
102 #define SSTORE_METADATA_INTERNAL_DONE_SEQ_STR ("# Finished Seq: ")
103 #define SSTORE_METADATA_INTERNAL_TIME_STR ("# Timestamp: ")
104 #define SSTORE_METADATA_INTERNAL_PROCESS_STR ("# Process: ")
106 #define SSTORE_METADATA_INTERNAL_MIG_SEQ_STR ("# Migrate Seq: ")
107 #define SSTORE_METADATA_INTERNAL_DONE_MIG_SEQ_STR ("# Finished Migrate Seq: ")
113 ORTE_DECLSPEC
extern bool orte_sstore_base_is_checkpoint_available;
114 ORTE_DECLSPEC
extern char * orte_sstore_base_local_metadata_filename;
115 ORTE_DECLSPEC
extern char * orte_sstore_base_global_metadata_filename;
116 ORTE_DECLSPEC
extern char * orte_sstore_base_local_snapshot_fmt;
117 ORTE_DECLSPEC
extern char * orte_sstore_base_global_snapshot_dir;
118 ORTE_DECLSPEC
extern char * orte_sstore_base_global_snapshot_ref;
119 ORTE_DECLSPEC
extern char * orte_sstore_base_prelaunch_location;
121 ORTE_DECLSPEC
int orte_sstore_base_get_global_snapshot_ref(
char **name_str, pid_t pid);
126 ORTE_DECLSPEC
int orte_sstore_base_metadata_read_next_seq_num(FILE *file);
127 ORTE_DECLSPEC
int orte_sstore_base_metadata_read_next_token(FILE *file,
char **token,
char **value);
128 ORTE_DECLSPEC
int orte_sstore_base_metadata_seek_to_seq_num(FILE *file,
int seq_num);
131 ORTE_DECLSPEC
int orte_sstore_base_get_all_snapshots(
opal_list_t *all_snapshots,
char *basedir);
138 ORTE_DECLSPEC
int orte_sstore_base_tool_request_restart_handle(orte_sstore_base_handle_t *handle,
139 char *basedir,
char *ref,
int seq,
141 ORTE_DECLSPEC
int orte_sstore_base_tool_get_attr(orte_sstore_base_handle_t handle,
orte_sstore_base_key_t key,
char **value);
Structure for SSTORE modules.
Definition: sstore.h:359
Distributed Stable Storage (SStore) Interface.
Structure for SSTORE components.
Definition: sstore.h:340
Runtime Messaging Layer (RML) Communication Interface.
BEGIN_C_DECLS typedef uint32_t orte_sstore_base_key_t
Keys accepted as metadata.
Definition: sstore.h:36
Local and Global snapshot information structure Primarily used by orte-restart as an abstract way to ...
Definition: sstore.h:110
Definition: opal_list.h:147