|Home | Products | Documents | Downloads | Purchase | Support | Company | Partners | Contact |

com.acelet.s
Class Envoy

java.lang.Object
  extended by com.acelet.s.Envoy
All Implemented Interfaces:
SuperBean

public abstract class Envoy
extends java.lang.Object
implements SuperBean


Field Summary
static Envoy envoy
           
static java.lang.String envoyId
           
static java.lang.String loginName
           
static java.lang.String password
           
static java.lang.String protocol
           
static java.lang.String providerUrl
           
static java.lang.String serverMachineName
           
static int serverPort
           
static java.lang.String SUPPORT_APPLICATION_LIST
           
static java.lang.String SUPPORT_CHANGE_PASSWORD
           
static java.lang.String SUPPORT_CONTEXT_LIST
           
static java.lang.String SUPPORT_DEPLOYMENT
           
static java.lang.String SUPPORT_LIST_EJB
           
static java.lang.String SUPPORT_MBEAN
           
static java.lang.String SUPPORT_PROPERTIES_LIST
           
static java.lang.String SUPPORT_REALM
           
static java.lang.String SUPPORT_REMOTE_DEPLOYMENT
           
static java.lang.String SUPPORT_SERVER_INFO
           
static java.lang.String SUPPORT_SERVER_SHUTDOWN
           
static java.lang.String SUPPORT_UNDEPLOYMENT
           
 int VERSION
           
 
Fields inherited from interface com.acelet.s.SuperBean
DISPLAY_TYPE_DIALOG, DISPLAY_TYPE_INTERNALFRAME, DISPLAY_TYPE_NOTVISIBLE, TYPE_ADMIN, TYPE_ENVOY, TYPE_MODULE, TYPE_MONITOR, TYPE_TUNE
 
Constructor Summary
Envoy()
           
 
Method Summary
 void addNotificationListener(java.lang.String jmxType, javax.management.ObjectName objectName, javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 void beforeBegin(Envoy envoy)
          beforeBegin set Envoy You can use this method as the "start" method for the bean.
 void checkLicense()
          checkLicense checks license for this SuperBean.
 void connect(java.lang.String providerUrl, java.lang.String loginName, java.lang.String password)
           
abstract  java.lang.String deployAndStartApplication(java.lang.String applicationJarFileName, java.lang.String clientJarFileName)
           
abstract  void deployment(com.acelet.s.DeploymentObject deploymentObject)
           
 void disconnect()
           
 java.util.Vector getApplications()
           
 javax.naming.Context getContext()
           
 java.util.Vector getDeployEpilog()
           
 java.lang.String getDescription(java.util.Locale locale)
          getDescription returns description of the bean.
 int getDisplayType()
          getDisplayType returns description of the bean.
 java.lang.String getDowryEjbName()
           
 javax.ejb.EJBHome getEjbHomeForJndiName(java.lang.String jndiName)
           
static Envoy getEnvoy()
           
 java.lang.String getEnvoyClassName()
           
static java.lang.String getEnvoyId()
           
 java.lang.String getEnvoyName()
           
 java.lang.String getExampleEjbName()
           
 java.lang.String getHelpSetName(java.util.Locale locale)
          getHelpSet returns javax.help.HelpSet name, with specified locale.
 java.lang.String getHelpTopic()
          getHelpTopic returns help topic for this SuperBean.
 java.lang.String getJaxrConnectionFactoryName()
           
 com.acelet.s.Jndi getJndi()
           
 java.util.Properties getJndiProperties()
           
 java.lang.String getLicenseType()
          getLicenseType check license for this bean.
 javax.management.j2ee.Management getManagement()
           
 javax.management.j2ee.Management getManagement(java.lang.String jndiName)
           
 com.acelet.s.Mbean getMbean(java.lang.String which)
           
 com.acelet.s.MbeanRemoteParameter getMbeanRemoteParameter(java.lang.String jmxType)
           
 java.lang.Object getMenuItem()
          getMenuItem returns a JMenuItem, which is used by Super to construct a visible bean.
 java.lang.String getNameText(java.util.Locale locale)
          getNameText returns the name for menu and window title.
 java.lang.Object getPanel()
          getPanel returns a JPanel, which is used by Super to construct a visible bean.
 javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String queueConnectionFactoryName)
           
 java.lang.String getServerInfo()
           
 java.lang.String getServerMachineName()
           
 javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String topicConnectionFactoryName)
           
 java.lang.String getType()
          getType return the type of this component.
 java.lang.String getVenderName()
           
 java.util.Vector getWarningVector()
           
 boolean install(java.lang.String beanboxDirName, java.lang.String serverHomeDir)
          install does all necessary work to install this bean.
 boolean installLicense(java.lang.String beanboxDirName)
          installLicense does all necessary work to install a license for this bean.
 boolean isSupported(java.lang.String item)
           
 java.util.Vector listContext()
           
 java.util.Vector listEjbs()
           
 java.util.Properties listProperties()
           
 java.lang.Object lookup(java.lang.String name, java.lang.Class narrowTo)
           
 void populateMbeanTree(java.util.TreeMap rootTreeMap)
           
 void printOutConnectProperties()
           
 void realmAddGroup(java.lang.String groupName)
           
 void realmAddUser(java.lang.String name, java.lang.String password, java.lang.String[] groups)
           
 void realmDeleteGroup(java.lang.String groupName)
           
 void realmDeleteUser(java.lang.String realmName, java.lang.String userName)
           
 java.lang.String realmGetDefaultUserName()
           
 java.lang.String realmGetDefaultUserPassword()
           
 java.util.Vector realmGetGroupNames()
           
 java.util.Enumeration realmGetRealmNames()
           
 java.lang.String realmGetSupported()
           
 java.util.Enumeration realmGetUserNames(java.lang.String realmName)
           
 void realmImportCertificate(java.lang.String certificateFileName)
           
 void refresh()
           
 void removeNotificationListener(java.lang.String jmxType, javax.management.ObjectName objectName, javax.management.NotificationListener listener)
           
 void resetMbeanStaticConnection()
           
abstract  void serverShutdown(com.acelet.s.ServerShutdownObject serverShutdownObject)
           
 void setEnvoy(Envoy envoy)
           
 void setJDesktopPane(java.lang.Object desktopPane)
          setJDesktopPane set the JDesktopPane.
 void setWarningVector(java.util.Vector warningVector)
           
abstract  java.lang.String undeployApplication(java.lang.String applicationName)
           
 boolean uninstall(java.lang.String beanboxDirName, java.lang.String serverHomeDir)
          uninstall does all necessary work to uninstall this bean.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public int VERSION

SUPPORT_APPLICATION_LIST

public static java.lang.String SUPPORT_APPLICATION_LIST

SUPPORT_CHANGE_PASSWORD

public static java.lang.String SUPPORT_CHANGE_PASSWORD

SUPPORT_CONTEXT_LIST

public static java.lang.String SUPPORT_CONTEXT_LIST

SUPPORT_DEPLOYMENT

public static java.lang.String SUPPORT_DEPLOYMENT

SUPPORT_LIST_EJB

public static java.lang.String SUPPORT_LIST_EJB

SUPPORT_MBEAN

public static java.lang.String SUPPORT_MBEAN

SUPPORT_REALM

public static java.lang.String SUPPORT_REALM

SUPPORT_REMOTE_DEPLOYMENT

public static java.lang.String SUPPORT_REMOTE_DEPLOYMENT

SUPPORT_PROPERTIES_LIST

public static java.lang.String SUPPORT_PROPERTIES_LIST

SUPPORT_SERVER_INFO

public static java.lang.String SUPPORT_SERVER_INFO

SUPPORT_SERVER_SHUTDOWN

public static java.lang.String SUPPORT_SERVER_SHUTDOWN

SUPPORT_UNDEPLOYMENT

public static java.lang.String SUPPORT_UNDEPLOYMENT

envoy

public static Envoy envoy

envoyId

public static java.lang.String envoyId

providerUrl

public static java.lang.String providerUrl

loginName

public static java.lang.String loginName

password

public static java.lang.String password

protocol

public static java.lang.String protocol

serverMachineName

public static java.lang.String serverMachineName

serverPort

public static int serverPort
Constructor Detail

Envoy

public Envoy()
      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

deployment

public abstract void deployment(com.acelet.s.DeploymentObject deploymentObject)
                         throws java.lang.Exception
Throws:
java.lang.Exception

deployAndStartApplication

public abstract java.lang.String deployAndStartApplication(java.lang.String applicationJarFileName,
                                                           java.lang.String clientJarFileName)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

serverShutdown

public abstract void serverShutdown(com.acelet.s.ServerShutdownObject serverShutdownObject)
                             throws java.lang.Exception
Throws:
java.lang.Exception

undeployApplication

public abstract java.lang.String undeployApplication(java.lang.String applicationName)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

addNotificationListener

public void addNotificationListener(java.lang.String jmxType,
                                    javax.management.ObjectName objectName,
                                    javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.Exception
Throws:
java.lang.Exception

beforeBegin

public void beforeBegin(Envoy envoy)
                 throws java.lang.Exception
Description copied from interface: SuperBean
beforeBegin set Envoy You can use this method as the "start" method for the bean.

Specified by:
beforeBegin in interface SuperBean
Throws:
java.lang.Exception

checkLicense

public void checkLicense()
                  throws java.lang.Exception
Description copied from interface: SuperBean
checkLicense checks license for this SuperBean. If there is no license or license is not valid, it throws Exception.

Specified by:
checkLicense in interface SuperBean
Throws:
java.lang.Exception

connect

public void connect(java.lang.String providerUrl,
                    java.lang.String loginName,
                    java.lang.String password)
             throws java.lang.Exception
Throws:
java.lang.Exception

disconnect

public void disconnect()

getApplications

public java.util.Vector getApplications()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getContext

public javax.naming.Context getContext()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Description copied from interface: SuperBean
getDescription returns description of the bean.

Specified by:
getDescription in interface SuperBean

getDeployEpilog

public java.util.Vector getDeployEpilog()

getDisplayType

public int getDisplayType()
Description copied from interface: SuperBean
getDisplayType returns description of the bean.

Specified by:
getDisplayType in interface SuperBean

getDowryEjbName

public java.lang.String getDowryEjbName()

getEjbHomeForJndiName

public javax.ejb.EJBHome getEjbHomeForJndiName(java.lang.String jndiName)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getEnvoy

public static Envoy getEnvoy()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getEnvoyId

public static java.lang.String getEnvoyId()

getEnvoyName

public java.lang.String getEnvoyName()

getEnvoyClassName

public java.lang.String getEnvoyClassName()

getExampleEjbName

public java.lang.String getExampleEjbName()

getHelpTopic

public java.lang.String getHelpTopic()
Description copied from interface: SuperBean
getHelpTopic returns help topic for this SuperBean.

Specified by:
getHelpTopic in interface SuperBean

getHelpSetName

public java.lang.String getHelpSetName(java.util.Locale locale)
Description copied from interface: SuperBean
getHelpSet returns javax.help.HelpSet name, with specified locale.

Specified by:
getHelpSetName in interface SuperBean

getJaxrConnectionFactoryName

public java.lang.String getJaxrConnectionFactoryName()

getJndi

public com.acelet.s.Jndi getJndi()
                          throws java.lang.Exception
Throws:
java.lang.Exception

getJndiProperties

public java.util.Properties getJndiProperties()

getLicenseType

public java.lang.String getLicenseType()
Description copied from interface: SuperBean
getLicenseType check license for this bean. Return LICENSE_TYPE_NON_LICENSED if it is not licensed. can not be null.

Specified by:
getLicenseType in interface SuperBean

getManagement

public javax.management.j2ee.Management getManagement()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getManagement

public javax.management.j2ee.Management getManagement(java.lang.String jndiName)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getMbean

public com.acelet.s.Mbean getMbean(java.lang.String which)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getMbeanRemoteParameter

public com.acelet.s.MbeanRemoteParameter getMbeanRemoteParameter(java.lang.String jmxType)

getMenuItem

public java.lang.Object getMenuItem()
Description copied from interface: SuperBean
getMenuItem returns a JMenuItem, which is used by Super to construct a visible bean. This is the main panle for the bean.

Specified by:
getMenuItem in interface SuperBean

getNameText

public java.lang.String getNameText(java.util.Locale locale)
Description copied from interface: SuperBean
getNameText returns the name for menu and window title.

Specified by:
getNameText in interface SuperBean

getPanel

public java.lang.Object getPanel()
Description copied from interface: SuperBean
getPanel returns a JPanel, which is used by Super to construct a visible bean. This is the main panle for the bean.

Specified by:
getPanel in interface SuperBean

getQueueConnectionFactory

public javax.jms.QueueConnectionFactory getQueueConnectionFactory(java.lang.String queueConnectionFactoryName)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getTopicConnectionFactory

public javax.jms.TopicConnectionFactory getTopicConnectionFactory(java.lang.String topicConnectionFactoryName)
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

getServerInfo

public java.lang.String getServerInfo()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getServerMachineName

public java.lang.String getServerMachineName()

getType

public java.lang.String getType()
Description copied from interface: SuperBean
getType return the type of this component.

Specified by:
getType in interface SuperBean

getVenderName

public java.lang.String getVenderName()

getWarningVector

public java.util.Vector getWarningVector()

install

public boolean install(java.lang.String beanboxDirName,
                       java.lang.String serverHomeDir)
                throws java.lang.Exception
Description copied from interface: SuperBean
install does all necessary work to install this bean. Returns true if the bean file (jar file) is copied to right location by this method, so the caller does not need to copy it. Returns false otherwise.
You can copy support files under directory beanbox or its sub-directories here. Copy files from out side to directory beanbox is not recommeded for end users.

Specified by:
install in interface SuperBean
Throws:
java.lang.Exception

installLicense

public boolean installLicense(java.lang.String beanboxDirName)
                       throws java.lang.Exception
Description copied from interface: SuperBean
installLicense does all necessary work to install a license for this bean.

Returns true if the license is installed successfuly. Returns false otherwise.

Specified by:
installLicense in interface SuperBean
Throws:
java.lang.Exception

isSupported

public boolean isSupported(java.lang.String item)

listEjbs

public java.util.Vector listEjbs()
                          throws java.lang.Exception
Throws:
java.lang.Exception

listContext

public java.util.Vector listContext()
                             throws java.lang.Exception
Throws:
java.lang.Exception

listProperties

public java.util.Properties listProperties()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

lookup

public java.lang.Object lookup(java.lang.String name,
                               java.lang.Class narrowTo)
                        throws java.lang.Exception
Throws:
java.lang.Exception

populateMbeanTree

public void populateMbeanTree(java.util.TreeMap rootTreeMap)
                       throws java.lang.Exception
Throws:
java.lang.Exception

printOutConnectProperties

public void printOutConnectProperties()

realmGetDefaultUserName

public java.lang.String realmGetDefaultUserName()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

realmGetDefaultUserPassword

public java.lang.String realmGetDefaultUserPassword()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

realmGetRealmNames

public java.util.Enumeration realmGetRealmNames()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

realmGetSupported

public java.lang.String realmGetSupported()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

realmGetUserNames

public java.util.Enumeration realmGetUserNames(java.lang.String realmName)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

realmAddGroup

public void realmAddGroup(java.lang.String groupName)
                   throws java.lang.Exception
Throws:
java.lang.Exception

realmAddUser

public void realmAddUser(java.lang.String name,
                         java.lang.String password,
                         java.lang.String[] groups)
                  throws java.lang.Exception
Throws:
java.lang.Exception

realmDeleteGroup

public void realmDeleteGroup(java.lang.String groupName)
                      throws java.lang.Exception
Throws:
java.lang.Exception

realmDeleteUser

public void realmDeleteUser(java.lang.String realmName,
                            java.lang.String userName)
                     throws java.lang.Exception
Throws:
java.lang.Exception

realmGetGroupNames

public java.util.Vector realmGetGroupNames()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

realmImportCertificate

public void realmImportCertificate(java.lang.String certificateFileName)
                            throws java.lang.Exception
Throws:
java.lang.Exception

refresh

public void refresh()
             throws java.lang.Exception
Throws:
java.lang.Exception

resetMbeanStaticConnection

public void resetMbeanStaticConnection()

removeNotificationListener

public void removeNotificationListener(java.lang.String jmxType,
                                       javax.management.ObjectName objectName,
                                       javax.management.NotificationListener listener)
                                throws java.lang.Exception
Throws:
java.lang.Exception

setEnvoy

public void setEnvoy(Envoy envoy)
              throws java.lang.Exception
Throws:
java.lang.Exception

setJDesktopPane

public void setJDesktopPane(java.lang.Object desktopPane)
Description copied from interface: SuperBean
setJDesktopPane set the JDesktopPane. The desktopPane is the mast window of the program.

Specified by:
setJDesktopPane in interface SuperBean

setWarningVector

public void setWarningVector(java.util.Vector warningVector)

uninstall

public boolean uninstall(java.lang.String beanboxDirName,
                         java.lang.String serverHomeDir)
                  throws java.lang.Exception
Description copied from interface: SuperBean
uninstall does all necessary work to uninstall this bean. Returns true if the bean file (jar file) is deleted by this method, so the caller does not need to delete it. Returns false otherwise.

Specified by:
uninstall in interface SuperBean
Throws:
java.lang.Exception

Copyright Acelet Corporation. 2000-2008. All rights reserved.