Package i5.las2peer.p2p
Class NodeServiceCache.ServiceInstance
java.lang.Object
i5.las2peer.p2p.NodeServiceCache.ServiceInstance
- All Implemented Interfaces:
Comparable<NodeServiceCache.ServiceInstance>
- Enclosing class:
- NodeServiceCache
public class NodeServiceCache.ServiceInstance
extends Object
implements Comparable<NodeServiceCache.ServiceInstance>
represents an instance of a service agent
-
Constructor Summary
ConstructorDescriptionServiceInstance
(ServiceNameVersion service, String serviceAgentId, Object nodeId) create a global service instanceServiceInstance
(ServiceAgentImpl agent) create a local service instance -
Method Summary
-
Constructor Details
-
ServiceInstance
create a local service instance- Parameters:
agent
- A service agent
-
ServiceInstance
create a global service instance- Parameters:
service
- A service name and versionserviceAgentId
- A service agent idnodeId
- A node id
-
-
Method Details
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<NodeServiceCache.ServiceInstance>
-
touch
public void touch() -
outdated
public boolean outdated() -
local
public boolean local() -
getServiceAgent
-
getService
-
getServiceAgentId
-
getNodeId
-