|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the remote interface for the BeanBroker
Method Summary | |
void |
addEvent(RemoteBean producer,
RemoteBean event)
Adding an Event and replicating it to all suscribed Objects. |
boolean |
beanExist(int key)
Returns whether an Bean is available within the Broker or not. |
java.lang.String |
checkUser(java.lang.String userName,
java.lang.String encr)
Checks if the given username exists or not |
RemoteBean |
getBean(int key)
Searches for a Bean by a given key. |
RemoteBean[] |
getBean(int[] key)
Searches for Beans by a given set of keys. |
int[] |
getBeanKey(java.lang.String aClass,
java.lang.String[] paramName,
java.lang.Object[] searchValue,
byte[] searchOp)
Searches for a Bean by a given key. |
BeanKeyCall |
getBeanKeyCall(java.lang.Class aClass)
Returns the Key-Call-Adapter for a asked Class (represented by it's key). |
int |
getClassKey(java.lang.Class aClass)
Class-Key of the Bean, differ between different classes. |
int |
getClassKey(RemoteBean aBean)
Class-Key of the Bean, differ between different classes. |
SkidEvent[] |
getEvent(RemoteBean consumer,
long newer)
Returns the Events for a consumer object which are newer than the given time |
BeanLink[] |
getLink(BeanLinkFilter filter)
Searches for a set of Links using the filter - capabilities of BeanLink . |
BeanLink |
getLink(int from,
int to,
int by)
Searches for a specific Link using it's primary key. |
java.lang.Object |
getUser(java.lang.Object o,
java.lang.String name,
java.lang.String encr)
Excanges an user with an authorised object (hardcoded) |
java.lang.Object |
getUser(java.lang.String name,
java.lang.String encr)
Excanges an user with an authorised object (hardcoded) |
java.lang.Object |
invokeCall(java.lang.Class beanClass,
java.lang.String name,
java.lang.Object[] args,
java.lang.String[] classnames)
Invokes the called method of the filterinterface. |
boolean |
linkExist(int from,
int to,
int by)
Returns if a specific Key exists, hiding all Exceptions. |
boolean |
logMsg(java.lang.String server,
java.lang.String point,
byte typ,
boolean ok,
java.lang.String msg)
Puts a Message to the LOG-Server if available and returns whether it was sent or not |
java.lang.Object[] |
putBean(RemoteBean aObj)
Puts the Bean into the Chache and saves it do not use manually. |
boolean |
putLink(BeanLink link)
Adds a new Relation between Beans. |
boolean |
putUser(java.lang.Object o)
Excanges an user with an authorised object (hardcoded) |
void |
setEvent(RemoteBean producer,
RemoteBean event,
RemoteBean consumer,
byte fromState,
byte toState)
Changing the State of an specific event. |
void |
suscribeEvent(RemoteBean producer,
RemoteBean event,
RemoteBean consumer)
Adding an Event-Pattern and suscribing this type of event. |
void |
testMode(boolean on)
Switches the test - mode on / off. |
Method Detail |
public int getClassKey(RemoteBean aBean) throws java.rmi.RemoteException
aBean
- a Bean asked for the class-idpublic int getClassKey(java.lang.Class aClass) throws java.rmi.RemoteException
aClass
- the Bean-Class asked for the class-idpublic java.lang.Object getUser(java.lang.Object o, java.lang.String name, java.lang.String encr) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
public java.lang.Object getUser(java.lang.String name, java.lang.String encr) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
public boolean putUser(java.lang.Object o) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
public java.lang.String checkUser(java.lang.String userName, java.lang.String encr) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
userName
- name of the userencr
- the encrypted password (optional)public java.lang.Object[] putBean(RemoteBean aObj) throws java.lang.Exception, java.rmi.RemoteException
flush
Remark: A System-Object cannot be modified and carries the created-Timestamp 0
aObj
- the calling Beanasgaard.skid.RemoteBean#saveflush
public int[] getBeanKey(java.lang.String aClass, java.lang.String[] paramName, java.lang.Object[] searchValue, byte[] searchOp) throws SkidException, java.rmi.RemoteException
aClass
- the searched classparamName
- list of the parameter to search forsearchValues
- values to fitsearch-operator
- public RemoteBean getBean(int key) throws java.lang.Exception, java.rmi.RemoteException
key
- the primary key of the objectpublic RemoteBean[] getBean(int[] key) throws java.lang.Exception, java.rmi.RemoteException
key
- the primary key of the objectpublic boolean beanExist(int key) throws java.rmi.RemoteException
key
- the unique key of the Beanpublic BeanKeyCall getBeanKeyCall(java.lang.Class aClass) throws java.lang.Exception
classkey
- the id of the classpublic boolean putLink(BeanLink link) throws java.lang.Exception, java.rmi.RemoteException
link
- one relationpublic BeanLink getLink(int from, int to, int by) throws java.lang.Exception, java.rmi.RemoteException
from
- key of the origin Beanto
- key of the target Beanby
- key of the link-Bean (kind of Link)public BeanLink[] getLink(BeanLinkFilter filter) throws java.lang.Exception, java.rmi.RemoteException
BeanLink
.filter
- the BeanLink used as Filterpublic boolean linkExist(int from, int to, int by) throws java.rmi.RemoteException
from
- key of the origin Beanto
- key of the target Beanby
- key of the link-Bean (kind of Link)public void addEvent(RemoteBean producer, RemoteBean event) throws java.lang.Exception, java.rmi.RemoteException
producer
- of the event (not null
)event
- the kond of the event (not null
)public void setEvent(RemoteBean producer, RemoteBean event, RemoteBean consumer, byte fromState, byte toState) throws java.lang.Exception, java.rmi.RemoteException
producer
- of the event (not null
)event
- the kond of the event (not null
)consumer
- of the event (not null
)fromState
- ols State of the eventtoState
- ols State of the eventpublic void suscribeEvent(RemoteBean producer, RemoteBean event, RemoteBean consumer) throws java.lang.Exception, java.rmi.RemoteException
producer
- of the event (not null
)event
- the kond of the event (not null
)consumer
- of the event (not null
)public SkidEvent[] getEvent(RemoteBean consumer, long newer) throws java.lang.Exception, java.rmi.RemoteException
consumer
- of the eventsnewer
- than the given timepublic java.lang.Object invokeCall(java.lang.Class beanClass, java.lang.String name, java.lang.Object[] args, java.lang.String[] classnames) throws java.lang.Exception
beanClass
- the class which the asked BeanKeyCall object is forname
- the name of the Methodargs
- the ArgumentsMethod.invoke(java.lang.Object, java.lang.Object[])
public void testMode(boolean on) throws java.rmi.RemoteException
public boolean logMsg(java.lang.String server, java.lang.String point, byte typ, boolean ok, java.lang.String msg) throws java.rmi.RemoteException
server
- The calling Java-Serverclasspoint
- The Method / place where the statement was createdtyp
- The Type of the LOG-Statementok
- Was the ServicePoint passed successfulymsg
- Human redable Message of the StatementLogMsg
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |