001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.cache.bean;
023:
024: import java.rmi.RemoteException;
025: import javax.ejb.EJBObject;
026:
027: /**
028: * Remote interface for test/TreeCacheAopMBeanTester.
029: */
030: public interface TreeCacheAopMBeanTester extends EJBObject {
031:
032: public void createPerson(String key, String name, int age)
033: throws Exception, RemoteException;
034:
035: public void removePerson(String key) throws Exception,
036: RemoteException;
037:
038: public void setName(String key, String name) throws Exception,
039: RemoteException;
040:
041: public String getName(String key) throws Exception, RemoteException;
042:
043: public void setAge(String key, int age) throws Exception,
044: RemoteException;
045:
046: public int getAge(String key) throws Exception, RemoteException;
047:
048: public void setStreet(String key, String street) throws Exception,
049: RemoteException;
050:
051: public String getStreet(String key) throws Exception,
052: RemoteException;
053:
054: public void setCity(String key, String city) throws Exception,
055: RemoteException;
056:
057: public String getCity(String key) throws Exception, RemoteException;
058:
059: public void setZip(String key, int zip) throws Exception,
060: RemoteException;
061:
062: public int getZip(String key) throws Exception, RemoteException;
063:
064: public java.lang.Object getHobby(String key,
065: java.lang.Object hobbyKey) throws Exception,
066: RemoteException;
067:
068: public void setHobby(String key, java.lang.Object hobbyKey,
069: java.lang.Object value) throws Exception, RemoteException;
070:
071: public java.lang.Object getLanguage(String key, int index)
072: throws Exception, RemoteException;
073:
074: public void addLanguage(String key, java.lang.Object language)
075: throws Exception, RemoteException;
076:
077: public void removeLanguage(String key, java.lang.Object language)
078: throws Exception, RemoteException;
079:
080: public int getLanguagesSize(String key) throws Exception,
081: RemoteException;
082:
083: public java.util.Set getSkills(String key) throws Exception,
084: RemoteException;
085:
086: public void addSkill(String key, String skill) throws Exception,
087: RemoteException;
088:
089: public void removeSkill(String key, String skill) throws Exception,
090: RemoteException;
091:
092: public void printPerson(String key) throws Exception,
093: RemoteException;
094:
095: public void printCache() throws RemoteException;
096:
097: public java.lang.Object getFieldValue(String key, String name)
098: throws RemoteException;
099:
100: }
|