Static Public Member Functions

GridUtil Class Reference

#include <gridutil.hpp>

List of all members.

Static Public Member Functions

static std::string prependHome (std::string relPath)
static std::ostream & toStream (std::ostream &out, const std::vector< std::string > &v)
static std::ostream & toStream (std::ostream &out, const std::vector< GridClientSocketAddress > &v)
static int64_t currentTimeMillis ()
static std::vector< int8_t > getVersionNumeric ()

Detailed Description

Holder class for various utility functions.


Member Function Documentation

int64_t GridUtil::currentTimeMillis (  )  [static]

Returns current system time in milliseconds.

std::vector< int8_t > GridUtil::getVersionNumeric (  )  [static]
Returns:
A vector of 4 elements, representing the client version ([major, minor, revision, revision2]).
std::string GridUtil::prependHome ( std::string  relPath  )  [static]

Returns full path to file if the file was specified related to GridGain home.

Parameters:
relPath Relative path.
Returns:
Full path.
std::ostream & GridUtil::toStream ( std::ostream &  out,
const std::vector< GridClientSocketAddress > &  v 
) [static]

Outputs GridClientSocketAddress representation of a vector to stream.

Parameters:
out Target stream.
v Vector to output.
Returns:
Target stream (for chaining).
std::ostream & GridUtil::toStream ( std::ostream &  out,
const std::vector< std::string > &  v 
) [static]

Outputs string representation of a vector to stream.

Parameters:
out Target stream.
v Vector to output.
Returns:
Target stream (for chaining).

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends