|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents component which is able to control of throughput and performance monitoring for specified service endpoint.
Method Summary | |
ServiceEndpointThroughputLog |
dataThroughputControl(ServiceEndpoint serviceEndpoint,
int controlOperation)
Control service endpoint data throughput monitor. |
boolean |
debugControl(ServiceEndpoint serviceEndpoint,
int controlOperation)
Control service endpoint debugging. |
ServiceEndpointPerformanceLog |
performanceControl(ServiceEndpoint serviceEndpoint,
int controlOperation)
Control service endpoint performance monitor. |
Method Detail |
public boolean debugControl(ServiceEndpoint serviceEndpoint, int controlOperation) throws AdminServiceException
Activate and deactivate the tracing of incoming and outgoing SOAP messages, per service endpoint. You can also get and clean the log using this method. The tracing log is shared by Web services that come from the same package. Once a Web service's message tracing is enabled, the log is stored in a file named debug.txt in the package root directory. The log may be accessed directly, using this method; from the administration console or by accessing the service endpoint by pointing a web browser to http://yourhost:yourport/waspcontext/yourservice?debug. For an example of this access, point your browser to http://localhost:6060/util/wsdiscovery?debug
serviceEndpoint
- target service endpoint.controlOperation
- may be one of the following:
ENABLE
: enable debugging.
DISABLE
: disable debugging.
GET
: determine whether endpoint is debugged.
CLEAN
: clean debug log.
true
if service endpoint is debugged, else it
returns false
.
AdminServiceException
ControlOperations
public ServiceEndpointThroughputLog dataThroughputControl(ServiceEndpoint serviceEndpoint, int controlOperation) throws AdminServiceException
Activate and deactivate the data throughput monitor and access the log. The log includes total in/out throughput, last request in/out throughput, average per request in/out throughput and number of hits for a service endpoint.
Changes made using this method are transient. It is lost on server reboot. To make the use of the
throughput monitor permanent, you must store the interceptor chain for the
service endpoint using the ServiceAdministration.interceptorControl(org.systinet.wasp.admin.ServiceEndpoint, int, org.systinet.wasp.admin.InterceptorInfo)
method.
serviceEndpoint
- target service endpoint.controlOperation
- may be one of the following:
RESET
: reset values for this service endpoint monitor.
GET
: get the service endpoint monitor log.
ADD
: install data monitor for this service endpoint.
REMOVE
: remove service endpoint monitor.
GET
operation returns log for the service endpoint,
else returns null
.
AdminServiceException
ServiceEndpointThroughputLog
,
ControlOperations
public ServiceEndpointPerformanceLog performanceControl(ServiceEndpoint serviceEndpoint, int controlOperation) throws AdminServiceException
Activate and deactivate the endpoint performance monitor and access the log. The log includes the fastest, slowest, average, last request and total dispatch time as well as the number of requests.
Changes made using this method are transient. To make the use of the throughput
monitor permanent, you must store the interceptor chain for the service
endpoint using the ServiceAdministration.interceptorControl(org.systinet.wasp.admin.ServiceEndpoint, int, org.systinet.wasp.admin.InterceptorInfo)
method.
The monitoring log is not persistently stored. It is lost on server reboot.
If the WSO2 SOA Enablement Server is running in secure mode, then methods provided by this interface are protected by authorization.
serviceEndpoint
- target service endpoint.controlOperation
- may be one of the following:
RESET
: reset the values for this service endpoint performance monitor.
GET
: get the performance monitor log.
ADD
: install the performance monitor for this endpoint.
REMOVE
: remove the performance monitor for this endpoint.
GET
operation returns performance log for the service
endpoint, else returns null
.
AdminServiceException
ServiceEndpointPerformanceLog
,
ControlOperations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |