|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.YanceesFacade
This class centralized all aspects of yancees: 1) The unique connection to the dispatcher (siena, elvin or other) 2) The access to the specific Facades (publication, subscription, administration), configuring them as necessary 3) The parsing of files in Notification, Subscription and Message wrappers Local users should use this class as the front-end to Yancees notification server Remote users should use the RemoteYanceesInterface. This last interface is most likely to be the preferred one.
Field Summary | |
static boolean |
PERFORM_XML_VALIDATION
|
static boolean |
PRINT_DEBUG
|
static int |
PS_BUFFER_FLUSH_PERIOD
|
static int |
PS_BUFFER_SIZE
|
Constructor Summary | |
protected |
YanceesFacade()
This constructor, as protected, prevents the direct instantiation of this object, and guarantees the singleton characteristic of this class. |
Method Summary | |
void |
bootstrap(java.io.File configFile)
Initialize the client API using the provided configuration file. |
protected void |
finalize()
Automatically called when the object is destroyed, this method disposes all the resources alocated by the server, closing all the connections to the dispatcher in use, saving all data and finalyzing all the plug-ins and so on. |
static YanceesFacade |
getInstance()
The only way to access the unique instance of Yancees is by using this access method. |
ProtocolFacade |
getProtocolAPI()
Get access to the internal protocolAPI and initializes this component if necessary |
PublicationFacade |
getPublisherAPI()
Get access to the internal publisher API and initializes this component if necessary |
SubscriptionFacade |
getSubscriberAPI()
Gets access to the internal subscriber API and initializes this component if necessary |
void |
initialize()
Initializes the system using the default configuration. |
static GenericEvent |
parseEvent(java.io.File eventFile)
Allows users to easity parse their XML events before sending to the APIs |
static GenericMessage |
parseMessage(java.io.File messageFile)
Allows users to easity parse their XML messages before sending to the APIs |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean PRINT_DEBUG
public static boolean PERFORM_XML_VALIDATION
public static int PS_BUFFER_SIZE
public static int PS_BUFFER_FLUSH_PERIOD
Constructor Detail |
protected YanceesFacade()
Method Detail |
public static YanceesFacade getInstance()
public void initialize()
public void bootstrap(java.io.File configFile) throws ParsingException
configFile
- is a file having the configuration for all the components
of the system.
ParsingException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public ProtocolFacade getProtocolAPI()
public PublicationFacade getPublisherAPI()
public SubscriptionFacade getSubscriberAPI()
public static GenericMessage parseMessage(java.io.File messageFile) throws ParsingException
messageFile
- is the file to be parsed
ParsingException
- in case the public static GenericEvent parseEvent(java.io.File eventFile) throws ParsingException
eventFile
- is the file to be parsed
ParsingException
- in case the
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |