[jboss-cvs] JBoss Messaging SVN: r8215 - branches/JBM1842/src/main/org/jboss/messaging/core/impl/postoffice.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 9 11:25:26 EST 2011


Author: gaohoward
Date: 2011-02-09 11:25:26 -0500 (Wed, 09 Feb 2011)
New Revision: 8215

Added:
   branches/JBM1842/src/main/org/jboss/messaging/core/impl/postoffice/StateRequest.java
Log:
save


Added: branches/JBM1842/src/main/org/jboss/messaging/core/impl/postoffice/StateRequest.java
===================================================================
--- branches/JBM1842/src/main/org/jboss/messaging/core/impl/postoffice/StateRequest.java	                        (rev 0)
+++ branches/JBM1842/src/main/org/jboss/messaging/core/impl/postoffice/StateRequest.java	2011-02-09 16:25:26 UTC (rev 8215)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2011, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+
+package org.jboss.messaging.core.impl.postoffice;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+
+/**
+ * A StateRequest
+ *
+ * @author howard
+ * 
+ * Created Feb 8, 2011 12:00:55 AM
+ *
+ *
+ */
+public class StateRequest extends ClusterRequest
+{
+   public void write(DataOutputStream out) throws Exception
+   {
+   }
+
+   public void read(DataInputStream in) throws Exception
+   {
+   }
+
+   Object execute(RequestTarget office) throws Throwable
+   {
+      return office.getState();
+   }
+
+   byte getType()
+   {
+      return ClusterRequest.STATE_REQUEST;
+   }
+}



More information about the jboss-cvs-commits mailing list