Methods Summary |
---|
public void | ejbCreate()
log.debug("My ID: " + myId);
|
public java.lang.String | getHostAddress()
return System.getProperty(ServerConfig.SERVER_BIND_ADDRESS);
|
public NodeAnswer | getNodeState()
NodeAnswer state = new NodeAnswer(myId, this.name);
log.debug("getNodeState, " + state);
return state;
|
public int | getPostActivate()
return postActivateCalled;
|
public int | getPrePassivate()
return prePassivateCalled;
|
public java.lang.String | getState()
log.debug("getState(): entering ...");
return this.state;
|
public int | increment()
System.out.println("INCREMENT - counter: " + (counter++));
return counter;
|
public void | longRunning()Sleep to test
log.debug("+++ longRunning() enter ");
Thread.sleep(20000); // 20000 will break the passivation test now.
log.debug("+++ longRunning() leave ");
|
public void | postActivate()
postActivateCalled++;
log.debug("Activate. My ID: " + myId + " name: " + this.name);
|
public void | prePassivate()
prePassivateCalled++;
log.debug("Passivate. My ID: " + myId + " name: " + this.name);
|
public void | remove()
|
public void | reset()
state = null;
postActivateCalled = 0;
prePassivateCalled = 0;
|
public void | resetActivationCounter()
postActivateCalled = 0;
prePassivateCalled = 0;
|
public void | setName(java.lang.String name)
this.name = name;
log.debug("Name set to " + name);
|
public void | setNameOnlyOnNode(java.lang.String name, java.rmi.dgc.VMID node)
if (node.equals(myId))
this.setName(name);
else
throw new EJBException("Trying to assign value on node " + myId + " but this node expected: " + node);
|
public void | setState(java.lang.String state)
this.state = state;
|
public void | setUpFailover(java.lang.String failover)
// To setup the failover property
log.debug("Setting up failover property: " +failover);
System.setProperty ("JBossCluster-DoFail", failover);
|