Module mcjsonrpc :: Class MCJsonRpc
[hide private]
[frames] | no frames]

Class MCJsonRpc

source code


Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Instance Methods [hide private]
 
__init__(self, server)
Creates a JSON_RPC server object.
source code
 
server(self)
Return the application server of this json-rpc server.
source code
 
trackSessions(self)
Tracks the sessions for timeout.
source code
 
checkSession(self, sessionId)
Checks if the session with id sessionId is valid.
source code
 
runByVirtualUser(*args, **kwargs)
Run the task in the server by virtual user.
source code
 
jsonrpc_run(*args, **kwargs)
To run a task from a JSON_RPC request.
source code
 
jsonrpc_getRemoteCode(*args, **kwargs)
To get packages from the mocop server to the Json server.
source code
 
jsonrpc_getPackages(self, packageList)
To get the package code from Mocop Server to Json Server.
source code
 
jsonrpc_getUserInfo(self, sessionID)
Returns the user info related with the session with sessionID.
source code
 
jsonrpc_login(*args, **kwargs)
To login a domain with a user.
source code
 
jsonrpc_logout(self, sessionID)
To logout from the server.
source code

Inherited from txjsonrpc.web.jsonrpc.JSONRPC: getSubHandler, getSubHandlerPrefixes, putSubHandler, render

Inherited from txjsonrpc.web.jsonrpc.JSONRPC (private): _cbRender, _ebRender, _getFunction, _listFunctions

Inherited from twisted.web.resource.Resource: __providedBy__, delEntity, getChild, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render_HEAD

Class Variables [hide private]

Inherited from txjsonrpc.web.jsonrpc.JSONRPC: FAILURE, NOT_FOUND, isLeaf, separator

Inherited from twisted.web.resource.Resource: __implemented__, __provides__

Method Details [hide private]

__init__(self, server)
(Constructor)

source code 

Creates a JSON_RPC server object.

Overrides: twisted.web.resource.Resource.__init__

server(self)

source code 

Return the application server of this json-rpc server.

Overrides: server

checkSession(self, sessionId)

source code 

Checks if the session with id sessionId is valid. If not, gives an error, else updates the session access time.

runByVirtualUser(*args, **kwargs)

source code 

Run the task in the server by virtual user.

Decorators:
  • @defer.inlineCallbacks

jsonrpc_run(*args, **kwargs)

source code 

To run a task from a JSON_RPC request.

Decorators:
  • @defer.inlineCallbacks

jsonrpc_getRemoteCode(*args, **kwargs)

source code 

To get packages from the mocop server to the Json server.

Decorators:
  • @defer.inlineCallbacks

jsonrpc_login(*args, **kwargs)

source code 

To login a domain with a user.

Decorators:
  • @defer.inlineCallbacks

jsonrpc_logout(self, sessionID)

source code 

To logout from the server. Used also in session timeout