Class EndpointAdminClient
java.lang.Object
org.wso2.carbon.endpoint.ui.client.EndpointAdminClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEndpointAdminClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configCtx) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicEndpoint(String key, String epName) Add an endpoint to the Synapse registryvoidaddEndpoint(String endpointString) Add an Endpoint described by the given configurationvoidDelete all endpoints in the synapse configurationvoidDelete an endpoint from the registryvoiddeleteEndpoint(String epName) Delete an endpoint from the synapse configurationvoiddeleteSelectedEndpoints(String[] epNames) Delete selected endpoints from synapse configurationvoiddisableStatistics(String name) Stop collecting statistics for a specified endpointvoidenableStatistics(String name) Enable statistics collection for the specified endpointorg.wso2.carbon.endpoint.stub.types.common.ConfigurationObject[]getDependents(String epName) Get dependents of a particular endpoint.getDynamicEndpoint(String key) Get a dynamic endpoint from the registryintGet the dynamic endpoint countString[]getDynamicEndpoints(int pageNumber, int endpointsPerPage) Get all endpoints stored in the registryString[]getDynamicEndpointsSearch(int pageNumber, int endpointsPerPage, String searchText) Get Metadata of all the Searched Dynamic Endpoints in the Synapse configurationgetEndpoint(String epName) Gets the endpoint element as a stringintGet the endpoint countorg.wso2.carbon.endpoint.stub.types.service.EndpointMetaData[]getEndpointMetaData(int pageNumber, int endpointsPerPage) Get Metadata of all the Endpoints in the Synapse configurationorg.wso2.carbon.endpoint.stub.types.service.EndpointMetaData[]getEndpointMetaDataSearch(int pageNumber, int endpointsPerPage, String searchText) Get Metadata of all the Searched Endpoints in the Synapse configurationString[]Get all endpoint configurations from the synapse configurationgetEndpointService(String endpointString) Get the endpoint service for the given endpoint configurationgetEndpointService(org.wso2.carbon.endpoint.stub.types.service.EndpointMetaData metaData) Get the endpoint service for the given endpoint metadatabooleancheck the registryvoidsaveDynamicEndpoint(String key, String epName) Save an endpoint to the Synapse registryvoidsaveEndpoint(String epName) Save an endpointvoidSwitch off Endpoint given by the namevoidSet Endpoint status to ActivevoidupdateDynamicEndpoint(String key, String epConfiguration) Update an existing dynamic endpoint
-
Field Details
-
ENDPOINT_PER_PAGE
public static final int ENDPOINT_PER_PAGE- See Also:
-
-
Constructor Details
-
Method Details
-
addEndpoint
Add an Endpoint described by the given configuration- Parameters:
endpointString- - configuration representing the endpoint that needs to be added- Throws:
Exception- in case of an error
-
switchOn
Set Endpoint status to Active- Parameters:
name- name of the endpoint- Throws:
Exception- in case of an error
-
switchOff
Switch off Endpoint given by the name- Parameters:
name- name of the endpoint- Throws:
Exception- in case of an error
-
deleteEndpoint
Delete an endpoint from the synapse configuration- Parameters:
epName- endpoint name- Throws:
Exception- in case of an error
-
deleteSelectedEndpoints
Delete selected endpoints from synapse configuration- Parameters:
epNames-- Throws:
Exception
-
deleteAllEndpointGroups
Delete all endpoints in the synapse configuration- Throws:
Exception
-
deleteDynamicEndpoint
Delete an endpoint from the registry- Parameters:
key- key of the dynamic endpoint- Throws:
Exception- in case of an error
-
getDependents
public org.wso2.carbon.endpoint.stub.types.common.ConfigurationObject[] getDependents(String epName) throws Exception Get dependents of a particular endpoint.- Parameters:
epName- endpoint name- Returns:
- dependants of a endpoints
- Throws:
Exception
-
updateDynamicEndpoint
Update an existing dynamic endpoint- Parameters:
key- dynamic endpoint keyepConfiguration- new endpoint configuration- Throws:
Exception- in case of an error
-
getEndpoint
Gets the endpoint element as a string- Parameters:
epName- - name of the endpoint- Returns:
- String representing the endpoint with the given endpoint name
- Throws:
Exception- in case of an error
-
getEndpoints
Get all endpoint configurations from the synapse configuration- Returns:
- a list of all the endpoints
- Throws:
Exception- in case of an error
-
getDynamicEndpoint
Get a dynamic endpoint from the registry- Parameters:
key- dynamic endpoint key- Returns:
- dynamic endpoint configuration
- Throws:
Exception- on an error
-
getDynamicEndpoints
Get all endpoints stored in the registry- Parameters:
pageNumber- page numberendpointsPerPage- no of endpoints per page- Returns:
- endpoints in the registry
- Throws:
Exception- in case of an error
-
getDynamicEndpointsSearch
public String[] getDynamicEndpointsSearch(int pageNumber, int endpointsPerPage, String searchText) throws Exception Get Metadata of all the Searched Dynamic Endpoints in the Synapse configuration- Parameters:
pageNumber-endpointsPerPage-searchText-- Returns:
- Throws:
Exception
-
getEndpointService
public EndpointService getEndpointService(org.wso2.carbon.endpoint.stub.types.service.EndpointMetaData metaData) throws XMLStreamException Get the endpoint service for the given endpoint metadata- Parameters:
metaData- Metadata of an endpoint- Returns:
- endpoint service for the given endpoint metadata
- Throws:
XMLStreamException- in case of an error
-
getEndpointService
Get the endpoint service for the given endpoint configuration- Parameters:
endpointString- configuration of the endpoint- Returns:
- endpoint service for the given endpoint configuration
- Throws:
XMLStreamException- in case of an error
-
getEndpointMetaData
public org.wso2.carbon.endpoint.stub.types.service.EndpointMetaData[] getEndpointMetaData(int pageNumber, int endpointsPerPage) throws Exception Get Metadata of all the Endpoints in the Synapse configuration- Parameters:
pageNumber- page numberendpointsPerPage- no of endpoints per page- Returns:
- EndpointMetaData
- Throws:
Exception- in case of an error
-
getEndpointMetaDataSearch
public org.wso2.carbon.endpoint.stub.types.service.EndpointMetaData[] getEndpointMetaDataSearch(int pageNumber, int endpointsPerPage, String searchText) throws Exception Get Metadata of all the Searched Endpoints in the Synapse configuration- Parameters:
pageNumber-endpointsPerPage-searchText-- Returns:
- Throws:
Exception
-
enableStatistics
Enable statistics collection for the specified endpoint- Parameters:
name- name of the endpoint- Throws:
Exception- in case of an error
-
disableStatistics
Stop collecting statistics for a specified endpoint- Parameters:
name- name of the endpoint- Throws:
Exception- in case of an error
-
addDynamicEndpoint
Add an endpoint to the Synapse registry- Parameters:
key- of the dynamic endpointepName- endpoint name- Throws:
Exception- in case of an error
-
saveDynamicEndpoint
Save an endpoint to the Synapse registry- Parameters:
key- dynamic endpoint keyepName- endpoint name- Throws:
Exception- in case of an error
-
saveEndpoint
Save an endpoint- Parameters:
epName- endpoint name- Throws:
Exception- in case of an error
-
getEndpointCount
Get the endpoint count- Returns:
- number of endpoints
- Throws:
Exception
-
getDynamicEndpointCount
Get the dynamic endpoint count- Returns:
- number of dynamic endpoints
- Throws:
Exception
-
isRegisterNull
check the registry- Returns:
- true if register is null
- Throws:
Exception
-