''

def initFromStream(self, streamStr):

    self.entities = 0
    self.clients = 0
    self.proxies = 0
    self.consolePort = 0
    self.genuuid_sections = 0
    reader = MessageStream.MessageStreamReader(streamStr)
    self.uid = reader.readInt32()
    self.username = reader.readString()
    self.componentType = reader.readInt32()
    self.componentID = reader.readUint64()
    self.componentIDEx = reader.readUint64()
    self.globalOrderID = reader.readInt32()
    self.groupOrderID = reader.readInt32()
    self.genuuid_sections = reader.readInt32()
    self.intaddr = socket.inet_ntoa(reader.read(4))
    self.intport = socket.ntohs(reader.readUint16())
    self.extaddr = socket.inet_ntoa(reader.read(4))
    self.extport = socket.ntohs(reader.readUint16())
    self.extaddrEx = reader.readString()
    self.pid = reader.readUint32()
    self.cpu = reader.readFloat()
    self.mem = reader.readFloat()
    self.usedmem = reader.readUint32()
    self.state = reader.readInt8()
    self.machineID = reader.readUint32()
    self.extradata = reader.readUint64()
    self.extradata1 = reader.readUint64()
    self.extradata2 = reader.readUint64()
    self.extradata3 = reader.readUint64()
    self.backaddr = reader.readUint32()
    self.backport = reader.readUint16()
    self.componentName = Define.COMPONENT_NAME[self.componentType]
    self.consolePort = self.extradata3
    if (self.componentType in [Define.BASEAPP_TYPE, Define.CELLAPP_TYPE]):
        self.fullname = ('%s%s' % (self.componentName, self.groupOrderID))
    else:
        self.fullname = self.componentName
    if (self.componentType in [Define.BASEAPP_TYPE, Define.CELLAPP_TYPE]):
        self.entities = self.extradata
    if (self.componentType == Define.BASEAPP_TYPE):
        self.clients = self.extradata1
    if (self.componentType == Define.BASEAPP_TYPE):
        self.proxies = self.extradata2
