Package org.serviceconnector.cmd.sc
Class CheckRegistrationCommand
java.lang.Object
org.serviceconnector.cmd.sc.CommandAdapter
org.serviceconnector.cmd.sc.CheckRegistrationCommand
- All Implemented Interfaces:
ICommand
The Class CheckRegistrationCommand. Validates the server registration. Used by the server to check that SC is alive and the registration is valid.
- Author:
- JTrnka
-
Field Summary
Fields inherited from class org.serviceconnector.cmd.sc.CommandAdapter
basicConf, serverRegistry, serviceRegistry, sessionRegistry, subscriptionRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Gets the key.voidrun(IRequest request, IResponse response, IResponderCallback responderCallback) Run command.voidValidate request.Methods inherited from class org.serviceconnector.cmd.sc.CommandAdapter
getPublishMessageQueueById, getService, getSessionById, getStatefulService, getSubscriptionById, isPassThroughPartMsg, resetServerTimeout, validateFileService, validatePublishService, validatePublishService
-
Constructor Details
-
CheckRegistrationCommand
public CheckRegistrationCommand()
-
-
Method Details
-
getKey
Gets the key.- Specified by:
getKeyin interfaceICommand- Specified by:
getKeyin classCommandAdapter- Returns:
- the key
-
run
public void run(IRequest request, IResponse response, IResponderCallback responderCallback) throws SCMPCommandException Run command.- Parameters:
request- the requestresponse- the responseresponderCallback- callback to the responder- Throws:
SCMPCommandException
-
validate
Validate request.- Specified by:
validatein interfaceICommand- Overrides:
validatein classCommandAdapter- Parameters:
request- the request- Throws:
Exception- the exception
-