Beispiel #1
0
 def __init__(self,rootUri="http://localhost",environmentManager=None,envId=None,nodeId=None):
     DefaultRestHandler.__init__(self,rootUri)
     self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.driverStatusHandler")
     self.environmentManager=environmentManager
     self.envId=envId   
     self.nodeId=nodeId
     self.valid_contentTypes.append("application/pollapli.driver.status+json")   
Beispiel #2
0
 def __init__(self,rootUri="http://localhost",environmentManager=None,envId=None):
     DefaultRestHandler.__init__(self,rootUri)
     self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.tasksHandler")
     self.environmentManager=environmentManager
     self.envId=envId
     self.valid_contentTypes.append("application/pollapli.taskList+json")   
     self.validGetParams.append('id')
Beispiel #3
0
 def __init__(self, rootUri="http://localhost"):
     DefaultRestHandler.__init__(self, rootUri)
     self.valid_contentTypes.append("application/pollapli.updateList+json")
     self.validGetParams.append('id')
     self.validGetParams.append('name')
     self.validGetParams.append('type')
     self.validGetParams.append('downloaded')
     self.validGetParams.append('installed')
Beispiel #4
0
 def __init__(self,rootUri="",environmentManager=None,envId=None):
     DefaultRestHandler.__init__(self,rootUri)
     self.environmentManager=environmentManager
     
     self.envId=envId
     self.valid_contentTypes.append("application/pollapli.nodeList+json")   
     self.validGetParams.append('id')
     self.validGetParams.append('type')
Beispiel #5
0
    def __init__(self, rootUri="", environmentManager=None, envId=None):
        DefaultRestHandler.__init__(self, rootUri)
        self.environmentManager = environmentManager

        self.envId = envId
        self.valid_contentTypes.append("application/pollapli.nodeList+json")
        self.validGetParams.append('id')
        self.validGetParams.append('type')
 def __init__(self,rootUri="",environmentManager=None):
     DefaultRestHandler.__init__(self,rootUri)
     self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.environmentsHandler")
     self.environmentManager=environmentManager
     
     self.valid_contentTypes.append("application/pollapli.environmentList+json")   
     self.validGetParams.append('id')
     self.validGetParams.append('status')
Beispiel #7
0
 def __init__(self,rootUri="http://localhost"):
     DefaultRestHandler.__init__(self,rootUri)
     self.valid_contentTypes.append("application/pollapli.updateList+json")  
     self.validGetParams.append('id')
     self.validGetParams.append('name')
     self.validGetParams.append('type')
     self.validGetParams.append('downloaded')
     self.validGetParams.append('installed') 
Beispiel #8
0
    def __init__(self,rootUri="http://localhost"):
        DefaultRestHandler.__init__(self,rootUri)
        self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.pluginsHandler")
        self.environmentManager=environmentManager
        self.envId=envId   
        self.valid_contentTypes.append("application/pollapli.addonList+json")   
        subPath=self.rootUri+"/"+str(self.envId)
        self.putChild("addons",NodesHandler(subPath,self.environmentManager,self.envId)  
)
    def __init__(self, rootUri="", environmentManager=None):
        DefaultRestHandler.__init__(self, rootUri)
        self.logger = log.PythonLoggingObserver(
            "dobozweb.core.server.rest.environmentsHandler")
        self.environmentManager = environmentManager

        self.valid_contentTypes.append(
            "application/pollapli.environmentList+json")
        self.validGetParams.append('id')
        self.validGetParams.append('status')
Beispiel #10
0
    def __init__(self,rootUri="",environmentManager=None,envId=None,nodeId=None):
        DefaultRestHandler.__init__(self,rootUri)
        self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.driverHandler")
        self.environmentManager=environmentManager
        self.envId=envId   
        self.nodeId=nodeId
        self.valid_contentTypes.append("application/pollapli.driver+json")   
        subPath=self.rootUri+"/status"
        self.putChild("status",DriverStatusHandler(subPath,self.environmentManager,self.envId,self.nodeId)  
)
Beispiel #11
0
 def __init__(self, rootUri="http://localhost", updateId=None):
     DefaultRestHandler.__init__(self, rootUri)
     self.updateId = updateId
     self.valid_contentTypes.append("application/pollapli.update+json")
     self.validGetParams.append('id')
     self.validGetParams.append('name')
     self.validGetParams.append('type')
     self.validGetParams.append('downloaded')
     self.validGetParams.append('installed')
     subPath = self.rootUri + "/status"
     self.putChild("status", UpdateStatusHandler(subPath, self.updateId))
Beispiel #12
0
 def __init__(self, rootUri="http://localhost"):
     DefaultRestHandler.__init__(self, rootUri)
     self.logger = log.PythonLoggingObserver(
         "dobozweb.core.server.rest.pluginsHandler")
     self.environmentManager = environmentManager
     self.envId = envId
     self.valid_contentTypes.append("application/pollapli.addonList+json")
     subPath = self.rootUri + "/" + str(self.envId)
     self.putChild(
         "addons", NodesHandler(subPath, self.environmentManager,
                                self.envId))
Beispiel #13
0
    def __init__(self,rootUri="http://localhost"):
        DefaultRestHandler.__init__(self,rootUri)
        self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.configHandler")
        self.valid_contentTypes.append("application/pollapli.config+json")   

        subPath=self.rootUri+"/updates"
        self.putChild("updates",UpdatesHandler(subPath))
        subPath=self.rootUri+"/events"
        self.putChild("events",GlobalEventsHandler(subPath))
        subPath=self.rootUri+"/files"
        self.putChild("files",FilesHandler(subPath))
Beispiel #14
0
 def __init__(self,
              rootUri="http://localhost",
              environmentManager=None,
              envId=None):
     DefaultRestHandler.__init__(self, rootUri)
     self.logger = log.PythonLoggingObserver(
         "dobozweb.core.server.rest.tasksHandler")
     self.environmentManager = environmentManager
     self.envId = envId
     self.valid_contentTypes.append("application/pollapli.taskList+json")
     self.validGetParams.append('id')
Beispiel #15
0
    def __init__(self,rootUri="http://localhost",updateId=None):
        DefaultRestHandler.__init__(self,rootUri)
        self.updateId=updateId
        self.valid_contentTypes.append("application/pollapli.update+json")  
        self.validGetParams.append('id')
        self.validGetParams.append('name')
        self.validGetParams.append('type')
        self.validGetParams.append('downloaded')
        self.validGetParams.append('installed') 
        subPath=self.rootUri+"/status"
        self.putChild("status",UpdateStatusHandler(subPath,self.updateId)  
)
Beispiel #16
0
    def __init__(self,rootUri="http://localhost",environmentManager=None,envId=None,taskId=None):
        DefaultRestHandler.__init__(self,rootUri)
        self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.taskHandler")
        self.environmentManager=environmentManager
        self.envId=envId
        self.taskId=taskId
        self.valid_contentTypes.append("application/pollapli.task+json")   
        self.validGetParams.append('id')
        #self.validGetParams.append('type')
        subPath=self.rootUri+"/status"
        self.putChild("status",TaskStatusHandler(subPath,self.environmentManager,self.envId,self.taskId)  
)
Beispiel #17
0
    def __init__(self, rootUri="http://localhost"):
        DefaultRestHandler.__init__(self, rootUri)
        self.logger = log.PythonLoggingObserver(
            "dobozweb.core.server.rest.configHandler")
        self.valid_contentTypes.append("application/pollapli.config+json")

        subPath = self.rootUri + "/updates"
        self.putChild("updates", UpdatesHandler(subPath))
        subPath = self.rootUri + "/events"
        self.putChild("events", GlobalEventsHandler(subPath))
        subPath = self.rootUri + "/files"
        self.putChild("files", FilesHandler(subPath))
    def __init__(self,rootUri="",environmentManager=None,envId=None):
        DefaultRestHandler.__init__(self,rootUri)
        self.logger=log.PythonLoggingObserver("dobozweb.core.server.rest.environmentsHandler")
        self.environmentManager=environmentManager
        self.envId=envId   
        self.valid_contentTypes.append("application/pollapli.environment+json")   
        
        subPath=self.rootUri+"/nodes"
        self.putChild("nodes",NodesHandler(subPath,self.environmentManager,self.envId)  
)
        subPath=self.rootUri+"/tasks"
        self.putChild("tasks",TasksHandler(subPath,self.environmentManager,self.envId)  
)
Beispiel #19
0
 def __init__(self,rootUri="http://localhost"):
     DefaultRestHandler.__init__(self,rootUri)  
     self.valid_contentTypes.append("application/pollapli.eventList+json")   
     self.validGetParams.append('altTimeStamp')
     
     
     self._signal_channel="global_event_listener"
     self.signalHandler=SignalHander(self._signal_channel)
     self.signalHandler.add_handler(channel="driver_manager",handler=self._signal_Handler)   
     self.signalHandler.add_handler(channel="update_manager",handler=self._signal_Handler)
     self.signalHandler.add_handler(channel="environment_manager",handler=self._signal_Handler)
     self.signalHandler.add_handler(channel="node_manager",handler=self._signal_Handler)
     self.lastSignal=DispatchableEvent()
     
     self.clientHandler=ClientHandler()
    def __init__(self, rootUri="", environmentManager=None, envId=None):
        DefaultRestHandler.__init__(self, rootUri)
        self.logger = log.PythonLoggingObserver(
            "dobozweb.core.server.rest.environmentsHandler")
        self.environmentManager = environmentManager
        self.envId = envId
        self.valid_contentTypes.append("application/pollapli.environment+json")

        subPath = self.rootUri + "/nodes"
        self.putChild(
            "nodes", NodesHandler(subPath, self.environmentManager,
                                  self.envId))
        subPath = self.rootUri + "/tasks"
        self.putChild(
            "tasks", TasksHandler(subPath, self.environmentManager,
                                  self.envId))
Beispiel #21
0
    def __init__(self, rootUri="http://localhost"):
        DefaultRestHandler.__init__(self, rootUri)
        self.valid_contentTypes.append("application/pollapli.eventList+json")
        self.validGetParams.append('altTimeStamp')

        self._signal_channel = "global_event_listener"
        self.signalHandler = SignalHander(self._signal_channel)
        self.signalHandler.add_handler(channel="driver_manager",
                                       handler=self._signal_Handler)
        self.signalHandler.add_handler(channel="update_manager",
                                       handler=self._signal_Handler)
        self.signalHandler.add_handler(channel="environment_manager",
                                       handler=self._signal_Handler)
        self.signalHandler.add_handler(channel="node_manager",
                                       handler=self._signal_Handler)
        self.lastSignal = DispatchableEvent()

        self.clientHandler = ClientHandler()
Beispiel #22
0
 def __init__(self,
              rootUri="http://localhost",
              environmentManager=None,
              envId=None,
              taskId=None):
     DefaultRestHandler.__init__(self, rootUri)
     self.logger = log.PythonLoggingObserver(
         "dobozweb.core.server.rest.taskHandler")
     self.environmentManager = environmentManager
     self.envId = envId
     self.taskId = taskId
     self.valid_contentTypes.append("application/pollapli.task+json")
     self.validGetParams.append('id')
     #self.validGetParams.append('type')
     subPath = self.rootUri + "/status"
     self.putChild(
         "status",
         TaskStatusHandler(subPath, self.environmentManager, self.envId,
                           self.taskId))
Beispiel #23
0
 def __init__(self,rootUri="http://localhost",id=None):
     DefaultRestHandler.__init__(self,rootUri)     
     self.id=id
     self.valid_contentTypes.append("application/pollapli.file+json")   
Beispiel #24
0
 def __init__(self,rootUri=""):
     DefaultRestHandler.__init__(self,rootUri)
     self.valid_contentTypes.append("application/pollapli.driverTypeList+json")   
     self.validGetParams.append('type')
Beispiel #25
0
 def __init__(self, rootUri="http://localhost", id=None):
     DefaultRestHandler.__init__(self, rootUri)
     self.id = id
     self.valid_contentTypes.append("application/pollapli.file+json")
Beispiel #26
0
 def __init__(self, rootUri="http://localhost"):
     DefaultRestHandler.__init__(self, rootUri)
     self.valid_contentTypes.append("application/pollapli.fileList+json")
     self.valid_contentTypes.append("multipart/form-data")
     self.validGetParams.append('id')
     self.validGetParams.append('datafile')
Beispiel #27
0
 def __init__(self,rootUri="http://localhost"):
     DefaultRestHandler.__init__(self,rootUri)     
     self.valid_contentTypes.append("application/pollapli.fileList+json")   
     self.valid_contentTypes.append("multipart/form-data")
     self.validGetParams.append('id')
     self.validGetParams.append('datafile')