Search in sources :

Example 1 with ServiceAgentImpl

use of i5.las2peer.security.ServiceAgentImpl in project Distributed-Noracle-Backend by Distributed-Noracle.

the class NoracleServiceTest method startService.

private void startService(Node node, String clsName, String version) throws Exception {
    ServiceAgentImpl serviceAgent = ServiceAgentImpl.createServiceAgent(new ServiceNameVersion(clsName, version), "testtest");
    serviceAgent.unlock("testtest");
    node.storeAgent(serviceAgent);
    node.registerReceiver(serviceAgent);
}
Also used : ServiceNameVersion(i5.las2peer.api.p2p.ServiceNameVersion) ServiceAgentImpl(i5.las2peer.security.ServiceAgentImpl)

Aggregations

ServiceNameVersion (i5.las2peer.api.p2p.ServiceNameVersion)1 ServiceAgentImpl (i5.las2peer.security.ServiceAgentImpl)1