#include <arcane/impl/ArcaneSession.h>
Public Member Functions | |
| ArcaneSession (IApplication *) | |
| virtual void | build () |
| Constructs the instance members. The instance is not usable until this method has been called. This method must be called before initialize(). | |
| virtual void | writeExecInfoFile () |
| Writes the execution information file. | |
| virtual void | endSession (int ret_val) |
| Ends the session with the return code ret_val. | |
| virtual void | setCaseName (String casename) |
| virtual void | setLogAndErrorFiles (ISubDomain *sd) |
| Positions the file names for logs and errors. | |
| Public Member Functions inherited from Arcane::Session | |
| Session (IApplication *) | |
| virtual void | initialize () |
| Initializes the instance. The instance is not usable until this method has been called. | |
| virtual IBase * | objectParent () const |
| Parent of this object. | |
| virtual String | objectNamespaceURI () const |
| Namespace of the object. | |
| virtual String | objectLocalName () const |
| Local name of the object. | |
| virtual VersionInfo | objectVersion () const |
| Service version number. | |
| virtual IServiceMng * | serviceMng () const |
| Service manager. | |
| virtual IRessourceMng * | ressourceMng () const |
| Resource manager. | |
| virtual IApplication * | application () const |
| Application. | |
| virtual ITraceMng * | traceMng () const |
| Trace manager. | |
| virtual const String & | fileName () const |
| virtual ISubDomain * | createSubDomain (const SubDomainBuildInfo &sdbi) |
| Creates a sub-domain with the parameters contained in sdbi. | |
| virtual SubDomainCollection | subDomains () |
| List of sub-domains of the session. | |
| virtual void | doAbort () |
| Performs an abort. | |
| virtual bool | checkIsValidCaseVersion (const String &version) |
| const char * | msgClassName () const |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
| Public Member Functions inherited from Arcane::ISession | |
| virtual | ~ISession ()=default |
| Frees resources. | |
| Public Member Functions inherited from Arcane::IBase | |
| virtual | ~IBase ()=default |
| Frees resources. | |
Private Member Functions | |
| void | _checkExecInfoFile () |
| void | _initSubDomain (ISubDomain *sd) |
| void | _writeExecInfoFileInit () |
| void | _writeExecInfoFile (int ret_val) |
| void | _setLogAndErrorFiles (ISubDomain *sd) |
Private Attributes | |
| IXmlDocumentHolder * | m_result_doc |
| Code results. | |
| Directory | m_listing_directory |
| Directory | m_output_directory |
| String | m_case_name |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::Session | |
| IApplication * | _application () const |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Definition at line 37 of file impl/ArcaneSession.h.
| Arcane::ArcaneSession::ArcaneSession | ( | IApplication * | application | ) |
Definition at line 44 of file ArcaneSession.cc.
|
virtual |
Definition at line 55 of file ArcaneSession.cc.
|
private |
Definition at line 248 of file ArcaneSession.cc.
|
privatevirtual |
Reimplemented from Arcane::Session.
Definition at line 95 of file ArcaneSession.cc.
|
inlineprivate |
Definition at line 66 of file impl/ArcaneSession.h.
|
private |
Definition at line 192 of file ArcaneSession.cc.
|
virtual |
Constructs the instance members. The instance is not usable until this method has been called. This method must be called before initialize().
Reimplemented from Arcane::Session.
Definition at line 64 of file ArcaneSession.cc.
References Arcane::Session::application(), Arcane::IParallelSuperMng::barrier(), Arcane::Session::build(), Arcane::String::empty(), Arcane::Directory::file(), Arcane::platform::getCurrentDirectory(), Arcane::TraceAccessor::info(), and Arcane::IParallelSuperMng::isMasterIO().
Referenced by Arcane::ArcaneCodeService::createSession().
|
virtual |
Ends the session with the return code ret_val.
Reimplemented from Arcane::Session.
Definition at line 270 of file ArcaneSession.cc.
|
virtual |
Definition at line 279 of file ArcaneSession.cc.
|
virtual |
Positions the file names for logs and errors.
This method is collective across all subdomains and replicas.
Definition at line 115 of file ArcaneSession.cc.
References Arcane::ISubDomain::allReplicaParallelMng(), Arcane::IParallelMng::barrier(), Arcane::Directory::createDirectory(), Arcane::Directory::file(), Arcane::platform::getEnvironmentVariable(), Arcane::IParallelReplication::hasReplication(), Arcane::ITraceMng::info(), Arcane::TraceAccessor::info(), Arcane::IParallelMng::isMasterIO(), Arcane::IParallelReplication::nbReplication(), Arcane::ISubDomain::nbSubDomain(), Arcane::ISubDomain::parallelMng(), Arcane::platform::removeFile(), Arcane::IParallelMng::replication(), Arcane::IParallelReplication::replicationRank(), Arcane::ITraceMng::setErrorFileName(), Arcane::ITraceMng::setLogFileName(), Arcane::ISubDomain::subDomainId(), and Arcane::IBase::traceMng().
|
virtual |
Writes the execution information file.
Reimplemented from Arcane::Session.
Definition at line 239 of file ArcaneSession.cc.
|
private |
Definition at line 58 of file impl/ArcaneSession.h.
|
private |
Definition at line 56 of file impl/ArcaneSession.h.
|
private |
Definition at line 57 of file impl/ArcaneSession.h.
|
private |
Code results.
Definition at line 55 of file impl/ArcaneSession.h.