public class WeatherPlugin extends EnginePlugin
Modifier and Type | Class and Description |
---|---|
static class |
WeatherPlugin.WeatherInstanceSettings |
static class |
WeatherPlugin.WeatherProfile |
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, EnginePlugin.GetPropertyNamesMessage, EnginePlugin.LoadHook, EnginePlugin.LoadSubObjHook, EnginePlugin.PluginActivateHook, EnginePlugin.PluginStateMessage, EnginePlugin.SaveHook, EnginePlugin.SaveSubObjHook, EnginePlugin.SetPropertyMessage, EnginePlugin.SubObjData, EnginePlugin.TransferFilter, EnginePlugin.TransferObjectMessage, EnginePlugin.UnloadHook, EnginePlugin.UnloadSubObjHook
Modifier and Type | Field and Description |
---|---|
protected long |
currentSecondsRunning |
protected static Logger |
log |
static MessageType |
MSG_TYPE_GET_WEATHER |
protected int |
serverDay |
protected int |
serverHour |
protected int |
serverMinute |
protected int |
serverMonth |
protected float |
serverSeconds |
protected long |
serverStartTime |
protected int |
serverYear |
static java.lang.String |
WEATHER_PLUGIN_NAME |
protected static float |
WORLD_TIME_SPEED |
protected static java.lang.String |
WORLD_TIME_ZONE |
deleteSubObjectSubscription, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, loadSubObjectSubscription, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, saveSubObjectSubscription, selectionFilter, selectionSubscription, setSubObjectPersistenceSubscription, subObjectSubscription, unloadSubObjectSubscription
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
WeatherPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the plugin.
|
void |
onActivate()
for developers extending the EnginePlugin object, it may
be easier to use the onActivate() method which gets
called when the plugin is being activated by the Engine.
|
protected void |
registerHooks() |
activate, createMBeanInstance, createSubscription, getHookManager, getMessageHandler, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, getStatusMap, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setMessageHandler, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObject
protected static final Logger log
public static java.lang.String WEATHER_PLUGIN_NAME
protected long serverStartTime
protected long currentSecondsRunning
protected int serverYear
protected int serverMonth
protected int serverDay
protected int serverHour
protected int serverMinute
protected float serverSeconds
protected static float WORLD_TIME_SPEED
protected static java.lang.String WORLD_TIME_ZONE
public static MessageType MSG_TYPE_GET_WEATHER
public java.lang.String getName()
EnginePlugin
getName
in class EnginePlugin
EnginePlugin.setName(String)
public void onActivate()
EnginePlugin
onActivate
in class EnginePlugin
protected void registerHooks()