NodeLogEntry Class Reference

#include <NodeLogEntry.h>

List of all members.

Public Member Functions

 NodeLogEntry ()
 NodeLogEntry (double timeStamp, char type, int subSpaceId, IPAddress ip1)
 NodeLogEntry (double timeStamp, char type, int subSpaceId, IPAddress ip1, IPAddress ip2, double misc1)
 NodeLogEntry (double timeStamp, char type, int subSpaceId, IPAddress ip1, IPAddress ip2, bool suc)
 NodeLogEntry (double timeStamp, char type, int subSpaceId, IPAddress ip1, IPAddress ip2, double lastMessage, bool suc)
 NodeLogEntry (double timeStamp, char type, int subSpaceId, IPAddress ip1, IPAddress ip2, double misc1, double misc2)

Public Attributes

double timeStamp
char type
int subSpaceId
IPAddress ip1
IPAddress ip2
double misc1
double misc2
bool suc

Friends

std::ostream & operator<< (std::ostream &Stream, const NodeLogEntry nl)


Constructor & Destructor Documentation

NodeLogEntry::NodeLogEntry (  ) 

00002                            {
00003 
00004 }

NodeLogEntry::NodeLogEntry ( double  timeStamp,
char  type,
int  subSpaceId,
IPAddress  ip1 
)

00041                                                                                     {
00042         this->timeStamp = timeStamp;
00043         this->type = type;
00044         this->subSpaceId = subSpaceId;
00045         this->ip1 = ip1;
00046 }

NodeLogEntry::NodeLogEntry ( double  timeStamp,
char  type,
int  subSpaceId,
IPAddress  ip1,
IPAddress  ip2,
double  misc1 
)

00033                                                                                                                  {
00034         this->timeStamp = timeStamp;
00035         this->type = type;
00036         this->subSpaceId = subSpaceId;
00037         this->ip1 = ip1;
00038         this->ip2 = ip2;
00039         this->misc1 = misc1;
00040 }

NodeLogEntry::NodeLogEntry ( double  timeStamp,
char  type,
int  subSpaceId,
IPAddress  ip1,
IPAddress  ip2,
bool  suc 
)

00006                                                                                                              {
00007         this->timeStamp = timeStamp;
00008         this->type = type;
00009         this->subSpaceId = subSpaceId;
00010         this->ip1 = ip1;
00011         this->ip2 = ip2;
00012         this->suc = suc;
00013 }

NodeLogEntry::NodeLogEntry ( double  timeStamp,
char  type,
int  subSpaceId,
IPAddress  ip1,
IPAddress  ip2,
double  lastMessage,
bool  suc 
)

00015                                                                                                                                  {
00016         this->timeStamp = timeStamp;
00017         this->type = type;
00018         this->subSpaceId = subSpaceId;
00019         this->ip1 = ip1;
00020         this->ip2 = ip2;
00021         this->misc2 = lastMessage;
00022         this->suc = suc;
00023 }

NodeLogEntry::NodeLogEntry ( double  timeStamp,
char  type,
int  subSpaceId,
IPAddress  ip1,
IPAddress  ip2,
double  misc1,
double  misc2 
)

00024                                                                                                                                {
00025         this->timeStamp = timeStamp;
00026         this->type = type;
00027         this->subSpaceId = subSpaceId;
00028         this->ip1 = ip1;
00029         this->ip2 = ip2;
00030         this->misc1 = misc1;
00031         this->misc2 = misc2;
00032 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const NodeLogEntry  nl 
) [friend]

00048 {
00049         Stream << "["<< nl.timeStamp <<"] ";
00050         switch ( nl.type ) {
00051                 case 1: { Stream <<"Created Responsible Node for SubSpace " << nl.subSpaceId << " It was: " << nl.suc << " \n"; break; }
00052                 case 2: { Stream << "Created Backup Node for SubSpace " << nl.subSpaceId << " . ResponsibleNodeIP: " << nl.ip1 << " I'm " << nl.ip2 << "It was: " << nl.suc << " \n"; break; }
00053                 case 3: { Stream << "Created Intermediate node for SubSpace " << nl.subSpaceId << " . ResponsibleNodeIp: " << nl.ip1 << " I'm " << nl.ip2 << "It was: " << nl.suc << "\n"; break; }
00054                 
00055                 case 11: { Stream << "Deleted Responsible Node SubSpaceId " << nl.subSpaceId << " requested by " << nl.ip1 << " It was " << nl.suc <<"\n"; break;}
00056                 case 12: { Stream << "Deleted Backup Node SubSpaceId " << nl.subSpaceId << " requested by " << nl.ip1 << " . Responsible Node has " << nl.ip2 << " last message was received " << nl.misc2 << " It was: " << nl.suc << " \n";break; }
00057                 case 13: { Stream << "Deleted Intermediate Node SubSpaceId " << nl.subSpaceId << " requested by " << nl.ip1 << " ResponsibleNode has " << nl.ip2 << " . I had " << nl.misc1 << " Players in my List. It was: "<< nl.suc << "\n"; break; }
00058                 
00059                 case 20: { Stream << "Initiated Replace of Intermediate Node for SubSpaceId " << nl.subSpaceId << " replacing: " << nl.ip1 << " ResponsibleNode " << nl.ip2 << " my delay: " << nl.misc1 << " to replace delay: " << nl.misc2 << "\n"; break; }
00060                 case 21: { Stream << " Got a new Backup Node for SubSpace: " << nl.subSpaceId << " Its IP: " << nl.ip1 << " old one:" << nl.ip2 << "\n"; break; }
00061                 case 22: { Stream << "Requested new Backup Node for SubSpaceId: " << nl.subSpaceId << " old Ip: " << nl.ip1 << "\n"; break; }
00062                 case 23: { Stream << "Requested new Intermediate Node for SubSpaceId " << nl.subSpaceId << "\n"; break; }
00063                 case 24: { Stream << "Got a new Intermediate Node for SubSpace: " << nl.subSpaceId << " Its Ip: " << nl.ip1; break; }
00064                 case 25: { Stream << "Replacing Intermediate Node SubSpaceId: " << nl.subSpaceId << "oldIp: " << nl.ip1 << " newIp: " << nl.ip2 << " . Sending " << nl.misc1 << " PlayerIps to the new IntermediateNode\n"; break; }
00065                 case 26: { Stream << "Requesting deletion of IntermediateNode for SubSpaceId " << nl.subSpaceId << " IP: " << nl.ip1 << "\n"; break; }
00066                 case 27: { Stream << "Replacing ResponsibleNode Id: " << nl.subSpaceId << " Old Ip: " << nl.ip1 << " PingDestip: " << nl.ip2 << "Sending ReplaceMsg to " << nl.misc1 << " Players \n"; break; }
00067                 case 30: { Stream << "Ping failed: " << nl.ip1 << " . #: "<< nl.misc1 <<"\n"; break; }
00068                 case 31: { Stream << "Create failed: " << nl.ip1 << " .#: "<< nl.misc1 << " SubSpaceId: " <<nl.subSpaceId << " NodeType: " << nl.misc2 << "\n";break;}
00069                 case 32: { Stream << "SubScribe failed: " << nl.ip1 << " .#: " << nl.misc1 << " SubSpaceId: " << nl.subSpaceId << " PlayerId: " << nl.misc2; break; }
00070                 case 33: { Stream << "UnSubScribe failed: " << nl.ip1 << " .#: " << nl.misc1 << " SubSpaceId: " << nl.subSpaceId << " PlayerId: " << nl.misc2; break; }
00071                 
00072                 default: Stream << "Unknown Log Entry\n";
00073         }
00074         return Stream;
00075 }


Member Data Documentation

double NodeLogEntry::timeStamp

char NodeLogEntry::type

int NodeLogEntry::subSpaceId

IPAddress NodeLogEntry::ip1

IPAddress NodeLogEntry::ip2

double NodeLogEntry::misc1

double NodeLogEntry::misc2

bool NodeLogEntry::suc


The documentation for this class was generated from the following files:
Generated on Thu Apr 17 13:19:29 2008 for ITM OverSim by  doxygen 1.5.3