|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.dsr.infrastructure.InfrastructureManager
public class InfrastructureManager
| Constructor Summary | |
|---|---|
InfrastructureManager(Configuration config)
Constructor Create connection to the H2 database. |
|
| Method Summary | |
|---|---|
void |
addChildDSR(String identifier)
Add child DSR service url |
boolean |
dbSynchronization(List<String> ids,
Method method,
int responsestatus)
Database synchronization with the parent. |
protected void |
finalize()
Destructor Stop every open connection. |
List<String> |
getChildDSRs()
Get every child DSR services |
String |
getParent()
Get parent DSR |
List<String> |
getParentsRoute()
Get parents route |
void |
handleDelete(String identifier)
Handle the unsent delete message. |
void |
handleRegistration(List<String> identifiers)
Handle the unsent registration message. |
void |
handleUpdate(List<String> identifiers)
Handle the unsent update message. |
void |
setParent(String identifier)
Set the parent DSR |
void |
setParentsRoute(List<String> identifiers)
Set the parents route |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InfrastructureManager(Configuration config)
configuration - | Method Detail |
|---|
protected void finalize()
throws SQLException
finalize in class ObjectNone -
SQLException
public void setParentsRoute(List<String> identifiers)
throws EmptyIdentifierFailureException,
NullPointerFailureException
ServiceInfrastructure
setParentsRoute in interface ServiceInfrastructureEmptyIdentifierFailureException - throws exception if identifiers is empty
NullPointerFailureException - throws exception if identifiers is a NULL pointerpublic List<String> getParentsRoute()
ServiceInfrastructure
getParentsRoute in interface ServiceInfrastructurepublic List<String> getChildDSRs()
ServiceInfrastructure
getChildDSRs in interface ServiceInfrastructure
public void addChildDSR(String identifier)
throws EmptyIdentifierFailureException,
NullPointerFailureException
ServiceInfrastructure
addChildDSR in interface ServiceInfrastructureEmptyIdentifierFailureException - throws exception if identifier is empty
NullPointerFailureException - throws exception if identifier is a NULL pointer
public void setParent(String identifier)
throws EmptyIdentifierFailureException,
NullPointerFailureException
ServiceInfrastructure
setParent in interface ServiceInfrastructureEmptyIdentifierFailureException - throws exception if identifiers is empty
NullPointerFailureException - throws exception if identifiers is a NULL pointerpublic String getParent()
ServiceInfrastructure
getParent in interface ServiceInfrastructurepublic void handleRegistration(List<String> identifiers)
list - of service
identifierpublic void handleUpdate(List<String> identifiers)
list - of service
identifierpublic void handleDelete(String identifier)
service - identifier
public boolean dbSynchronization(List<String> ids,
Method method,
int responsestatus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||