[jboss-cvs] JBossAS SVN: r69221 - trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 22 17:38:30 EST 2008
Author: bstansberry at jboss.com
Date: 2008-01-22 17:38:30 -0500 (Tue, 22 Jan 2008)
New Revision: 69221
Modified:
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/AbstractHAPartitionStateTransfer.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/BadHAPartitionStateTransfer.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransfer.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransferMBean.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/HAPartitionStateTransferMBean.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransfer.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransferMBean.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartition.java
trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartitionMBean.java
Log:
License headers; javadoc
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/AbstractHAPartitionStateTransfer.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/AbstractHAPartitionStateTransfer.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/AbstractHAPartitionStateTransfer.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
import java.io.Serializable;
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/BadHAPartitionStateTransfer.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/BadHAPartitionStateTransfer.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/BadHAPartitionStateTransfer.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,8 +1,8 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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
@@ -24,9 +24,9 @@
import java.io.Serializable;
/**
- * HAPartitionStateTransfer impl that will return an object that
- * throws an exception when deserialized. Tests what happens when
- * there is failure handling the state transfer on the recipient side.
+ * HAPartitionStateTransfer impl that will trigger an exception either
+ * on the state sender side or the state receiver side during state
+ * transfer processing. See {@link #getCurrentState()} for details.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
* @version $Revision$
@@ -37,6 +37,14 @@
{
private boolean returnState;
+ /**
+ * Depending on whether {@link #getReturnState()} is <code>true</code>, either
+ * returns
+ * {@link BadHAPartitionState an object that will throw an exception when deserialized}
+ * or immediately throws {@link BadHAPartitionStateException}. The former
+ * allows testing of problems on the state receiver side; the latter allows
+ * testing of problems on the state generator side.
+ */
public Serializable getCurrentState()
{
if (returnState)
@@ -50,11 +58,19 @@
// no-op
}
+ /**
+ * Gets whether {@link #getCurrentState()} should return state or throw an
+ * exception.
+ */
public boolean getReturnState()
{
return returnState;
}
+ /**
+ * Sets whether {@link #getCurrentState()} should return state or throw an
+ * exception.
+ */
public void setReturnState(boolean returnState)
{
this.returnState = returnState;
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransfer.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransfer.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransfer.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
import java.io.Serializable;
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransferMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransferMBean.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/CustomStateHAPartitionStateTransferMBean.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
public interface CustomStateHAPartitionStateTransferMBean extends HAPartitionStateTransferMBean
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/HAPartitionStateTransferMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/HAPartitionStateTransferMBean.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/HAPartitionStateTransferMBean.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
import org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer;
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransfer.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransfer.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransfer.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
import java.io.Serializable;
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransferMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransferMBean.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/SimpleHAPartitionStateTransferMBean.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,3 +1,24 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.test.cluster.hapartition.state;
public interface SimpleHAPartitionStateTransferMBean
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartition.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartition.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartition.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,8 +1,8 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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
@@ -27,7 +27,7 @@
import org.jboss.ha.framework.server.ClusterPartitionConfig;
/**
- * ClusterPartition that uses StartupTestHAPartition as its HAPartition impl.
+ * ClusterPartition that catches and saves any exceptions thrown in start().
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
* @version $Revision$
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartitionMBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartitionMBean.java 2008-01-22 22:32:21 UTC (rev 69220)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/hapartition/state/StartupTestClusterPartitionMBean.java 2008-01-22 22:38:30 UTC (rev 69221)
@@ -1,14 +1,14 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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
@@ -23,7 +23,6 @@
import java.util.List;
-import org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer;
import org.jboss.ha.framework.server.ClusterPartitionMBean;
/**
More information about the jboss-cvs-commits
mailing list