public class GenericMMM
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,AlertDispatcher> |
dispatchers |
protected static Logger |
log |
protected Map<MinionGroup,Map<String,Minion>> |
minions |
protected MMMUtilities |
mu |
protected Random |
random |
| Constructor and Description |
|---|
GenericMMM() |
GenericMMM(String name) |
| Modifier and Type | Method and Description |
|---|---|
<MinionMMMIR2State extends Enum<MinionMMMIR2State>> |
checkState(MinionGroup g,
Minion sys,
MinionMMMIR2State... state) |
<MinionMMMIR2State extends Enum<MinionMMMIR2State>> |
checkState(MinionGroup g,
Minion sys,
MinionMMMIR2State state) |
Future<?> |
execute(Runnable r) |
<MMMIR2State extends Enum<MMMIR2State>> |
expectingState(MinionGroup g,
Minion m,
MMMIR2State state) |
String[] |
getAlertDispatchers() |
protected MMMUtilities |
getMmmUtilities() |
void |
init() |
void |
onAlert(AlertNotification notif) |
void |
publishEvent(MMMIR2Event e) |
ScheduledFuture<?> |
schedule(Runnable r,
Duration delay) |
Object |
send(MinionGroup g,
Minion dst,
String command,
Object... parms) |
Future<Object> |
sendAsync(MinionGroup g,
Minion dst,
String command,
Object... parms) |
Object |
sendLongCommand(MinionGroup g,
Minion dst,
long duration,
String command,
Object... parms) |
void |
setAbortingOnAlarmMinions(MinionGroup g,
Minion... m) |
void |
start() |
String |
status() |
<MinionMMMIR2State extends Enum<MinionMMMIR2State>> |
waitForState(MinionGroup g,
Minion sys,
MinionMMMIR2State state,
long timeout) |
void |
waitMillis(long millis) |
<MinionMMMIR2State extends Enum<MinionMMMIR2State>> |
watchForState(MinionGroup g,
Minion sys,
MinionMMMIR2State state) |
getLogHandler, getLogHandlerLevel, getLogLevel, getNumberCommandThreads, isLogLevelInherited, ping, printLoggersLevel, printLogHandlersLevel, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishMonitoringDataOnStatusBus, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected MMMUtilities mu
@ConfigurationParameter(isFinal=true,
maxLength=20)
protected final Map<MinionGroup,Map<String,Minion>> minions
@LookupField(strategy=CHILDREN) protected Map<String,AlertDispatcher> dispatchers
protected Random random
protected static final Logger log
public GenericMMM()
public GenericMMM(String name)
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void start()
start in interface org.lsst.ccs.framework.HasLifecycleprotected MMMUtilities getMmmUtilities()
public void onAlert(AlertNotification notif)
public void publishEvent(MMMIR2Event e)
public Object send(MinionGroup g, Minion dst, String command, Object... parms) throws Exception
Exceptionpublic Object sendLongCommand(MinionGroup g, Minion dst, long duration, String command, Object... parms) throws Exception
Exceptionpublic Future<Object> sendAsync(MinionGroup g, Minion dst, String command, Object... parms)
public <MinionMMMIR2State extends Enum<MinionMMMIR2State>> Future<org.lsst.ccs.bus.messages.StatusMessage> watchForState(MinionGroup g, Minion sys, MinionMMMIR2State state)
public <MinionMMMIR2State extends Enum<MinionMMMIR2State>> void waitForState(MinionGroup g, Minion sys, MinionMMMIR2State state, long timeout)
public void waitMillis(long millis)
public <MinionMMMIR2State extends Enum<MinionMMMIR2State>> void checkState(MinionGroup g, Minion sys, MinionMMMIR2State state)
@SafeVarargs public final <MinionMMMIR2State extends Enum<MinionMMMIR2State>> void checkState(MinionGroup g, Minion sys, MinionMMMIR2State... state)
public <MMMIR2State extends Enum<MMMIR2State>> MMMUtilities.ExpectedStateCombination<MMMIR2State> expectingState(MinionGroup g, Minion m, MMMIR2State state)
@SafeVarargs public final void setAbortingOnAlarmMinions(MinionGroup g, Minion... m)
public ScheduledFuture<?> schedule(Runnable r, Duration delay)
Copyright © 2024 LSST. All rights reserved.