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


java.lang.Object
   com.sun.jbi.framework.ServiceUnit

ServiceUnit
public class ServiceUnit implements com.sun.jbi.ServiceUnitInfo(Code)
This class holds information about Service Unit deployed to a Binding Component (BC) or Service Engine (SE). This information is used by the JBI framework to manage Service Unit life cycles. The information is persisted by the Component Registry across restarts of the JBI framework.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  ServiceUnit(String saName, String name, String filePath)
     Create a new ServiceUnit instance.
public  ServiceUnit(String saName, String name, String filePath, String targetComp)
     Create a new ServiceUnit instance.
public  ServiceUnit(com.sun.jbi.ServiceUnitInfo suInfo)
     Create a new ServiceUnit instance from a ServiceUnitInfo instance.

Method Summary
public  booleanequals(Object object)
     Compare another Object with this one for equality.
public  ServiceUnitStategetDesiredState()
     Get the desired state for this Service Unit.
public  StringgetFilePath()
     Get the file path for this Service Unit.
public  StringgetName()
     Get the unique name for this Service Unit.
public  StringgetServiceAssemblyName()
     Get the unique name for the Service Assembly that contains this Service Unit.
public  ServiceUnitStategetState()
     Get the state of this Service Unit.
public  StringgetStateAsString()
     Get the state of this Service Unit as a string value.
public  StringgetStateAsString(ServiceUnitState state)
     Get a Service Unit state as a localized string value.
Parameters:
  state - a state, either SHUTDOWN, STARTED, or STOPPED.
public  StringgetTargetComponent()
     Get the target component for this Service Unit.
public  inthashCode()
     Get the hash code for this Service Unit instance.
public  booleanisShutdown()
     Check to see if this Service Unit is shut down.
public  booleanisStarted()
     Check to see if this Service Unit is started.
public  booleanisStopped()
     Check to see if this Service Unit is stopped.
 voidsetDesiredState(ServiceUnitState state)
     Set the desired Service Unit state.
public  voidsetShutdown()
     Set the Service Unit state to shutdown.
public  voidsetStarted()
     Set the Service Unit state to started.
 voidsetState(ServiceUnitState state)
     Set the Service Unit state.
public  voidsetStopped()
     Set the Service Unit state to stopped.
public  voidsetTargetComponent(String componentName)
     Set the target component for this Service Unit.
public  StringtoString()
     Convert to a String.


Constructor Detail
ServiceUnit
public ServiceUnit(String saName, String name, String filePath)(Code)
Create a new ServiceUnit instance.
Parameters:
  saName - is the unique name for the Service Assembly that containsthis Service Unit.
Parameters:
  name - is the unique name for this Service Unit.
Parameters:
  filePath - is the full path to the file defining this Service Unit.



ServiceUnit
public ServiceUnit(String saName, String name, String filePath, String targetComp)(Code)
Create a new ServiceUnit instance.
Parameters:
  saName - is the unique name for the Service Assembly that containsthis Service Unit.
Parameters:
  name - is the unique name for this Service Unit.
Parameters:
  filePath - is the full path to the file defining this Service Unit.
Parameters:
  targetComp - is the name of the component to which this Service Unitis deployed.



ServiceUnit
public ServiceUnit(com.sun.jbi.ServiceUnitInfo suInfo)(Code)
Create a new ServiceUnit instance from a ServiceUnitInfo instance.
Parameters:
  suInfo - is the instance to use to create the new instance.




Method Detail
equals
public boolean equals(Object object)(Code)
Compare another Object with this one for equality. Note that the state fields are not checked, only the fields that are not mutable.
Parameters:
  object - The object to be compared with this one. True if the object is equal to this Component, falseif they are not equal.



getDesiredState
public ServiceUnitState getDesiredState()(Code)
Get the desired state for this Service Unit. the desired state.



getFilePath
public String getFilePath()(Code)
Get the file path for this Service Unit. the file path.



getName
public String getName()(Code)
Get the unique name for this Service Unit. the Service Unit name.



getServiceAssemblyName
public String getServiceAssemblyName()(Code)
Get the unique name for the Service Assembly that contains this Service Unit. the Service Assembly name.



getState
public ServiceUnitState getState()(Code)
Get the state of this Service Unit. the state, either SHUTDOWN, STARTED, or STOPPED.



getStateAsString
public String getStateAsString()(Code)
Get the state of this Service Unit as a string value. the state as a string, either "shutdown", "started", or "stopped".



getStateAsString
public String getStateAsString(ServiceUnitState state)(Code)
Get a Service Unit state as a localized string value.
Parameters:
  state - a state, either SHUTDOWN, STARTED, or STOPPED. the state as a string, either "Shutdown", "Started", or "Stopped"in the current locale.



getTargetComponent
public String getTargetComponent()(Code)
Get the target component for this Service Unit. This is the name of the component to which the Service Unit is deployed. the target component name.



hashCode
public int hashCode()(Code)
Get the hash code for this Service Unit instance. the hash code.



isShutdown
public boolean isShutdown()(Code)
Check to see if this Service Unit is shut down. true if the Service Unit is shut down, false if not.



isStarted
public boolean isStarted()(Code)
Check to see if this Service Unit is started. true if the Service Unit is started, false if not.



isStopped
public boolean isStopped()(Code)
Check to see if this Service Unit is stopped. true if the Service Unit is stopped, false if not.



setDesiredState
void setDesiredState(ServiceUnitState state)(Code)
Set the desired Service Unit state.
Parameters:
  state - the state to be set.Valid states are SHUTDOWN, STOPPED, and STARTED.
throws:
  java.lang.IllegalArgumentException - if the state is not valid.



setShutdown
public void setShutdown()(Code)
Set the Service Unit state to shutdown.



setStarted
public void setStarted()(Code)
Set the Service Unit state to started.



setState
void setState(ServiceUnitState state)(Code)
Set the Service Unit state. This method is used ONLY by startup and unit test code. It does no validation of the state.
Parameters:
  state - the state to be set.Valid states are SHUTDOWN, STOPPED, and STARTED.



setStopped
public void setStopped()(Code)
Set the Service Unit state to stopped.



setTargetComponent
public void setTargetComponent(String componentName)(Code)
Set the target component for this Service Unit. This is the name of the component to which the Service Unit is deployed.
Parameters:
  componentName - the target component name.



toString
public String toString()(Code)
Convert to a String. the String representation of this ServiceUnit.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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