jrun.servlet.jrpp
Class JRunProxyClusterHelper

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrunx.cluster.ClusterableServiceAdapter
                    |
                    +--jrun.servlet.jrpp.JRunProxyClusterHelper
All Implemented Interfaces:
ClusterableService, ClusterableServiceAdapterMBean, ClusterConstants, ConfigurableServicePartitionMBean, JRunProxyClusterHelperRemote, PeerListener, javax.naming.Referenceable, java.rmi.Remote, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class JRunProxyClusterHelper
extends ClusterableServiceAdapter
implements JRunProxyClusterHelperRemote, PeerListener

See Also:
Serialized Form

Field Summary
static java.lang.String OBJECT_NAME
           
 
Fields inherited from class jrunx.cluster.ClusterableServiceAdapter
clientSocketFactoryName, defaultAlgorithm, myHost, myIP, myPeers, myStub, port, serverSocketFactoryName
 
Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Fields inherited from interface jrunx.cluster.ClusterConstants
AVAILABLE_SERVICES, CLUSTER_MANAGER_JNDI, DEFAULT_CLUSTER_DOMAIN, DEFAULT_ENABLED, JINI_CODE_BASE_JAR, PRIMARY_SERVICE, SECONDARY_SERVICE
 
Constructor Summary
JRunProxyClusterHelper(JRunProxyService jrpp)
           
 
Method Summary
 void destroy()
          Every service is eventually destroyed.
 java.lang.String getJrppHost()
           
 java.lang.String getJrppPort()
           
 int getSequence()
           
 void init()
          Not every service needs to init, implement it out of convenience.
 boolean isClusteringEnabled()
           
 void peerAddedEvent(ClusterableService peer)
           
 void peerRemovedEvent(ClusterableService peer)
           
 void setSequence(int iSeq)
           
 void start()
          Every service other than mere data collections should start
 void stop()
          Every service other than mere data collections should stop
 
Methods inherited from class jrunx.cluster.ClusterableServiceAdapter
addPeerListener, addServersToClients, getClientSocketFactory, getClusterAlgorithm, getPeers, getPort, getRemoteHostIP, getRemoteHostName, getRemoteServerName, getServerInfo, getServerSocketFactoryClass, invoke, isValidPeer, killRemoteServer, numPeers, setClientSocketFactoryClass, setClusterAlgorithm, setPort, setServerSocketFactoryClass, toStub
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroyServices, initServices, loadAndInit, loadChildren, setChildElements, startServices, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.cluster.ClusterableService
getPeers, getRemoteHostIP, getRemoteHostName, getRemoteServerName, getServerInfo, invoke, killRemoteServer, numPeers, toStub
 
Methods inherited from interface jrunx.kernel.ConfigurableServicePartitionMBean
setChildElements
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
getStatus, updateStatus
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
Constructor Detail

JRunProxyClusterHelper

public JRunProxyClusterHelper(JRunProxyService jrpp)
Method Detail

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Overrides:
init in class ClusterableServiceAdapter

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Overrides:
start in class ClusterableServiceAdapter

stop

public void stop()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should stop
Overrides:
stop in class ClusterableServiceAdapter

destroy

public void destroy()
             throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service is eventually destroyed. Convenience implementation.
Overrides:
destroy in class ClusterableServiceAdapter

isClusteringEnabled

public boolean isClusteringEnabled()

getJrppHost

public java.lang.String getJrppHost()
                             throws java.rmi.RemoteException
Specified by:
getJrppHost in interface JRunProxyClusterHelperRemote

getJrppPort

public java.lang.String getJrppPort()
                             throws java.rmi.RemoteException
Specified by:
getJrppPort in interface JRunProxyClusterHelperRemote

setSequence

public void setSequence(int iSeq)
                 throws java.rmi.RemoteException
Specified by:
setSequence in interface JRunProxyClusterHelperRemote

getSequence

public int getSequence()
                throws java.rmi.RemoteException
Specified by:
getSequence in interface JRunProxyClusterHelperRemote

peerAddedEvent

public void peerAddedEvent(ClusterableService peer)
Specified by:
peerAddedEvent in interface PeerListener

peerRemovedEvent

public void peerRemovedEvent(ClusterableService peer)
Specified by:
peerRemovedEvent in interface PeerListener


Copyright � 2002 Macromedia Corporation. All Rights Reserved.