Package org.serviceconnector.api.cln
Class SCMgmtClient
java.lang.Object
org.serviceconnector.api.cln.SCClient
org.serviceconnector.api.cln.SCMgmtClient
Management client to an SC.
- Author:
- JTrnka
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSCMgmtClient(String host, int port) Instantiates a new SC management client.SCMgmtClient(String host, int port, ConnectionType connectionType) Instantiates a new SC management client. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.voidclearCache(int operationTimeoutSeconds) Clears the cache for given service name.voiddisableService(int operationTimeoutSeconds, String serviceName) Disable service on SC.voiddisableService(String serviceName) Disable service on SC with default operation timeout.voiddump()Request dump of SC.voiddump(int operationTimeoutSeconds) Request dump of SC.voidenableService(int operationTimeoutSeconds, String serviceName) Enable service on SC.voidenableService(String serviceName) Disable service on SC with default operation timeout.voidkillSC()Kill SC.Methods inherited from class org.serviceconnector.api.cln.SCClient
attach, attach, changeCacheGuardian, changeGuardian, detach, detach, getCacheGuardian, getConnectionType, getHost, getKeepAliveIntervalSeconds, getKeepAliveTimeoutSeconds, getMaxConnections, getPort, getSCVersion, getServiceConfiguration, getServiceConfiguration, getStateOfServices, getStateOfServices, getTCPKeepAlive, getWorkload, getWorkload, inspectCache, inspectCache, isAttached, isCacheGuardianActive, isServiceEnabled, isServiceEnabled, newFileService, newPublishService, newSessionService, setKeepAliveIntervalSeconds, setKeepAliveTimeoutSeconds, setMaxConnections, setTCPKeepAlive, startCacheGuardian, startCacheGuardian, stopCacheGuardian, stopCacheGuardian
-
Constructor Details
-
SCMgmtClient
Instantiates a new SC management client.- Parameters:
host- the hostport- the port
-
SCMgmtClient
Instantiates a new SC management client.- Parameters:
host- the hostport- the portconnectionType- the connection type
-
-
Method Details
-
disableService
public void disableService(String serviceName) throws SCServiceException, UnsupportedEncodingException Disable service on SC with default operation timeout.- Parameters:
serviceName- the service name- Throws:
SCServiceException- client not attached
manage call to SC failed
body not null after manage callUnsupportedEncodingException- encoding of request URL failed
-
disableService
public void disableService(int operationTimeoutSeconds, String serviceName) throws SCServiceException, UnsupportedEncodingException Disable service on SC.- Parameters:
operationTimeoutSeconds- the allowed time in seconds to complete the operationserviceName- the service name- Throws:
SCServiceException- client not attached
manage call to SC failed
body not null after manage callUnsupportedEncodingException- encoding of request URL failed
-
enableService
public void enableService(String serviceName) throws SCServiceException, UnsupportedEncodingException Disable service on SC with default operation timeout.- Parameters:
serviceName- the service name- Throws:
SCServiceException- client not attached
manage call to SC failed
body not null after manage callUnsupportedEncodingException- encoding of request failed
-
enableService
public void enableService(int operationTimeoutSeconds, String serviceName) throws SCServiceException, UnsupportedEncodingException Enable service on SC.- Parameters:
operationTimeoutSeconds- the allowed time in seconds to complete the operationserviceName- the service name- Throws:
SCServiceException- client not attached
manage call to SC failed
body not null after manage callUnsupportedEncodingException- encoding of request failed
-
clearCache
Clears the cache. Uses default operation timeout to complete operation.- Throws:
SCServiceException- client not attached
body not null after manage call
manage call to SC failedUnsupportedEncodingException- encoding of request URL failed
-
clearCache
public void clearCache(int operationTimeoutSeconds) throws SCServiceException, UnsupportedEncodingException Clears the cache for given service name.- Parameters:
operationTimeoutSeconds- the allowed time in seconds to complete the operation- Throws:
SCServiceException- client not attached
body not null after manage call
manage call to SC failedUnsupportedEncodingException- encoding of request URL failed
-
dump
Request dump of SC. Uses default operation timeout to complete operation.- Throws:
SCServiceException- client not attached
manage call to SC failedUnsupportedEncodingException- encoding of request URL failed
-
dump
public void dump(int operationTimeoutSeconds) throws SCServiceException, UnsupportedEncodingException Request dump of SC.- Parameters:
operationTimeoutSeconds- the allowed time in seconds to complete the operation- Throws:
SCServiceException- client not attached
manage call to SC failedUnsupportedEncodingException- encoding of request URL failed
-
killSC
Kill SC.- Throws:
SCServiceException- client not attached
manage call to SC failedUnsupportedEncodingException- encoding of request URL failed
-