|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PresenceManager<P extends Presence,C extends Communication>
Instantiation manager interface, factory-like interface according the environment of the component like: used libraries, component version, transaction management, instance management type, etc. A Presence type (class) is managed by this object to create/build/stop/destruct instances.
Field Summary |
---|
Fields inherited from interface com.vii.brillien.kernel.axiom.atomic.Presence |
---|
CONSONANT, RESIDENT, SPARKLE |
Method Summary | ||
---|---|---|
void |
activatePresenceManager()
Activates the PresenceManager according to the initialized configuration. |
|
ClassLoader |
getClassLoader()
Getter method for the classloader assigned to this PresenceManager |
|
String |
getFlowIDPrefix()
Getter method to request the prefix for generating FlowIDs |
|
P |
getInstance(Presence caller)
Getter method for a new instance of the Presence type specifying the caller |
|
P |
getInstance(Presence caller,
String name)
Getter method for a new instance of the Presence type specifying the caller |
|
P |
getInstance(String flowID)
Getter method for a new instance of the Presence type specifying the ID of the flow |
|
P |
getInstance(String flowID,
String name)
Getter method for a new instance of the Presence type specifying the ID of the flow |
|
Level |
getLogLevel()
Getter method for log level of the specific Presence type |
|
int |
getLogType()
Getter method for log type of the specific Presence type |
|
int |
getManagementType()
Getter method to get the instance creation method to follow regarding this Presence type. |
|
|
getMediator()
Retrieves a mediator representing the transport layer |
|
long |
getMessageExpiration()
Gets the timout for message processing. |
|
Map<String,Object> |
getParameters()
Getter method for getting input parameters |
|
Class<P> |
getPresenceClass()
Getter method to request the Class definition of a specific Presence type |
|
long |
getPresenceTimeMeasure()
Retrieves the timeUnit value of the given Presence type. |
|
void |
initPresenceManager(String presenceName,
Class<P> PresenceClass)
Initializes the PresenceManager with the given class instance, reads the annotations of the presence type |
|
boolean |
isPresencePeriodical()
Gets the periodicity flag of the given Presence type |
|
void |
markMessageToSend(C shared,
C message)
Presences let the PresenceManager to know about the messages sent through this method |
|
void |
retrieveReferences(P... presences)
All Presence instances managed by this PresenceManager will be retrieved |
|
void |
setClassLoader(ClassLoader classLoader)
Sets classloader to be assigned to this PresenceManager |
|
void |
setLogLevel(String logLevel)
Setter method for log level of the specific Presence type |
|
void |
setLogType(int logType)
Setter method for log type of the specific Presence type |
|
void |
setMessageExpiration(long messageExpiration)
Sets the timout for message processing. |
|
void |
setParameters(Map<String,Object> parameters)
Setter method for adding input Parameters for every given Presence creation |
|
void |
setPresencePeriodical(boolean presencePeriodical)
Sets the periodicity flag of the given Presence type |
|
void |
setPresenceTimeMeasure(long timeMeasure)
Sets the timeUnit value of the the given Presence type, read from the nnnotation of the type. |
|
void |
setSSOPresenceName(String ssoPresenceName)
Sets custom SSO presence |
Methods inherited from interface com.vii.brillien.kernel.axiom.atomic.Unit |
---|
activateUnitAll, activateUnitCallable, activateUnitMessaging, addPresences, addSubUnits, classify, clearPresences, clearSubUnits, communicationUnitReceived, complement, getCharacteristicFunction, getPresences, getSubUnits, hasUnitActivity, intersect, isSubSet, isUnitInExitState, isUnitInValidStates, isUnitWaitingForResponse, order, passivateUnitAll, passivateUnitCallable, passivateUnitMessaging, printUnitErrorStates, removePresences, removeSubUnits, retrieveUnit, scrutinise, setCharacteristicFunction, subset, symmetricDifference, union |
Methods inherited from interface com.vii.brillien.kernel.axiom.atomic.Presence |
---|
activateAll, addSuperUnits, clearSuperUnits, getApiKeyPresenceName, getFlow, getFlowID, getPresenceManager, getSharing, getSSOPresenceName, getSuperUnits, passivateAll, printErrorStates, removeSuperUnits, retrieve, setFlow, setPresenceManager |
Methods inherited from interface com.vii.brillien.kernel.axiom.Presence |
---|
aspirationTimeIsUp, getAspirationTimeMeasure, getFullName, getMessageProcessorParameterNames, getMessageProcessorParameterTypes, getName, hasMessageProcessorReturnValue, isAspirationPeriodical, reset, setAspirationPeriodical, setAspirationTimeMeasure, setName |
Methods inherited from interface com.vii.brillien.kernel.axiom.Aspirer |
---|
activateCallable, getResult, hasActivity, isWaitingForInputData, isWaitingForResponse, passivateCallable, plan, sendAGet, sendDelegatedSet, sendError, sendError, sendError, sendGet, sendGet, sendResponse, sendSet, sendUnitAGet, sendUnitDelegatedSet, sendUnitGet, sendUnitGet, sendUnitSet |
Methods inherited from interface java.util.concurrent.Callable |
---|
call |
Methods inherited from interface com.vii.brillien.kernel.axiom.Sensor |
---|
activateMessaging, communicationReceived, errorReceived, passivateMessaging, presenseChangedState |
Methods inherited from interface com.vii.brillien.kernel.axiom.Progressor |
---|
addState, changeState, getActualStates, getPotentialStates, getStateDivision, hasStateMachine, initStateMashine, isInExitState, isInState, isInValidStates, panic, registerStateChangeNotification, removeState, setStateDivision, unregisterStateChangeNotification |
Method Detail |
---|
void initPresenceManager(String presenceName, Class<P> PresenceClass) throws BrillienException
PresenceClass
- presence class instance
BrillienException
void activatePresenceManager() throws BrillienException
BrillienException
Class<P> getPresenceClass()
String getFlowIDPrefix()
P getInstance(Presence caller) throws BrillienException
BrillienException
P getInstance(String flowID) throws BrillienException
BrillienException
P getInstance(Presence caller, String name) throws BrillienException
BrillienException
P getInstance(String flowID, String name) throws BrillienException
BrillienException
void retrieveReferences(P... presences) throws BrillienException
presences
- presences to be retrieved
BrillienException
ClassLoader getClassLoader()
void setClassLoader(ClassLoader classLoader)
int getManagementType()
long getPresenceTimeMeasure()
void setPresenceTimeMeasure(long timeMeasure)
boolean isPresencePeriodical()
void setPresencePeriodical(boolean presencePeriodical)
long getMessageExpiration()
void setMessageExpiration(long messageExpiration)
int getLogType()
void setLogType(int logType)
logType
- log typeLevel getLogLevel()
void setLogLevel(String logLevel)
logLevel
- log levelMap<String,Object> getParameters()
void setParameters(Map<String,Object> parameters)
parameters
- parameters' hashmap read from the presence config file<T> Mediator<C,T> getMediator()
void setSSOPresenceName(String ssoPresenceName)
void markMessageToSend(C shared, C message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |