org.apache.stratos.cartridge.agent.registrant
Class RegistrantDatabase

java.lang.Object
  extended by org.apache.stratos.cartridge.agent.registrant.RegistrantDatabase

public class RegistrantDatabase
extends Object

This class represents a database for Registrants. Registrants added to this database will be persisted, so that when the Cartridge Agent is restarted, the Registrants can be restored.

See Also:
Registrant

Constructor Summary
RegistrantDatabase()
           
 
Method Summary
 void add(Registrant registrant)
           
 boolean containsActive(Registrant registrant)
           
 List<Registrant> getRegistrants()
           
 boolean isAlreadyAdded(Registrant registrant)
           
 void stopAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrantDatabase

public RegistrantDatabase()
Method Detail

add

public void add(Registrant registrant)
         throws CartridgeAgentException
Throws:
CartridgeAgentException

stopAll

public void stopAll()

containsActive

public boolean containsActive(Registrant registrant)

getRegistrants

public List<Registrant> getRegistrants()

isAlreadyAdded

public boolean isAlreadyAdded(Registrant registrant)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.