blob: fd126b11775deaa7165fe41d7418d43b7ecfa825 [file] [log] [blame]
/*=========================================================================
* Copyright (c) 2010-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* one or more patents listed at http://www.pivotal.io/patents.
*=========================================================================
*/
#ifndef __CLIENT_CONNECTION_RESPONSE__
#define __CLIENT_CONNECTION_RESPONSE__
#include "ServerLocationResponse.hpp"
#include "ServerLocation.hpp"
#include "../SharedPtr.hpp"
namespace gemfire
{
class ClientConnectionResponse : public ServerLocationResponse
{
public:
ClientConnectionResponse():ServerLocationResponse()
/* adongre
* CID 28927: Uninitialized scalar field (UNINIT_CTOR)
*/
,m_serverFound(false)
{
}
virtual ClientConnectionResponse* fromData( DataInput& input );
virtual int8_t typeId( ) const;
virtual uint32_t objectSize() const;
virtual ServerLocation getServerLocation() const;
void printInfo()
{
m_server.printInfo();
}
static Serializable* create()
{
return new ClientConnectionResponse();
}
virtual ~ClientConnectionResponse()
{}
bool serverFound() { return m_serverFound; }
private:
bool m_serverFound;
ServerLocation m_server;
};
typedef SharedPtr<ClientConnectionResponse> ClientConnectionResponsePtr;
}
#endif