01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.test.cache.bean;
23:
24: import java.rmi.RemoteException;
25:
26: import javax.ejb.EJBObject;
27:
28: /**
29: * Remote interface for test/TreeCacheAopTester.
30: */
31: public interface TreeCacheAopTester extends EJBObject {
32:
33: public void testSetup() throws RemoteException;
34:
35: public void createPerson(String key, String name, int age)
36: throws RemoteException;
37:
38: public void removePerson(String key) throws RemoteException;
39:
40: public void setName(String key, String name) throws RemoteException;
41:
42: public String getName(String key) throws RemoteException;
43:
44: public void setAge(String key, int age) throws RemoteException;
45:
46: public int getAge(String key) throws RemoteException;
47:
48: public void setStreet(String key, String street)
49: throws RemoteException;
50:
51: public String getStreet(String key) throws RemoteException;
52:
53: public void setCity(String key, String city) throws RemoteException;
54:
55: public String getCity(String key) throws RemoteException;
56:
57: public void setZip(String key, int zip) throws RemoteException;
58:
59: public int getZip(String key) throws RemoteException;
60:
61: public Object getHobby(String key, Object hobbyKey)
62: throws RemoteException;
63:
64: public void setHobby(String key, Object hobbyKey, Object value)
65: throws RemoteException;
66:
67: public Object getLanguage(String key, int index)
68: throws RemoteException;
69:
70: public void addLanguage(String key, Object language)
71: throws RemoteException;
72:
73: public void removeLanguage(String key, Object language)
74: throws RemoteException;
75:
76: public int getLanguagesSize(String key) throws RemoteException;
77:
78: public java.util.Set getSkills(String key) throws RemoteException;
79:
80: public void addSkill(String key, String skill)
81: throws RemoteException;
82:
83: public void removeSkill(String key, String skill)
84: throws RemoteException;
85:
86: public Object testSerialization() throws RemoteException;
87:
88: public void testDeserialization(String key, Object value)
89: throws RemoteException;
90:
91: public void printPerson(String key) throws RemoteException;
92:
93: public void printCache() throws RemoteException;
94:
95: public Object getFieldValue(String key, String name)
96: throws RemoteException;
97:
98: }
|