| 1 | /** |
| 2 | * Copyright (C) 2006 NetMind Consulting Bt. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 3 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
| 19 | package hu.netmind.beankeeper.node.impl; |
| 20 | |
| 21 | /** |
| 22 | * Send a call request. |
| 23 | * @author Brautigam Robert |
| 24 | * @version Revision: $Revision$ |
| 25 | */ |
| 26 | public class CallMessage extends CommObject |
| 27 | { |
| 28 | private String service; |
| 29 | private String method; |
| 30 | private Class[] parameterTypes; |
| 31 | private Object[] parameters; |
| 32 | private boolean broadcast; |
| 33 | |
| 34 | public CallMessage(String service, String method, Class[] parameterTypes, |
| 35 | Object[] parameters, boolean broadcast) |
| 36 | { |
| 37 | super(); |
| 38 | this.service=service; |
| 39 | this.method=method; |
| 40 | this.parameterTypes=parameterTypes; |
| 41 | this.parameters=parameters; |
| 42 | this.broadcast=broadcast; |
| 43 | } |
| 44 | |
| 45 | public boolean isBroadcast() |
| 46 | { |
| 47 | return broadcast; |
| 48 | } |
| 49 | |
| 50 | public String getService() |
| 51 | { |
| 52 | return service; |
| 53 | } |
| 54 | |
| 55 | public String getMethod() |
| 56 | { |
| 57 | return method; |
| 58 | } |
| 59 | |
| 60 | public Class[] getParameterTypes() |
| 61 | { |
| 62 | return parameterTypes; |
| 63 | } |
| 64 | |
| 65 | public Object[] getParameters() |
| 66 | { |
| 67 | return parameters; |
| 68 | } |
| 69 | |
| 70 | public String toString() |
| 71 | { |
| 72 | return "[Call: "+service+"."+method+" ("+getSessionId()+")]"; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | |