Java Doc for ExpandDeployGenerator.java in » EJB-Server-resin-3.1.5 » resin » com » caucho » server » deploy » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
EJB Server resin 3.1.5
»
resin
»
com.caucho.server.deploy
Source Cross Reference
Class Diagram
Java Document (Java Doc)
com.caucho.server.deploy
.ExpandDeployGenerator
ExpandDeployGenerator
abstract
public
class ExpandDeployGenerator extends DeployGenerator
implements AlarmListener
(Code)
The generator for the deploy
Constructor Summary
public
ExpandDeployGenerator
(
DeployContainer
<E> container, Path containerRootDirectory)
Creates the deploy.
Method Summary
public
void
addRequireFile
(
String
file)
Adds a required file in the expansion.
protected
String
archiveNameToEntryName
(
String
archiveName)
Converts the entry name to the archive name, returns null if the entry name is not valid.
abstract
protected
E
createController
(
String
name)
Creates a new entry.
protected
String
entryNameToArchiveName
(
String
entryName)
Converts the archive name to the entry name, returns null if the archive name is not valid.
public
boolean
equals
(
Object
o)
Tests for equality.
protected
void
fillDeployedKeys
(
Set
<
String
> keys)
Returns the deployed keys.
public
E
generateController
(
String
name)
Finds the matching entry.
public
Path
getArchiveDirectory
()
Gets the war expand directory.
public
Path
getArchivePath
(
String
name)
Returns the location for deploying an archive with the specified name.
public
Throwable
getConfigException
(
String
name)
Path
getContainerRootDirectory
()
public
long
getDependencyCheckInterval
()
public
Path
getExpandDirectory
()
Gets the war expand directory.
protected
String
getExpandName
(
String
name)
Returns the combination of prefix, name, and suffix used for expanded archives.
public
Path
getExpandPath
(
String
name)
Returns the location of an expanded archive, or null if no archive with the passed name is deployed.
public
String
getExpandPrefix
()
Gets the expand prefix.
public
String
getExpandSuffix
()
Gets the expand suffix.
public
String
getExtension
()
Returns the extension.
protected
Logger
getLog
()
Returns the log.
public
String
[]
getNames
()
public
Path
getPath
()
Gets the default path.
public
ArrayList
<
String
>
getVersionNames
(
String
name)
public
void
handleAlarm
(Alarm alarm)
Checks for updates.
protected
void
initImpl
()
Configuration checks on init.
protected
boolean
isDeployedKey
(
String
key)
Return true for a matching key.
public
boolean
isModified
()
Returns true if the deployment has modified.
protected
boolean
isValidDirectory
(Path rootDirectory,
String
pathName)
public
boolean
isVersioning
()
public
boolean
logModified
(
Logger
log)
protected
String
pathNameToEntryName
(
String
name)
Converts the expand-path name to the entry name, returns null if the path name is not valid.
public
void
request
()
Redeploys if modified.
public
void
setArchiveDirectory
(Path path)
Sets the war expand dir to check for new archive files.
public
void
setDependencyCheckInterval
(
Period
period)
Sets the dependency check interval.
public
void
setExpandCleanupFileset
(
FileSetType
fileSet)
Sets the expand remove file set.
public
void
setExpandDirectory
(Path path)
Sets the war expand dir to check for new applications.
public
void
setExpandPath
(Path path)
Sets the war expand dir to check for new applications.
public
void
setExpandPrefix
(
String
prefix)
Sets the expand prefix to check for new applications.
public
void
setExpandSuffix
(
String
suffix)
Sets the expand suffix to check for new applications.
public
void
setExtension
(
String
extension)
Sets the extension.
public
void
setPath
(Path path)
Sets the deploy directory.
public
void
setVersioning
(boolean isVersioning)
public
boolean
start
(
String
name)
Start the archive.
protected
void
startImpl
()
Starts the deploy.
public
boolean
stop
(
String
name)
Stop the archive.
protected
void
stopImpl
()
Stops the deploy.
public
String
toString
()
public
boolean
undeploy
(
String
name)
Undeploy the archive.
public
void
update
()
Forces an update.
Constructor Detail
ExpandDeployGenerator
public
ExpandDeployGenerator(
DeployContainer
<E> container, Path containerRootDirectory)
(Code)
Creates the deploy.
Method Detail
addRequireFile
public
void addRequireFile(
String
file) throws ConfigException
(Code)
Adds a required file in the expansion.
archiveNameToEntryName
protected
String
archiveNameToEntryName(
String
archiveName)
(Code)
Converts the entry name to the archive name, returns null if the entry name is not valid.
createController
abstract
protected
E createController(
String
name)
(Code)
Creates a new entry.
entryNameToArchiveName
protected
String
entryNameToArchiveName(
String
entryName)
(Code)
Converts the archive name to the entry name, returns null if the archive name is not valid.
equals
public
boolean equals(
Object
o)
(Code)
Tests for equality.
fillDeployedKeys
protected
void fillDeployedKeys(
Set
<
String
> keys)
(Code)
Returns the deployed keys.
generateController
public
E generateController(
String
name)
(Code)
Finds the matching entry.
getArchiveDirectory
public
Path getArchiveDirectory()
(Code)
Gets the war expand directory.
getArchivePath
public
Path getArchivePath(
String
name)
(Code)
Returns the location for deploying an archive with the specified name.
Parameters:
name - a name, without an extension
getConfigException
public
Throwable
getConfigException(
String
name)
(Code)
Returns an exception for the named archive or null if there is no exception
getContainerRootDirectory
Path getContainerRootDirectory()
(Code)
getDependencyCheckInterval
public
long getDependencyCheckInterval()
(Code)
getExpandDirectory
public
Path getExpandDirectory()
(Code)
Gets the war expand directory.
getExpandName
protected
String
getExpandName(
String
name)
(Code)
Returns the combination of prefix, name, and suffix used for expanded archives.
getExpandPath
public
Path getExpandPath(
String
name)
(Code)
Returns the location of an expanded archive, or null if no archive with the passed name is deployed.
Parameters:
name - a name, without an extension
getExpandPrefix
public
String
getExpandPrefix()
(Code)
Gets the expand prefix.
getExpandSuffix
public
String
getExpandSuffix()
(Code)
Gets the expand suffix.
getExtension
public
String
getExtension()
(Code)
Returns the extension.
getLog
protected
Logger
getLog()
(Code)
Returns the log.
getNames
public
String
[] getNames()
(Code)
getPath
public
Path getPath()
(Code)
Gets the default path.
getVersionNames
public
ArrayList
<
String
> getVersionNames(
String
name)
(Code)
handleAlarm
public
void handleAlarm(Alarm alarm)
(Code)
Checks for updates.
initImpl
protected
void initImpl() throws ConfigException
(Code)
Configuration checks on init.
isDeployedKey
protected
boolean isDeployedKey(
String
key)
(Code)
Return true for a matching key.
isModified
public
boolean isModified()
(Code)
Returns true if the deployment has modified.
isValidDirectory
protected
boolean isValidDirectory(Path rootDirectory,
String
pathName)
(Code)
isVersioning
public
boolean isVersioning()
(Code)
Sets true to enable versioning
logModified
public
boolean logModified(
Logger
log)
(Code)
Log the reason for modification
pathNameToEntryName
protected
String
pathNameToEntryName(
String
name)
(Code)
Converts the expand-path name to the entry name, returns null if the path name is not valid.
request
public
void request()
(Code)
Redeploys if modified.
setArchiveDirectory
public
void setArchiveDirectory(Path path)
(Code)
Sets the war expand dir to check for new archive files.
setDependencyCheckInterval
public
void setDependencyCheckInterval(
Period
period)
(Code)
Sets the dependency check interval.
setExpandCleanupFileset
public
void setExpandCleanupFileset(
FileSetType
fileSet)
(Code)
Sets the expand remove file set.
setExpandDirectory
public
void setExpandDirectory(Path path)
(Code)
Sets the war expand dir to check for new applications.
setExpandPath
public
void setExpandPath(Path path)
(Code)
Sets the war expand dir to check for new applications.
setExpandPrefix
public
void setExpandPrefix(
String
prefix) throws ConfigException
(Code)
Sets the expand prefix to check for new applications.
setExpandSuffix
public
void setExpandSuffix(
String
suffix) throws ConfigException
(Code)
Sets the expand suffix to check for new applications.
setExtension
public
void setExtension(
String
extension) throws ConfigException
(Code)
Sets the extension.
setPath
public
void setPath(Path path)
(Code)
Sets the deploy directory.
setVersioning
public
void setVersioning(boolean isVersioning)
(Code)
Sets true to enable versioning
start
public
boolean start(
String
name)
(Code)
Start the archive.
startImpl
protected
void startImpl()
(Code)
Starts the deploy.
stop
public
boolean stop(
String
name)
(Code)
Stop the archive.
stopImpl
protected
void stopImpl()
(Code)
Stops the deploy.
toString
public
String
toString()
(Code)
undeploy
public
boolean undeploy(
String
name)
(Code)
Undeploy the archive.
update
public
void update()
(Code)
Forces an update.
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.