Class ListEndpoint
java.lang.Object
org.wso2.carbon.endpoint.ui.endpoints.Endpoint
org.wso2.carbon.endpoint.ui.endpoints.ListEndpoint
- All Implemented Interfaces:
IEndpoint
- Direct Known Subclasses:
FailoverEndpoint,LoadBalanceEndpoint,RecipientlistEndpoint
Basic structure for the
ListEndpoint which contains a list of child endpoints-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a child endpoint to the listprotected voidaddChildren(org.apache.axiom.om.OMElement element, ListEndpoint listEndpoint) Add children to theListEndpointfrom a configuration.getChild(int pos) Get a child endpointgetList()Get the list of child endpoints containing in this endpointabstract booleanremoveChild(int pos) Remove a child endpointbooleanremoveChild(Endpoint endpoint) Remove a child endpointprotected voidserializeChildren(org.apache.axiom.om.OMElement parent, List<Endpoint> list) Serialize all child endpointsMethods inherited from class org.wso2.carbon.endpoint.ui.endpoints.Endpoint
getEmptyEndpointElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wso2.carbon.endpoint.ui.endpoints.IEndpoint
build, build, getTagLocalName, serialize
-
Field Details
-
endpoints
-
-
Constructor Details
-
ListEndpoint
public ListEndpoint()
-
-
Method Details
-
getList
Get the list of child endpoints containing in this endpoint- Returns:
- all the child endpoints
-
getChild
Get a child endpoint- Parameters:
pos- position in the child endpoint list- Returns:
- child endpoint of the given position in the list
-
removeChild
Remove a child endpoint- Parameters:
pos- position in the child endpoint list
-
removeChild
Remove a child endpoint- Parameters:
endpoint- Endpoint to be removed- Returns:
- whether child endpoint removal is success
-
addChild
Add a child endpoint to the list- Parameters:
endpoint- endpoint to be added
-
serializeChildren
Serialize all child endpoints- Parameters:
parent- parent endpointlist- child endpoint list
-
addChildren
Add children to theListEndpointfrom a configuration.- Parameters:
element- configuration elementlistEndpoint- Endpoint to which childEndpoints to be added
-
isRetryAvailable
public abstract boolean isRetryAvailable()
-