eu.emi.dsr.infrastructure
Interface ServiceInfrastructure

All Known Implementing Classes:
InfrastructureManager

public interface ServiceInfrastructure

Author:
szigeti

Method Summary
 void addChildDSR(String identifier)
          Add child DSR service url
 List<String> getChildDSRs()
          Get every child DSR services
 String getParent()
          Get parent DSR
 List<String> getParentsRoute()
          Get parents route
 void setParent(String identifier)
          Set the parent DSR
 void setParentsRoute(List<String> identifiers)
          Set the parents route
 

Method Detail

setParentsRoute

void setParentsRoute(List<String> identifiers)
                     throws EmptyIdentifierFailureException,
                            NullPointerFailureException
Set the parents route

Parameters:
list - of the parents identifier
Throws:
EmptyIdentifierFailureException - throws exception if identifiers is empty
NullPointerFailureException - throws exception if identifiers is a NULL pointer

setParent

void setParent(String identifier)
               throws EmptyIdentifierFailureException,
                      NullPointerFailureException
Set the parent DSR

Parameters:
parent's - identifier
Throws:
EmptyIdentifierFailureException - throws exception if identifiers is empty
NullPointerFailureException - throws exception if identifiers is a NULL pointer

getParent

String getParent()
Get parent DSR

Parameters:
None -
Returns:
parent component's URL

getParentsRoute

List<String> getParentsRoute()
Get parents route

Parameters:
None -
Returns:
a collection of network entries from this component to the global peer to peer network

getChildDSRs

List<String> getChildDSRs()
Get every child DSR services

Parameters:
None -
Returns:
a collection of child entries, that registered directly for this service

addChildDSR

void addChildDSR(String identifier)
                 throws AlreadyExistFailureException,
                        EmptyIdentifierFailureException,
                        NullPointerFailureException
Add child DSR service url

Parameters:
url - of the child service
Throws:
EmptyIdentifierFailureException - throws exception if identifier is empty
NullPointerFailureException - throws exception if identifier is a NULL pointer
AlreadyExistFailureException


Copyright © 2012. All Rights Reserved.