public class MongoMapEntityStoreMixin extends Object implements ServiceActivation, MapEntityStore, MongoAccessors
ServiceActivation.ServiceActivatorMapEntityStore.MapChanger, MapEntityStore.MapChanges| Modifier and Type | Field and Description | 
|---|---|
static String | 
IDENTITY_COLUMN  | 
static String | 
STATE_COLUMN  | 
| Constructor and Description | 
|---|
MongoMapEntityStoreMixin()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
activateService()
Called after ServiceComposite Activation. 
 | 
void | 
applyChanges(MapEntityStore.MapChanges changes)  | 
String | 
collectionUsed()  | 
com.mongodb.DB | 
dbInstanceUsed()  | 
Input<Reader,IOException> | 
entityStates()  | 
Reader | 
get(EntityReference entityReference)  | 
com.mongodb.MongoClient | 
mongoInstanceUsed()  | 
void | 
passivateService()
Called before ServiceComposite Passivation. 
 | 
public static final String IDENTITY_COLUMN
public static final String STATE_COLUMN
public void activateService()
                     throws Exception
ServiceActivationactivateService in interface ServiceActivationExceptionpublic void passivateService()
                      throws Exception
ServiceActivationpassivateService in interface ServiceActivationExceptionpublic com.mongodb.MongoClient mongoInstanceUsed()
mongoInstanceUsed in interface MongoAccessorspublic com.mongodb.DB dbInstanceUsed()
dbInstanceUsed in interface MongoAccessorspublic String collectionUsed()
collectionUsed in interface MongoAccessorspublic Reader get(EntityReference entityReference) throws EntityStoreException
get in interface MapEntityStoreentityReference - The reference to the entity that we want to get.EntityStoreExceptionpublic void applyChanges(MapEntityStore.MapChanges changes) throws IOException
applyChanges in interface MapEntityStoreIOExceptionpublic Input<Reader,IOException> entityStates()
entityStates in interface MapEntityStore