Class CNSService.ServiceProcess
java.lang.Object
org.jcsp.net.cns.CNSService.ServiceProcess
- All Implemented Interfaces:
CSProcess
- Enclosing class:
CNSService
The main process of the service.
This handles a single request at a time.
Register, lease and deregister requests are sent to the server
and then the process waits for a response.
Resolve requests are sent to the server after which the process
resumes serving requests. The server will send a response back to
this process once a name matching the request has been registered.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CNSMessagevoidrun()This defines the actions of the process.private voidThis stops the CNS Service and removes its Channel from IndexManager.
-
Field Details
-
startedChan
ChannelOutput startedChan
-
-
Constructor Details
-
ServiceProcess
ServiceProcess(ChannelOutput startedChan)
-
-
Method Details
-
run
-
getRegistrationReply
-
stopCNSService
private void stopCNSService()This stops the CNS Service and removes its Channel from IndexManager. It sets the running indicator to false.
-