Package org.serviceconnector.cmd.sc
Class DeRegisterServerCommand
java.lang.Object
org.serviceconnector.cmd.sc.CommandAdapter
org.serviceconnector.cmd.sc.DeRegisterServerCommand
- All Implemented Interfaces:
ICommand
The Class DeRegisterServerCommand. Responsible for validation and execution of deregister command. Used to deregisters server from SC service. Server will be removed from server
registry.
- Author:
- JTraber
-
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.Gets the stateful server by name.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
-
DeRegisterServerCommand
public DeRegisterServerCommand()
-
-
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 Exception Run command.- Parameters:
request- the requestresponse- the responseresponderCallback- callback to the responder- Throws:
Exception- the exception
-
validate
Validate request.- Specified by:
validatein interfaceICommand- Overrides:
validatein classCommandAdapter- Parameters:
request- the request- Throws:
Exception- the exception
-
getStatefulServerByName
Gets the stateful server by name.- Parameters:
key- the key- Returns:
- the stateful server by name
- Throws:
SCMPCommandException- the SCMP command exception
-