|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjBroker
ObjBroker defines operations that are used to load, create, add, remove and manage obix Obj's and provides a facade to Obj cache and overall object management.
It also provides a facade to watch and feed management and other horizontal modules.
Management of objects include object update notifications from modules.
Method Summary | |
---|---|
void |
addCondition(Condition condition)
Adds an alarm to the system. |
void |
addFeed(obix.Feed feed,
List feedSet)
Adds a set of Obj's to a feed. |
obix.Obj |
addObj(obix.Obj obj)
Adds object to object repository. |
void |
addObjTree(obix.Obj obj)
Adds object and its children to the object repository, recursively. |
void |
addProxy(String uri,
ObjProxy proxy)
Adds a proxy obj. |
void |
addToFeed(obix.Feed feedObj,
obix.Obj obj)
Adds obj to all feeds associated with given feed obj. |
void |
clearFeed(obix.Feed feed)
Clears a feed. |
String |
getBaseUri()
Get base URI for this server. |
List |
getFeed(obix.Feed feed)
Returns the set of Obj's that belong to a feed. |
obix.Obj |
getObj(String uri)
Returns Obj for given URI in the Obj repository. |
obix.Obj |
invoke(obix.Obj obj,
String input,
String method)
Invokes processing for operation Obj's (Op Obj's). |
void |
notifyStatusChange(List objList)
Notifies about status change via a list of changed Obj's. |
void |
notifyStatusChange(obix.Obj obj)
Notifies about status change. |
void |
notifyStatusChangeRecursive(obix.Obj obj)
Notifies about status change recursively for passed obj and its children. |
void |
removeObjTree(obix.Obj obj)
Removes obj and its children from object repository. |
void |
updateObject(obix.Obj obj)
Updates obj in the repository. |
Methods inherited from interface obixserver.core.Service |
---|
start, stop |
Method Detail |
---|
String getBaseUri()
void updateObject(obix.Obj obj)
obj
- Obj to update
IllegalArgumentException
- if obj doesn't exist in the
repositoryvoid notifyStatusChangeRecursive(obix.Obj obj)
obj
- object whose status has changed
IllegalArgumentException
- if obj doesn't exist in the
repositoryvoid notifyStatusChange(obix.Obj obj)
obj
- obj whose status has changed
IllegalArgumentException
- if obj doesn't exist in the
repositoryvoid notifyStatusChange(List objList)
objList
- list of Obj's whose status has changed
IllegalArgumentException
- if obj doesn't exist in the
repositoryobix.Obj invoke(obix.Obj obj, String input, String method) throws ObixserverException
obj
- target on which invocation is performedinput
- input string for invocationmethod
- HTTP method of invocation
ObixserverException
obix.Obj addObj(obix.Obj obj)
obj
- obj to add
Illegal
- ObixserverException with code ERROR_BAD_URI
if href is not set properlyvoid addObjTree(obix.Obj obj)
obj
- obj to addvoid removeObjTree(obix.Obj obj)
obj
- obj to removevoid addFeed(obix.Feed feed, List feedSet)
feed
- feedSet
- void addToFeed(obix.Feed feedObj, obix.Obj obj)
feedObj
- obj
- void clearFeed(obix.Feed feed)
feed
- List getFeed(obix.Feed feed)
feed
- void addProxy(String uri, ObjProxy proxy)
uri
- proxy
- obix.Obj getObj(String uri)
uri
-
void addCondition(Condition condition)
condition
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |