|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.user.ScheduleInvites
public class ScheduleInvites
Schedule Alfresco Cloud invites. This processor does not have to issue the invites but merely creates a queue of events that will lead to invitations being issues.
some users that
have not registered. Events are created containing the
user details and output and regular intervals. If the batch size is reached an event is
created to schedule more invites.
EVENT_NAME_INVITE: The user's emailEVENT_NAME_SCHEDULE_INVITES: No data
| Field Summary | |
|---|---|
static int |
DEFAULT_BATCH_SIZE
|
static long |
DEFAULT_MIN_TIME_BETWEEN_INVITES
|
static float |
DEFAULT_TIME_BETWEEN_INVITES_BATCH_ADJUSTMENT
|
static String |
EVENT_NAME_INVITE
|
static String |
EVENT_NAME_SCHEDULE_INVITES
|
| Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor |
|---|
DEFAULT_WARN_DELAY, logger |
| Constructor Summary | |
|---|---|
ScheduleInvites(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
long maxActiveUsers,
long timeBetweenInvites)
|
|
| Method Summary | |
|---|---|
org.alfresco.bm.event.EventResult |
processEvent(org.alfresco.bm.event.Event event)
|
void |
setBatchSize(int batchSize)
Override the default batch size before the processor reschedules itself |
void |
setEventNameInvite(String eventNameInvite)
Override the default invite event name. |
void |
setEventNameScheduleInvites(String eventNameScheduleInvite)
Override the default schedule invites event name. |
void |
setMinTimeBetweenInvites(long minTimeBetweenInvites)
Override the default minimum time between invites |
void |
setTimeBetweenInvitesBatchAdjustment(float timeBetweenInvitesBatchAdjustment)
Override the default time between invites adjustment |
| Methods inherited from class org.alfresco.bm.event.AbstractEventProcessor |
|---|
getWarnDelay, register, setBeanName, setEventName, setEventNames, setRegistry, setWarnDelay |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BATCH_SIZE
public static final float DEFAULT_TIME_BETWEEN_INVITES_BATCH_ADJUSTMENT
public static final long DEFAULT_MIN_TIME_BETWEEN_INVITES
public static final String EVENT_NAME_INVITE
public static final String EVENT_NAME_SCHEDULE_INVITES
| Constructor Detail |
|---|
public ScheduleInvites(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
long maxActiveUsers,
long timeBetweenInvites)
mongo - connection to MongoDBuserData - name of DB collection containing user detailsmaxActiveUsers - total number of users subscribed or invitedtimeBetweenInvites - how long between each invite| Method Detail |
|---|
public void setBatchSize(int batchSize)
default batch size before the processor reschedules itself
public void setTimeBetweenInvitesBatchAdjustment(float timeBetweenInvitesBatchAdjustment)
default time between invites adjustment
public void setMinTimeBetweenInvites(long minTimeBetweenInvites)
default minimum time between invites
public void setEventNameInvite(String eventNameInvite)
default invite event name.
public void setEventNameScheduleInvites(String eventNameScheduleInvite)
default schedule invites event name.
public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||