public abstract class AbstractRifidiApp extends java.lang.Object implements RifidiApp
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,ReadZone> |
readZones
This is a map of ReadZones read in from the readzones directory
|
LAZY_START
Constructor and Description |
---|
AbstractRifidiApp(java.lang.String group,
java.lang.String name)
Constructor for a AbstractRifidiApp
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RifidiApp o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroup()
A group is a set of applications within some logical domain.
|
java.lang.String |
getName()
Each application has a name that is unique within it's group
|
AppState |
getState()
Each application has a state that is either running or stopped.
|
int |
hashCode() |
void |
initialize()
The initialize method can be used to do any work that needs to be done
right before the start method is called.
|
boolean |
lazyStart()
If this method returns true, the application will not be started when it
is loaded.
|
void |
setAppProperties(java.util.Properties properties)
Used to set the Properties for this application Set the properties for
this application
|
void |
setBundleContext(BundleContext arg0) |
void |
setEsperService(EsperManagementService esperService)
Used to set the esper service for this application
|
void |
start()
This method is called to start the application.
|
void |
stop()
This method is called to stop the application.
|
java.lang.String |
toString() |
public java.util.HashMap<java.lang.String,ReadZone> readZones
public AbstractRifidiApp(java.lang.String group, java.lang.String name)
group
- the group this application is a part ofname
- The name of the applicationpublic java.lang.String getName()
RifidiApp
public java.lang.String getGroup()
RifidiApp
public AppState getState()
RifidiApp
public void setEsperService(EsperManagementService esperService)
RifidiApp
setEsperService
in interface RifidiApp
esperService
- the esperService to setpublic void setAppProperties(java.util.Properties properties)
RifidiApp
setAppProperties
in interface RifidiApp
public void setBundleContext(BundleContext arg0)
public void initialize()
RifidiApp
initialize
in interface RifidiApp
public boolean lazyStart()
RifidiApp
public final void start()
RifidiApp
public final void stop()
RifidiApp
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object