|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.service.dan.Monitor
A monitor is attached to some operator to manage its subscriptions or advertisement.
Field Summary | |
private DanService |
_dan
|
private DirectoryService |
_directory
|
private Guid |
_guid
|
private Name |
_name
|
private NodeManager |
_nodeman
|
private java.lang.Object |
_object
|
private Name |
_pname
|
private Name |
_pquery
|
private Name |
_query
|
Fields inherited from interface solar.service.dan.DanConstants |
DAN_INPORT, DAN_OUTPORT |
Fields inherited from interface solar.service.fap.FapConstants |
FAP_DATA, FAP_MIXED, FAP_PID, FAP_PULL, FAP_PUSH |
Constructor Summary | |
Monitor(DanService dan)
|
Method Summary | |
void |
advertise(Guid guid,
Name name,
java.lang.Object obj)
|
private Name |
composeName(Name name,
Event evt)
|
void |
handleEvent(Event evt)
Processing an event. |
void |
nameAdded(Name name,
NameRecord rec)
Handle event about the addition of a name. |
void |
nameMigrated(Name name,
NameRecord oldrec,
NameRecord newrec)
Handle event about the migration of a name (named resource). |
void |
nameRemoved(Name name,
NameRecord rec)
Handle event about the removal of a name. |
void |
nameUpdated(Name oldName,
NameRecord oldrec,
Name newName,
NameRecord newrec)
Handle event about the change of a name. |
private AttributeRecord |
replaceValue(AttributeRecord ar,
Event evt)
|
private void |
select()
|
void |
subscribe(Guid guid,
Name query)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Guid _guid
private Name _name
private Name _pname
private java.lang.Object _object
private Name _query
private Name _pquery
private DanService _dan
private NodeManager _nodeman
private DirectoryService _directory
Constructor Detail |
public Monitor(DanService dan)
Method Detail |
public void advertise(Guid guid, Name name, java.lang.Object obj) throws java.lang.Exception
java.lang.Exception
public void subscribe(Guid guid, Name query) throws java.lang.Exception
java.lang.Exception
public void nameAdded(Name name, NameRecord rec)
DirectoryListener
nameAdded
in interface DirectoryListener
public void nameRemoved(Name name, NameRecord rec)
DirectoryListener
nameRemoved
in interface DirectoryListener
public void nameUpdated(Name oldName, NameRecord oldrec, Name newName, NameRecord newrec)
DirectoryListener
nameUpdated
in interface DirectoryListener
public void nameMigrated(Name name, NameRecord oldrec, NameRecord newrec)
DirectoryListener
nameMigrated
in interface DirectoryListener
private void select()
private Name composeName(Name name, Event evt)
private AttributeRecord replaceValue(AttributeRecord ar, Event evt)
public void handleEvent(Event evt) throws java.lang.Exception
EventHandler
handleEvent
in interface EventHandler
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |