1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
|
.TH ACE_Service_Repository 3 "1 Dec 2001" "ACE" \" -*- nroff -*-
.ad l
.nh
.SH NAME
ACE_Service_Repository \- Contains all the services offered by a Service Configurator-based application.
.SH SYNOPSIS
.br
.PP
\fC#include <Service_Repository.h>\fR
.PP
.SS Public Types
.in +1c
.ti -1c
.RI "enum { \fBDEFAULT_SIZE\fR = ACE_DEFAULT_SERVICE_REPOSITORY_SIZE }"
.br
.in -1c
.SS Public Methods
.in +1c
.ti -1c
.RI "\fBACE_Service_Repository\fR (void)"
.br
.RI "\fIInitialize the repository.\fR"
.ti -1c
.RI "\fBACE_Service_Repository\fR (int size)"
.br
.RI "\fIInitialize the repository.\fR"
.ti -1c
.RI "int \fBopen\fR (int size = DEFAULT_SIZE)"
.br
.RI "\fIInitialize the repository.\fR"
.ti -1c
.RI "\fB~ACE_Service_Repository\fR (void)"
.br
.RI "\fIClose down the repository and free up dynamically allocated resources.\fR"
.ti -1c
.RI "int \fBclose\fR (void)"
.br
.RI "\fIClose down the repository and free up dynamically allocated resources.\fR"
.ti -1c
.RI "int \fBfini\fR (void)"
.br
.RI "\fIFinalize all the services by calling <fini> and deleting dynamically allocated services.\fR"
.ti -1c
.RI "int \fBinsert\fR (const \fBACE_Service_Type\fR *)"
.br
.RI "\fIInsert a new service record. Returns -1 when the service repository is full and 0 on success.\fR"
.ti -1c
.RI "int \fBfind\fR (const \fBACE_TCHAR\fR name[], const \fBACE_Service_Type\fR **srp = 0, int ignore_suspended = 1)"
.br
.ti -1c
.RI "int \fBremove\fR (const \fBACE_TCHAR\fR[])"
.br
.RI "\fIRemove an existing service record.\fR"
.ti -1c
.RI "int \fBresume\fR (const \fBACE_TCHAR\fR[], const \fBACE_Service_Type\fR ** = 0)"
.br
.RI "\fIResume a service record.\fR"
.ti -1c
.RI "int \fBsuspend\fR (const \fBACE_TCHAR\fR[], const \fBACE_Service_Type\fR ** = 0)"
.br
.RI "\fISuspend a service record.\fR"
.ti -1c
.RI "int \fBcurrent_size\fR (void) const"
.br
.RI "\fIReturn the current size of the repository.\fR"
.ti -1c
.RI "int \fBtotal_size\fR (void) const"
.br
.RI "\fIReturn the total size of the repository.\fR"
.ti -1c
.RI "void \fBdump\fR (void) const"
.br
.RI "\fIDump the state of an object.\fR"
.in -1c
.SS Public Attributes
.in +1c
.ti -1c
.RI "\fBACE_ALLOC_HOOK_DECLARE\fR"
.br
.RI "\fIDeclare the dynamic allocation hooks.\fR"
.in -1c
.SS Static Public Methods
.in +1c
.ti -1c
.RI "ACE_Service_Repository* \fBinstance\fR (int size = ACE_Service_Repository::DEFAULT_SIZE)"
.br
.RI "\fIGet pointer to a process-wide .\fR"
.ti -1c
.RI "ACE_Service_Repository* \fBinstance\fR (ACE_Service_Repository *)"
.br
.RI "\fISet pointer to a process-wide and return existing pointer.\fR"
.ti -1c
.RI "void \fBclose_singleton\fR (void)"
.br
.RI "\fIDelete the dynamically allocated Singleton.\fR"
.in -1c
.SS Private Methods
.in +1c
.ti -1c
.RI "int \fBfind_i\fR (const \fBACE_TCHAR\fR service_name[], const \fBACE_Service_Type\fR ** = 0, int ignore_suspended = 1)"
.br
.RI "\fILocates <service_name>. Must be called without locks being held...\fR"
.in -1c
.SS Private Attributes
.in +1c
.ti -1c
.RI "const \fBACE_Service_Type\fR** \fBservice_vector_\fR"
.br
.RI "\fIContains all the configured services.\fR"
.ti -1c
.RI "int \fBcurrent_size_\fR"
.br
.RI "\fICurrent number of services.\fR"
.ti -1c
.RI "int \fBtotal_size_\fR"
.br
.RI "\fIMaximum number of services.\fR"
.in -1c
.SS Static Private Attributes
.in +1c
.ti -1c
.RI "ACE_Service_Repository* \fBsvc_rep_\fR"
.br
.RI "\fIPointer to a process-wide .\fR"
.ti -1c
.RI "int \fBdelete_svc_rep_\fR"
.br
.RI "\fIMust delete the <svc_rep_> if non-0.\fR"
.in -1c
.SS Friends
.in +1c
.ti -1c
.RI "class \fBACE_Service_Repository_Iterator\fR"
.br
.in -1c
.SH DETAILED DESCRIPTION
.PP
Contains all the services offered by a Service Configurator-based application.
.PP
.PP
This class contains a vector of *'s and allows an administrative entity to centrally manage and control the behavior of application services. Note that if services are removed from the middle of the repository the order won't necessarily be maintained since the <remove> method performs compaction. However, the common case is not to remove services, so typically they are deleted in the reverse order that they were added originally.
.PP
.SH MEMBER ENUMERATION DOCUMENTATION
.PP
.SS anonymous enum
.PP
\fBEnumeration values:\fR
.in +1c
.TP
\fB\fIDEFAULT_SIZE\fR \fR
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP
.SS ACE_Service_Repository::ACE_Service_Repository (void)
.PP
Initialize the repository.
.PP
.SS ACE_Service_Repository::ACE_Service_Repository (int size)
.PP
Initialize the repository.
.PP
.SS ACE_Service_Repository::~ACE_Service_Repository (void)
.PP
Close down the repository and free up dynamically allocated resources.
.PP
.SH MEMBER FUNCTION DOCUMENTATION
.PP
.SS int ACE_Service_Repository::close (void)
.PP
Close down the repository and free up dynamically allocated resources.
.PP
.SS void ACE_Service_Repository::close_singleton (void)\fC [static]\fR
.PP
Delete the dynamically allocated Singleton.
.PP
.SS int ACE_Service_Repository::current_size (void) const
.PP
Return the current size of the repository.
.PP
.SS void ACE_Service_Repository::dump (void) const
.PP
Dump the state of an object.
.PP
.SS int ACE_Service_Repository::find (const \fBACE_TCHAR\fR name[], const \fBACE_Service_Type\fR ** srp = 0, int ignore_suspended = 1)
.PP
Locate an entry with <name> in the table. If <ignore_suspended> is set then only consider services marked as resumed. If the caller wants the located entry, pass back a pointer to the located entry via <srp>. If <name> is not found, -1 is returned. If <name> is found, but it is suspended and the caller wants to ignore suspended services a -2 is returned.
.SS int ACE_Service_Repository::find_i (const \fBACE_TCHAR\fR service_name[], const \fBACE_Service_Type\fR ** = 0, int ignore_suspended = 1)\fC [private]\fR
.PP
Locates <service_name>. Must be called without locks being held...
.PP
.SS int ACE_Service_Repository::fini (void)
.PP
Finalize all the services by calling <fini> and deleting dynamically allocated services.
.PP
.SS int ACE_Service_Repository::insert (const \fBACE_Service_Type\fR *)
.PP
Insert a new service record. Returns -1 when the service repository is full and 0 on success.
.PP
.SS ACE_Service_Repository * ACE_Service_Repository::instance (ACE_Service_Repository *)\fC [static]\fR
.PP
Set pointer to a process-wide and return existing pointer.
.PP
.SS ACE_Service_Repository * ACE_Service_Repository::instance (int size = ACE_Service_Repository::DEFAULT_SIZE)\fC [static]\fR
.PP
Get pointer to a process-wide .
.PP
.SS int ACE_Service_Repository::open (int size = DEFAULT_SIZE)
.PP
Initialize the repository.
.PP
.SS int ACE_Service_Repository::remove (const ACE_TCHAR[])
.PP
Remove an existing service record.
.PP
.SS int ACE_Service_Repository::resume (const ACE_TCHAR[], const \fBACE_Service_Type\fR ** = 0)
.PP
Resume a service record.
.PP
.SS int ACE_Service_Repository::suspend (const ACE_TCHAR[], const \fBACE_Service_Type\fR ** = 0)
.PP
Suspend a service record.
.PP
.SS int ACE_Service_Repository::total_size (void) const
.PP
Return the total size of the repository.
.PP
.SH FRIENDS AND RELATED FUNCTION DOCUMENTATION
.PP
.SS class ACE_Service_Repository_Iterator\fC [friend]\fR
.PP
.SH MEMBER DATA DOCUMENTATION
.PP
.SS ACE_Service_Repository::ACE_ALLOC_HOOK_DECLARE
.PP
Declare the dynamic allocation hooks.
.PP
.SS int ACE_Service_Repository::current_size_\fC [private]\fR
.PP
Current number of services.
.PP
.SS int ACE_Service_Repository::delete_svc_rep_\fC [static, private]\fR
.PP
Must delete the <svc_rep_> if non-0.
.PP
.SS const \fBACE_Service_Type\fR ** ACE_Service_Repository::service_vector_\fC [private]\fR
.PP
Contains all the configured services.
.PP
.SS ACE_Service_Repository * ACE_Service_Repository::svc_rep_\fC [static, private]\fR
.PP
Pointer to a process-wide .
.PP
.SS int ACE_Service_Repository::total_size_\fC [private]\fR
.PP
Maximum number of services.
.PP
.SH AUTHOR
.PP
Generated automatically by Doxygen for ACE from the source code.
|