#include <APIServerInstance.hpp>
Public Member Functions | |
APIServerInstance (ServiceMessage &m) | |
virtual | ~APIServerInstance () |
virtual bool | isStoppable () |
void | cleanupProcessResources (ServiceMessage &message) |
bool | isUser (ServiceMessage &message) |
void | dispatch (ServiceMessage &message) |
Public Attributes | |
ServerQueueManager | queueManager |
ServerRegistrationManager | registrationManager |
ServerMacroSpaceManager | macroSpaceManager |
Protected Attributes | |
APIServerInstance * | next |
char | userid [MAX_USERID_LENGTH] |
Friends | |
class | APIServer |
Definition at line 47 of file APIServerInstance.hpp.
APIServerInstance::APIServerInstance | ( | ServiceMessage & | m | ) |
Definition at line 46 of file APIServerInstance.cpp.
References ServiceMessage::userid, and userid.
|
inlinevirtual |
Definition at line 52 of file APIServerInstance.hpp.
void APIServerInstance::cleanupProcessResources | ( | ServiceMessage & | message | ) |
Cleanup sessions specific resources after a Rexx process terminates.
message | The service message with the session information. |
Definition at line 88 of file APIServerInstance.cpp.
References ServerMacroSpaceManager::cleanupProcessResources(), ServerQueueManager::cleanupProcessResources(), ServerRegistrationManager::cleanupProcessResources(), macroSpaceManager, queueManager, registrationManager, and ServiceMessage::session.
Referenced by APIServer::cleanupProcessResources().
void APIServerInstance::dispatch | ( | ServiceMessage & | message | ) |
Dispatch an API server control message.
message | The control message parameter. |
Definition at line 56 of file APIServerInstance.cpp.
References APIManager, ServerMacroSpaceManager::dispatch(), ServerQueueManager::dispatch(), ServerRegistrationManager::dispatch(), MacroSpaceManager, macroSpaceManager, ServiceMessage::messageTarget, QueueManager, queueManager, RegistrationManager, and registrationManager.
Referenced by APIServer::processMessages().
|
virtual |
Test to see if the api server is in a state where it can be stopped. A stoppable state implies there are no session specific resources currently active in the server.
Definition at line 102 of file APIServerInstance.cpp.
References ServerMacroSpaceManager::isStoppable(), ServerQueueManager::isStoppable(), ServerRegistrationManager::isStoppable(), macroSpaceManager, queueManager, and registrationManager.
Referenced by APIServer::isStoppable().
|
inline |
Definition at line 56 of file APIServerInstance.hpp.
References ServiceMessage::userid, and userid.
Referenced by APIServer::getInstance().
|
friend |
Definition at line 49 of file APIServerInstance.hpp.
ServerMacroSpaceManager APIServerInstance::macroSpaceManager |
Definition at line 63 of file APIServerInstance.hpp.
Referenced by cleanupProcessResources(), dispatch(), and isStoppable().
|
protected |
Definition at line 67 of file APIServerInstance.hpp.
Referenced by APIServer::getInstance(), and APIServer::isStoppable().
ServerQueueManager APIServerInstance::queueManager |
Definition at line 59 of file APIServerInstance.hpp.
Referenced by cleanupProcessResources(), dispatch(), and isStoppable().
ServerRegistrationManager APIServerInstance::registrationManager |
Definition at line 61 of file APIServerInstance.hpp.
Referenced by cleanupProcessResources(), dispatch(), and isStoppable().
|
protected |
Definition at line 68 of file APIServerInstance.hpp.
Referenced by APIServerInstance(), and isUser().