当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 console API Documentation 英文版文档
DeploymentFileRepository (JBoss Console API) - JBoss 4.0.1 sp1 console API Documentation 英文版文档
org.jboss.console.manager
Class DeploymentFileRepository
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.console.manager.DeploymentFileRepository
- All Implemented Interfaces:
- DeploymentFileRepositoryMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class DeploymentFileRepository
- extends org.jboss.system.ServiceMBeanSupport
- implements DeploymentFileRepositoryMBean
This class wraps the file system
for deployments. It gives a file-based
persistence mechanism for deployments.
Used by web-console to store -service.xml files,
-ds.xml files, etc..., really anything text based.
Deployments are tied to a specific name and that name
corresponds to the base file name.
- Version:
- $Revision: 1.2 $
- Author:
- Bill Burke
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, start, startService, stop, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, 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.system.ServiceMBean |
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
serverHome
protected File serverHome
- The server's home directory, for relative paths.
serverHomeURL
protected URL serverHomeURL
DeploymentFileRepository
public DeploymentFileRepository()
store
public void store(String folder,
String name,
String fileExtension,
String data,
boolean noHotDeploy)
throws IOException
- Specified by:
store
in interface DeploymentFileRepositoryMBean
- Parameters:
folder
- relative directoryname
- base name of file. Whitespace will be removed from name and replaced with '_'fileExtension
- must have a '.' in extdata
- noHotDeploy
- keep timestamp of file so it doesn't do a redeploy
- Throws:
IOException
remove
public void remove(String folder,
String name,
String fileExtension)
- Specified by:
remove
in interface DeploymentFileRepositoryMBean
isStored
public boolean isStored(String folder,
String name,
String fileExtension)
- Specified by:
isStored
in interface DeploymentFileRepositoryMBean
getBaseDir
public String getBaseDir()
- Specified by:
getBaseDir
in interface DeploymentFileRepositoryMBean
setBaseDir
public void setBaseDir(String baseDir)
- Specified by:
setBaseDir
in interface DeploymentFileRepositoryMBean
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws Exception
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
- Throws:
Exception
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.