17 #ifndef __RESOURCE_PROVIDER_MESSAGE_HPP__ 18 #define __RESOURCE_PROVIDER_MESSAGE_HPP__ 53 return stream <<
"SUBSCRIBE";
55 return stream <<
"UPDATE_STATE";
57 return stream <<
"UPDATE_OPERATION_STATUS";
59 return stream <<
"DISCONNECT";
61 return stream <<
"REMOVE";
106 std::ostream& stream,
111 switch (resourceProviderMessage.
type) {
118 return stream << subscribe->info;
127 << updateState->resourceProviderId <<
" " 128 << updateState->totalResources;
140 << updateOperationStatus->update.operation_uuid()
141 <<
") for framework " 142 << updateOperationStatus->update.framework_id()
143 <<
" (latest state: " 144 << updateOperationStatus->update.latest_status().state()
145 <<
", status update state: " 146 << updateOperationStatus->update.status().state() <<
")";
156 <<
"resource provider " 157 << disconnect->resourceProviderId;
162 resourceProviderMessage.
remove;
167 <<
"resource provider " 168 <<
remove->resourceProviderId;
178 #endif // __RESOURCE_PROVIDER_MESSAGE_HPP__ Definition: message.hpp:90
Definition: message.hpp:39
Option< UpdateState > updateState
Definition: message.hpp:98
Definition: option.hpp:29
Definition: message.hpp:67
Definition: message.hpp:85
UUID resourceVersion
Definition: message.hpp:75
Option< Remove > remove
Definition: message.hpp:101
Definition: resources.hpp:83
Definition: message.hpp:72
friend std::ostream & operator<<(std::ostream &stream, const Type &type)
Definition: message.hpp:50
ResourceProviderID resourceProviderId
Definition: message.hpp:87
ResourceProviderID resourceProviderId
Definition: message.hpp:74
hashmap< UUID, Operation > operations
Definition: message.hpp:77
#define CHECK_SOME(expression)
Definition: check.hpp:50
Type type
Definition: message.hpp:95
Option< Disconnect > disconnect
Definition: message.hpp:100
ResourceProviderInfo info
Definition: message.hpp:69
Option< Subscribe > subscribe
Definition: message.hpp:97
Option< UpdateOperationStatus > updateOperationStatus
Definition: message.hpp:99
#define UNREACHABLE()
Definition: unreachable.hpp:22
Definition: attributes.hpp:24
Type
Definition: message.hpp:41
ResourceProviderID resourceProviderId
Definition: message.hpp:92
UpdateOperationStatusMessage update
Definition: message.hpp:82
std::string stringify(int flags)
Definition: message.hpp:80
Resources totalResources
Definition: message.hpp:76