org.jboss.ha.framework.server
Class FarmMemberService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.deployment.scanner.AbstractDeploymentScanner
              extended by org.jboss.deployment.scanner.URLDeploymentScanner
                  extended by org.jboss.ha.framework.server.FarmMemberService
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, DeploymentScanner, DeploymentScannerMBean, URLDeploymentScannerMBean, FarmMemberServiceMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean

Deprecated. No longer used since 5.0.0; will be removed in 6.0.0

public class FarmMemberService
extends URLDeploymentScanner
implements FarmMemberServiceMBean

Version:
$Revision: 86549 $

20021014 andreas schaefer:

20020809 bill burke:

Author:
Andreas Schaefer, Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.deployment.scanner.URLDeploymentScanner
URLDeploymentScanner.DeployedURL
 
Nested classes/interfaces inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner
AbstractDeploymentScanner.ScannerThread
 
Field Summary
protected  org.jboss.ha.framework.interfaces.HAPartition mClusterPartition
          Deprecated.  
protected  HashMap parentDUMap
          Deprecated.  
protected  ArrayList remotelyDeployed
          Deprecated.  
protected  ArrayList remotelyUndeployed
          Deprecated.  
protected static String SERVICE_NAME
          Deprecated.  
 
Fields inherited from class org.jboss.deployment.scanner.URLDeploymentScanner
deployedSet, doRecursiveSearch, filter, lastIncompleteDeploymentException, listerFactory, serverHome, serverHomeURL, skipSet, sorter, urlList
 
Fields inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner
deployer, mainDeployer, scanEnabled, scannerThread, scanPeriod, stopTimeOut
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.ha.framework.server.FarmMemberServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
FarmMemberService()
          Deprecated.  
 
Method Summary
protected  void createService()
          Deprecated. Looks up the Server Config instance to figure out the temp-directory and the farm-deploy-directory
protected  void createUnexistingLocalDir()
          Deprecated.  
protected  void deploy(URLDeploymentScanner.DeployedURL du)
          Deprecated.  
 void farmDeploy(String parentName, File destFile, Date date)
          Deprecated.  
 HashMap farmDeployments()
          Deprecated.  
 void farmUndeploy(String parentName, String fileName)
          Deprecated.  
protected  File findParent(String parentName)
          Deprecated.  
 org.jboss.ha.framework.interfaces.HAPartition getHAPartition()
          Deprecated. Get the underlying partition used by this service.
 String getName()
          Deprecated.  
 String getPartitionName()
          Deprecated. Gets the name of the partition used by this service.
protected  void pullNewDeployments(org.jboss.ha.framework.interfaces.HAPartition partition, HashMap farmed)
          Deprecated.  
 void setFarmDeployDirectory(String urls)
          Deprecated.  
 void setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
          Deprecated. Sets the underlying partition used by this service.
 void setScannerName(String name)
          Deprecated.  
protected  void startService()
          Deprecated. Register itself as RPC-Handler to the HA-Partition and add the farm deployment directory to the scanner
protected  void undeploy(URLDeploymentScanner.DeployedURL du)
          Deprecated.  
 
Methods inherited from class org.jboss.deployment.scanner.URLDeploymentScanner
addURL, addURL, getFilter, getFilterInstance, getRecursiveSearch, getURLComparator, getURLList, hasURL, hasURL, isDeployed, listDeployedURLs, makeURL, preRegister, removeURL, removeURL, resumeDeployment, scan, setFilter, setFilterInstance, setRecursiveSearch, setURLComparator, setURLList, setURLs, suspendDeployment, updateSorter
 
Methods inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner
destroyService, getDeployer, getScanPeriod, getStopTimeOut, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod, setStopTimeOut, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.deployment.scanner.DeploymentScanner
getDeployer, getScanPeriod, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod
 
Methods inherited from interface org.jboss.deployment.scanner.DeploymentScannerMBean
getDeployer, getStopTimeOut, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod, setStopTimeOut
 
Methods inherited from interface org.jboss.system.ServiceMBean
getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

mClusterPartition

protected org.jboss.ha.framework.interfaces.HAPartition mClusterPartition
Deprecated. 

SERVICE_NAME

protected static final String SERVICE_NAME
Deprecated. 
See Also:
Constant Field Values

parentDUMap

protected HashMap parentDUMap
Deprecated. 

remotelyDeployed

protected ArrayList remotelyDeployed
Deprecated. 

remotelyUndeployed

protected ArrayList remotelyUndeployed
Deprecated. 
Constructor Detail

FarmMemberService

public FarmMemberService()
Deprecated. 
Method Detail

getPartitionName

public String getPartitionName()
Deprecated. 
Description copied from interface: FarmMemberServiceMBean
Gets the name of the partition used by this service. This is a convenience method as the partition name is an attribute of HAPartition.

Specified by:
getPartitionName in interface FarmMemberServiceMBean
Returns:
the name of the partition

getHAPartition

public org.jboss.ha.framework.interfaces.HAPartition getHAPartition()
Deprecated. 
Description copied from interface: FarmMemberServiceMBean
Get the underlying partition used by this service.

Specified by:
getHAPartition in interface FarmMemberServiceMBean
Returns:
the partition

setHAPartition

public void setHAPartition(org.jboss.ha.framework.interfaces.HAPartition clusterPartition)
Deprecated. 
Description copied from interface: FarmMemberServiceMBean
Sets the underlying partition used by this service. Can be set only when the MBean is not in a STARTED or STARTING state.

Specified by:
setHAPartition in interface FarmMemberServiceMBean
Parameters:
clusterPartition - the partition

setFarmDeployDirectory

public void setFarmDeployDirectory(String urls)
                            throws MalformedURLException
Deprecated. 

Backward compatibility, mapped to the URLs attribute of URLDeploymentScannerMBean

Throws:
MalformedURLException

setScannerName

public void setScannerName(String name)
Deprecated. 

Backward compatibility, but ignored as it does nothing.


getName

public String getName()
Deprecated. 
Specified by:
getName in interface ServiceMBean
Overrides:
getName in class ServiceMBeanSupport

createService

protected void createService()
                      throws Exception
Deprecated. 
Looks up the Server Config instance to figure out the temp-directory and the farm-deploy-directory

Overrides:
createService in class URLDeploymentScanner
Throws:
Exception

startService

protected void startService()
                     throws Exception
Deprecated. 
Register itself as RPC-Handler to the HA-Partition and add the farm deployment directory to the scanner

Overrides:
startService in class AbstractDeploymentScanner
Throws:
Exception

pullNewDeployments

protected void pullNewDeployments(org.jboss.ha.framework.interfaces.HAPartition partition,
                                  HashMap farmed)
Deprecated. 

findParent

protected File findParent(String parentName)
Deprecated. 

farmDeployments

public HashMap farmDeployments()
Deprecated. 

farmDeploy

public void farmDeploy(String parentName,
                       File destFile,
                       Date date)
Deprecated. 

farmUndeploy

public void farmUndeploy(String parentName,
                         String fileName)
Deprecated. 

deploy

protected void deploy(URLDeploymentScanner.DeployedURL du)
Deprecated. 
Overrides:
deploy in class URLDeploymentScanner

undeploy

protected void undeploy(URLDeploymentScanner.DeployedURL du)
Deprecated. 
Overrides:
undeploy in class URLDeploymentScanner

createUnexistingLocalDir

protected void createUnexistingLocalDir()
Deprecated. 


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.