|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PaP.Actor | +--PaP.ApplicationActor | +--Watcher.v1_1.WatchServerNew
The PaP Application class utilise the PaP Subscribe functionality to display log and status information for an existing operative DirectorActor. An instance of the class subscribe for all types of events that is reported to the subscription functionality, and this information is displayed in three different fields in a separate window. First, the log information as it occurs, then a list of actors that has been created after the WatchServer instance has been started, and last a list of Role Sessions that has been created after the WatchServer instance has been created. The WatchServer instance is terminated by pushing the X button in the window.
Field Summary | |
private boolean |
changedBehaviour
Indication that behaviour has changed |
private RoleSession |
initialRoleSession
The initial role session created when actor is created. |
private boolean |
initiated
Indication that initial ActorPlugIn has been performed |
private RoleSession |
ownRoleSession
Role session when plugged into self - as preparation for ActorChangeBehaviour |
private java.lang.String |
startTime
Indication when initial instance was started |
private int |
state
|
private static int |
stInitial
|
private static int |
stNextStateToDefine
|
private static int |
stServerActive
|
private static int |
stServerPassive
|
private static int |
stUpgrade
|
private java.lang.String |
subscribeID
The unique subscription identifier returned when SubscribeRequest done |
private WatcherGraphicsInterface |
wgi
The object the is responsible for the presentation of the status and log information |
Fields inherited from class PaP.Actor |
bf, context, fh |
Constructor Summary | |
WatchServerNew()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
If the application has registered (by calling the 'WatcherGraphicalInterface' 'addActionListener()' method, this method will be called when the window is requested to be terminated by pushing the X button. |
RequestResult |
applicationActorEntry(RequestPars pRP)
The common entry point for all external requests to the actor |
private RequestResult |
stateTransition(GAI sender,
GAI receiver,
ApplicationMessage am)
This is the main behaviour definition for this actor. |
RequestResult |
subscribeReport(java.lang.String[] subscribeReport)
'subscribeReport()' metho is an overloading of a corresponding dummy representation of the same methon in the 'ApplicationActor' class. |
Methods inherited from class PaP.Actor |
findRoleSession, getGAI, start, status, term |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final int stInitial
private static final int stUpgrade
private static final int stServerActive
private static final int stServerPassive
private static final int stNextStateToDefine
private int state
private java.lang.String subscribeID
private WatcherGraphicsInterface wgi
private RoleSession initialRoleSession
private RoleSession ownRoleSession
private boolean initiated
private boolean changedBehaviour
private java.lang.String startTime
Constructor Detail |
public WatchServerNew()
Method Detail |
public RequestResult subscribeReport(java.lang.String[] subscribeReport) throws java.lang.Exception
subscribeReport
in class ApplicationActor
subscribeReport
- A list of reported events, where each event consist
of four parameters: a) Event type is defined in SubscribeRequest class,
b) Textual representation of the GAI address for the actor the report event
concerns, c) Event type dependent information, and d) The point of time
(in milliseconds since 1 jan. 1970) where the
event was reported to the DirectorActor (Use DateFormat class for formatting
to a suitable presentation format).public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The reported action event. The action command skall be 'CancelEventInd'.public RequestResult applicationActorEntry(RequestPars pRP) throws java.lang.Exception
applicationActorEntry
in class ApplicationActor
pRP
- The specification of request type and additional parametersprivate RequestResult stateTransition(GAI sender, GAI receiver, ApplicationMessage am) throws java.lang.Exception
sender
- The source of the received requestreceiver
- This actor's addressam
- The specification of the request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |