lumis.portal.cluster
Class SingleServerClusterManager

Package class diagram package SingleServerClusterManager
java.lang.Object
  extended by lumis.portal.cluster.AbstractClusterManager
      extended by lumis.portal.cluster.SingleServerClusterManager
All Implemented Interfaces:
IClusterManager

public class SingleServerClusterManager
extends AbstractClusterManager

The cluster manager implementation for single server (without cluster) deployment. In a single server environment the sending process triggers the receiving process immediately. As a consequence of this, the transmission consequences happens synchronously, but the same may not happen at a multi-server environment.

Since:
4.0.0

Field Summary
 
Fields inherited from class lumis.portal.cluster.AbstractClusterManager
processTransmissionsReceived, serverId
 
Constructor Summary
SingleServerClusterManager()
           
 
Method Summary
 IClusterConfig getClusterConfig(ITransaction transaction)
          Returns a persistent cluster configuration object.
 IClusterMember getLocalMember()
          Returns the current cluster member object.
 Collection<IClusterMember> getMembers()
          Returns a collection with information about the current members of this cluster.
 void send(IClusterTransmission transmission)
          Sends a transmission.
 
Methods inherited from class lumis.portal.cluster.AbstractClusterManager
createClusterCommand, createClusterMessage, destroy, init, transmissionReceived
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleServerClusterManager

public SingleServerClusterManager()
Method Detail

send

public void send(IClusterTransmission transmission)
Description copied from interface: IClusterManager
Sends a transmission.

Specified by:
send in interface IClusterManager
Specified by:
send in class AbstractClusterManager
Parameters:
transmission - the transmission. It must have been created using one of the factory methods available in IClusterManager.
See Also:
IClusterManager.createClusterCommand(Runnable), IClusterManager.createClusterMessage(String, Serializable)

getMembers

public Collection<IClusterMember> getMembers()
Description copied from interface: IClusterManager
Returns a collection with information about the current members of this cluster.

Returns:
a collection with information about the current members of this cluster.

getLocalMember

public IClusterMember getLocalMember()
Description copied from interface: IClusterManager
Returns the current cluster member object. The object returned represents the member where this method is executed on.

Returns:
this server cluster member object.

getClusterConfig

public IClusterConfig getClusterConfig(ITransaction transaction)
                                throws PortalException
Description copied from interface: IClusterManager
Returns a persistent cluster configuration object. The object contains the cluster configurations, and any changes will be applied on transaction commit.

Parameters:
transaction - the transaction for persistence access.
Returns:
a persistent cluster configuration instance.
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.