[jboss-cvs] JBossAS SVN: r103608 - projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 6 23:51:41 EDT 2010
Author: bstansberry at jboss.com
Date: 2010-04-06 23:51:40 -0400 (Tue, 06 Apr 2010)
New Revision: 103608
Modified:
projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java
Log:
[JBCLUSTER-265] Clean up HATarget
Modified: projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java
===================================================================
--- projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java 2010-04-07 03:30:39 UTC (rev 103607)
+++ projects/cluster/ha-server-api/trunk/src/main/java/org/jboss/ha/framework/server/HATarget.java 2010-04-07 03:51:40 UTC (rev 103608)
@@ -68,9 +68,9 @@
public static final int ENABLE_INVOCATIONS = 2;
protected String replicantName;
- protected ArrayList replicants = new ArrayList();
+ protected ArrayList<Object> replicants = new ArrayList<Object>();
protected HAPartition partition = null;
- protected Logger log;
+ protected Logger log = Logger.getLogger(this.getClass());;
protected int clusterViewId = 0;
protected Serializable target;
protected int allowInvocationsStatus = 0;
@@ -94,8 +94,7 @@
throws Exception
{
this.replicantName = replicantName;
- this.target = target;
- init ();
+ this.target = target;
setInvocationsAuthorization (allowInvocations);
updateHAPartition(partition);
}
@@ -178,7 +177,7 @@
* Examples include an RMI stub, a JBoss Remoting <code>InvokerLocator</code>
* or an HTTP URL.
*/
- public ArrayList getReplicants()
+ public List<Object> getReplicants()
{
return replicants;
}
@@ -260,7 +259,7 @@
// DistributedReplicantManager.ReplicantListener implementation ------------
- public void replicantsChanged(String key, List newReplicants, int newReplicantsViewId, boolean merge)
+ public void replicantsChanged(String key, List<Object> newReplicants, int newReplicantsViewId, boolean merge)
{
log.debug("replicantsChanged '" + replicantName +
"' to " + (newReplicants==null? "0 (null)" : Integer.toString (newReplicants.size() ) ) +
@@ -280,17 +279,6 @@
}
/**
- * Allows subclasses to perform initialization work.
- *
- * @throws Exception
- * @deprecated this will be removed in the next major release
- */
- @Deprecated protected void init() throws Exception
- {
- this.log = Logger.getLogger(this.getClass());
- }
-
- /**
* Associates this target with the given partition, registering
* with the partition's {@link DistributedReplicantManager}.
*
More information about the jboss-cvs-commits
mailing list