Java Doc for JBICommand.java in  » ESB » open-esb » com » sun » jbi » cli » commands » 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 » ESB » open esb » com.sun.jbi.cli.commands 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.jbi.cli.commands.JBICommand

All known Subclasses:   com.sun.jbi.cli.commands.JBIExtensionCommands,
JBICommand
abstract public class JBICommand extends com.sun.enterprise.cli.commands.JBICommand (Code)
Will start the JBI component on the specified target.
version:
   $Revision: 1.14 $


Field Summary
final static  StringCONFIG_COMMAND_FILENAME_ANT
    
final static  StringCONFIG_COMMAND_FILENAME_ASADMIN
    
final static  StringCONFIG_PROPERTIES_FILENAME
    
static  HashtablemCommandConversionTbl
    
static  HashtablemConnectionConversionTbl
    
 JBIComponentInfomInfo
    
static  String[]mValidStates
    
static  String[]mVariableTypes
    


Method Summary
protected  HashtableconstructCommandHashtable(String filePath)
     Using the ant file specified, this method will construct a hashtable that will contain all the commands defined in the ant file.
protected  voidconvertTemplateFilesToAsadmin(String fileDir)
     Will convert the template file from an ant syntax style to a asadmin syntax style.
protected  voidcreateAsadminConfigFile(Hashtable commandHashTable, String propertyFile, String asadminConfigFile)
     Using the provided commandHashTable, this method will create the asadmin command file.
protected  StringcreateFillString(char fillChar, int size)
     Will create a string of the size specified filled with the fillChar.
protected  voiddisplayCompositeItem(CompositeData compData, String itemKey, String bundleKey, int indention)
     Will extract the object from the given CompositeData using itemKey.
protected  voiddisplayCompositeUpTime(CompositeData compData, String itemKey, String bundleKey, int indention)
     Will extract the timestamp from the given CompositeData using itemKey.
protected  voiddisplayDescriptor(String descriptor)
    
protected  voiddisplayMap(Map map, int indentAmount)
     Will display the content of a Map sorted by the keys.
protected  voiddisplayMessage(String msg, int indentAmount)
     Will display the provided message to the screen.
protected  voiddisplayOptionHeader(String bundleKey, int indention)
     Will extract the header using the given bundleKey and display it to the screen.
protected  voiddisplayOptionHeader(String bundleKey, String valueStr, int indention)
     Will extract the header using the given bundleKey and display it using the given value String.
protected  voiddisplayProperties(Properties properties, int indentAmount)
     Will display the content of a Map sorted by the keys.
protected  PropertiesgetAnyProperties()
     Will first check the properties options for either a property file or properties specified on the command line.
protected  ObjectgetCompositeItem(CompositeData compData, String itemKey)
     Will extract the object from the given CompositeData using itemKey.
protected  StringgetLocalizedString(String key)
     Overloaded method that will first use the StringManager to look for the property value, If not found there, the super class getLocalizedString method will used.
protected  StringgetLocalizedString(String key, Object[] args)
     Overloaded method that will first use the StringManager to look for the property value, If not found there, the super class getLocalizedString method will used.
protected  intgetMaxKeyLength(Set aSet)
     Utility method that will determine the max width of the key field (col).
Parameters:
  aSet - The set containing the key value pairs that will be displayed.
public  StringgetName()
    
protected  PropertiesinsertType(Properties properties)
     Will insert the default type [STRING] into the properties string if one is not present.
protected  StringmultiLineFormat(String msgText, int maxLength, int indentAmount)
     Will format the description text that is displayed in the show commands.
protected  voidprintCompositeData(TabularData statsReport, int indention, int tabsize)
     Will parse and print the Report about the composite data.
protected  voidprintCompositeData(CompositeData compData, int recursiveLevel, int indention, int tabsize)
     Will parse and print the Report about the composite data.
protected  voidprocessComponentResults(TabularData data, String componentName)
     Will process the Component TabularData object to display the Component information to the screen.
protected  voidprocessEndpointResults(TabularData data, String endpointName)
     Will process the Endpoint TabularData object to display the Endpoint information to the screen.
protected  voidprocessFrameworkResults(TabularData data)
     Will process the Framework TabularData object to display the Framework information to the screen.
protected  voidprocessJBIAdminAsseblyListResult(String result)
    
protected  voidprocessJBIAdminComponentListResult(String result)
     Will process the list results for the components (Service Engines, Binding Components and Shared Libraries).
protected  voidprocessJBIAdminShowAssemblyResult(String result, String aName)
     Will format and display the Service Assembly show results.
protected  voidprocessJBIAdminShowComponentResult(String result, String aName)
     Will format and display the component (binding or engine) show results.
protected  voidprocessJBIAdminShowLibraryResult(String result, String aName)
     Will format and display the Shared Library show results.
protected  voidprocessNMRResults(TabularData data)
     Will process the NMR TabularData object to display the NMR information to the screen.
protected  voidprocessServiceAssemblyResults(TabularData data, String saName)
     Will process the Service Assembly TabularData object to display the Service Assembly information to the screen.
protected  voidprocessVerifyResults(CompositeData compData)
     Will process the Verify CompositData results.
protected  StringreplaceString(String originalStr, String patternStr, String replacementStr)
     Utility method that will replace a pattern in a string.
protected  voidupdateConectionPropertiesFile(String fileName)
     Will scan through the connection properties file and replace the ant property keys with ones that are used by asadmin.

Field Detail
CONFIG_COMMAND_FILENAME_ANT
final static String CONFIG_COMMAND_FILENAME_ANT(Code)



CONFIG_COMMAND_FILENAME_ASADMIN
final static String CONFIG_COMMAND_FILENAME_ASADMIN(Code)



CONFIG_PROPERTIES_FILENAME
final static String CONFIG_PROPERTIES_FILENAME(Code)



mCommandConversionTbl
static Hashtable mCommandConversionTbl(Code)



mConnectionConversionTbl
static Hashtable mConnectionConversionTbl(Code)



mInfo
JBIComponentInfo mInfo(Code)



mValidStates
static String[] mValidStates(Code)



mVariableTypes
static String[] mVariableTypes(Code)





Method Detail
constructCommandHashtable
protected Hashtable constructCommandHashtable(String filePath) throws SAXException, IOException, ParserConfigurationException(Code)
Using the ant file specified, this method will construct a hashtable that will contain all the commands defined in the ant file.
Parameters:
  filePath - The file path to the ant command file.
throws:
  SAXException -
throws:
  IOException -
throws:
  ParserConfigurationException -



convertTemplateFilesToAsadmin
protected void convertTemplateFilesToAsadmin(String fileDir) throws CommandException(Code)
Will convert the template file from an ant syntax style to a asadmin syntax style.
Parameters:
  fileDir - The directory containing the files to convert.
throws:
  CommandException -



createAsadminConfigFile
protected void createAsadminConfigFile(Hashtable commandHashTable, String propertyFile, String asadminConfigFile) throws IOException(Code)
Using the provided commandHashTable, this method will create the asadmin command file. This is the file that will contain the asadmin commands.
Parameters:
  commandHashTable - The hashtable the contains the commands.
Parameters:
  propertyFile - FilePath name of the property file containing the connection info.
Parameters:
  asadminConfigFile - Name of the asadmin config file to create.
throws:
  IOException -



createFillString
protected String createFillString(char fillChar, int size)(Code)
Will create a string of the size specified filled with the fillChar.
Parameters:
  fillChar - the character to create the string with
Parameters:
  the - size of the string



displayCompositeItem
protected void displayCompositeItem(CompositeData compData, String itemKey, String bundleKey, int indention)(Code)
Will extract the object from the given CompositeData using itemKey. Then it will display the object using it toString() method.
Parameters:
  compData - The composite data
Parameters:
  itemKey - The key to extract the object from the composite data
Parameters:
  bundleKey - The property key value
Parameters:
  indention - The amount to indent the string



displayCompositeUpTime
protected void displayCompositeUpTime(CompositeData compData, String itemKey, String bundleKey, int indention)(Code)
Will extract the timestamp from the given CompositeData using itemKey. Then it will display the time stamp using the bundleKey to retrieve the string from the LocalString property file.
Parameters:
  compData - The composite data
Parameters:
  itemKey - The key to extract the object from the composite data
Parameters:
  bundleKey - The property key value
Parameters:
  indention - The amount to indent the string



displayDescriptor
protected void displayDescriptor(String descriptor)(Code)
Will display the descriptor result (xml file)
Parameters:
  descriptor - string (xml format)



displayMap
protected void displayMap(Map map, int indentAmount)(Code)
Will display the content of a Map sorted by the keys. The display format will be key = value, one entry per line.
Parameters:
  map - The map to display



displayMessage
protected void displayMessage(String msg, int indentAmount)(Code)
Will display the provided message to the screen.
Parameters:
  msg - The message to display
Parameters:
  indentAmount - The amount to indent the message by



displayOptionHeader
protected void displayOptionHeader(String bundleKey, int indention)(Code)
Will extract the header using the given bundleKey and display it to the screen.
Parameters:
  bundleKey - The property key value
Parameters:
  indention - The amount to indent the string



displayOptionHeader
protected void displayOptionHeader(String bundleKey, String valueStr, int indention)(Code)
Will extract the header using the given bundleKey and display it using the given value String.
Parameters:
  bundleKey - The property key value
Parameters:
  valaueStr - The string containing the values to use in the output string
Parameters:
  indention - The amount to indent the string



displayProperties
protected void displayProperties(Properties properties, int indentAmount)(Code)
Will display the content of a Map sorted by the keys. The display format will be key = value, one entry per line.
Parameters:
  map - The map to display



getAnyProperties
protected Properties getAnyProperties() throws CommandException, CommandValidationException(Code)
Will first check the properties options for either a property file or properties specified on the command line. If no properties option is found, an empty properties object will be returned. properties object, will be empty if not properties are found
throws:
  CommandException -
throws:
  CommandValidationException -



getCompositeItem
protected Object getCompositeItem(CompositeData compData, String itemKey)(Code)
Will extract the object from the given CompositeData using itemKey.
Parameters:
  compData - The composite data
Parameters:
  itemKey - The key to extract the object from the composite data the object retrieved from the Composite Data.



getLocalizedString
protected String getLocalizedString(String key)(Code)
Overloaded method that will first use the StringManager to look for the property value, If not found there, the super class getLocalizedString method will used. This needs to be implemented for multimode to work.
Parameters:
  key - The properties key The property value (localized string)



getLocalizedString
protected String getLocalizedString(String key, Object[] args)(Code)
Overloaded method that will first use the StringManager to look for the property value, If not found there, the super class getLocalizedString method will used. This needs to be implemented for multimode to work.
Parameters:
  key - The properties key args[] The array of arguments The property value (localized string)



getMaxKeyLength
protected int getMaxKeyLength(Set aSet)(Code)
Utility method that will determine the max width of the key field (col).
Parameters:
  aSet - The set containing the key value pairs that will be displayed. the max length for the key field



getName
public String getName()(Code)
Will return the command name the command name



insertType
protected Properties insertType(Properties properties)(Code)
Will insert the default type [STRING] into the properties string if one is not present.
Parameters:
  properties - The properties to analyize and update



multiLineFormat
protected String multiLineFormat(String msgText, int maxLength, int indentAmount)(Code)
Will format the description text that is displayed in the show commands. The formatting will consist of removing all new lines and extra white space, then adding back in line breaks at the first avaliable location that is less then or equal to the given max line length.
Parameters:
  msgText - the message string to format
Parameters:
  maxLength - the maximum line length size.
Parameters:
  indentAmout - the amount to indent row 2 - n



printCompositeData
protected void printCompositeData(TabularData statsReport, int indention, int tabsize)(Code)
Will parse and print the Report about the composite data.
Parameters:
  compData - The CompositeData
Parameters:
  indention - The amount to indent the string
Parameters:
  tabsize - The tabsize



printCompositeData
protected void printCompositeData(CompositeData compData, int recursiveLevel, int indention, int tabsize)(Code)
Will parse and print the Report about the composite data.
Parameters:
  compData - The CompositeData
Parameters:
  recursiveLevel - Level of recursion
Parameters:
  indention - The amount to indent the string
Parameters:
  tabsize - The tabsize (indention for each resursion level)



processComponentResults
protected void processComponentResults(TabularData data, String componentName)(Code)
Will process the Component TabularData object to display the Component information to the screen.
Parameters:
  data - The TabularData containing the CompositData to display
Parameters:
  componentName - The Component name



processEndpointResults
protected void processEndpointResults(TabularData data, String endpointName)(Code)
Will process the Endpoint TabularData object to display the Endpoint information to the screen.
Parameters:
  data - The TabularData containing the CompositData to display
Parameters:
  endpointName - The Endpoint name



processFrameworkResults
protected void processFrameworkResults(TabularData data)(Code)
Will process the Framework TabularData object to display the Framework information to the screen.
Parameters:
  data - The TabularData containing the CompositData to display



processJBIAdminAsseblyListResult
protected void processJBIAdminAsseblyListResult(String result)(Code)
Will process the list results for the Service Assemblies
Parameters:
  result - The result xml string



processJBIAdminComponentListResult
protected void processJBIAdminComponentListResult(String result)(Code)
Will process the list results for the components (Service Engines, Binding Components and Shared Libraries). was specified, the default value will be returned.
Parameters:
  result - The result xml string



processJBIAdminShowAssemblyResult
protected void processJBIAdminShowAssemblyResult(String result, String aName)(Code)
Will format and display the Service Assembly show results.
Parameters:
  result - the xml string containing the result information
Parameters:
  aName - the name of the service assembly



processJBIAdminShowComponentResult
protected void processJBIAdminShowComponentResult(String result, String aName)(Code)
Will format and display the component (binding or engine) show results.
Parameters:
  result - the xml string containing the result information
Parameters:
  aName - the name of the component



processJBIAdminShowLibraryResult
protected void processJBIAdminShowLibraryResult(String result, String aName)(Code)
Will format and display the Shared Library show results.
Parameters:
  result - the xml string containing the result information
Parameters:
  aName - the name of the shared library



processNMRResults
protected void processNMRResults(TabularData data)(Code)
Will process the NMR TabularData object to display the NMR information to the screen.
Parameters:
  data - The TabularData containing the CompositData to display



processServiceAssemblyResults
protected void processServiceAssemblyResults(TabularData data, String saName)(Code)
Will process the Service Assembly TabularData object to display the Service Assembly information to the screen.
Parameters:
  data - The TabularData containing the CompositData to display
Parameters:
  saName - The Service Assembly name



processVerifyResults
protected void processVerifyResults(CompositeData compData)(Code)
Will process the Verify CompositData results.
Parameters:
  compData - The CompositeData



replaceString
protected String replaceString(String originalStr, String patternStr, String replacementStr)(Code)
Utility method that will replace a pattern in a string.
Parameters:
  originalStr - The original input string
Parameters:
  patternStr - The pattern to replace in the string.
Parameters:
  replacementStr - The string to replace the patternStr with.



updateConectionPropertiesFile
protected void updateConectionPropertiesFile(String fileName) throws IOException(Code)
Will scan through the connection properties file and replace the ant property keys with ones that are used by asadmin.
Parameters:
  fileName - the connection properties file
throws:
  IOException -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.