Skip to content
Snippets Groups Projects
Commit 5786539e authored by root's avatar root
Browse files

Update storage and computation models

parent 82c73d6a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo
# Import libraries
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo
from uuid import uuid4
class ComputationHost(StructuredNode):
ip=StringProperty()
uuid=StringProperty(unique_index=True, default=uuid4)
hostname=StringProperty()
hostName=StringProperty()
friendlyName=StringProperty()
workingdirectory=StringProperty()
workingDirectory=StringProperty()
@property
def serialize(self):
......@@ -16,7 +17,7 @@ class ComputationHost(StructuredNode):
"""
return {
'node_properties': {
'computationhost_node_properties': {
'ip': self.ip,
'uuid': self.uuid,
'hostName': self.hostName,
......
from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo
from uuid import uuid4
class StorageHost(StructuredNode):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment