eu.emi.dsr.infrastructure
Class ChildrenManager

java.lang.Object
  extended by eu.emi.dsr.infrastructure.ChildrenManager

public class ChildrenManager
extends Object


Constructor Summary
protected ChildrenManager()
          Default constructor if you don't want to use as a singleton class
 
Method Summary
 boolean addChildDSR(String identifier)
          Add children DSR.
 void childLiveCheck()
          Checked every child DSR with ping message.
 List<String> getChildDSRs()
          Get list of children's.
static ChildrenManager getInstance()
          Get only one instance for the children manager class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildrenManager

protected ChildrenManager()
Default constructor if you don't want to use as a singleton class

Parameters:
None -
Method Detail

getInstance

public static ChildrenManager getInstance()
Get only one instance for the children manager class. Use this operation if you want to use this class as a Singleton.

Parameters:
None -
Returns:
ChildrenManager instance

getChildDSRs

public List<String> getChildDSRs()
Get list of children's.

Parameters:
None -
Returns:
list of child URLs

addChildDSR

public boolean addChildDSR(String identifier)
                    throws EmptyIdentifierFailureException,
                           NullPointerFailureException
Add children DSR.

Parameters:
URL - of the child DSR
Returns:
true if the identifier put first time into the list
Throws:
EmptyIdentifierFailureException
NullPointerFailureException

childLiveCheck

public void childLiveCheck()
Checked every child DSR with ping message. If the child is not available, remove it from the list.

Parameters:
None -


Copyright © 2012. All Rights Reserved.