Package com.sun.enterprise.admin.target

Examples of com.sun.enterprise.admin.target.TargetType


        }
    }
   
    private void createAResourceReference(Resource res, String target, Boolean isEnabled)
    throws Exception {
        TargetType targetType = getResourceTarget(target).getType();
        String resourceType = res.getType();
        if (isResourceReferenceValid(resourceType,targetType)) {
            createResourceReference(target, isEnabled.booleanValue(), getResourceName(res.getType(), res.getAttributes()));
        }
    }
View Full Code Here


     */
    public String createMBean(final String target, final Map<String, String> params, final Map<String, String> attributes) throws CustomMBeanException {
        boolean mbeanDefinitionCreated = false;
        try {
            final Target t = TargetBuilder.INSTANCE.createTarget(target, vTargets, target, this.acc);
            final TargetType pType = t.getType();
            final String newTarget = t.getName();
            //note: mutates the passed params for "NAME_KEY"
            mbeanDefinitionCreated = createMBeanDefinitionIfAbsent(newTarget, params, attributes);
            final String name = params.get(CustomMBeanConstants.NAME_KEY);
            if (TargetType.DOMAIN.equals((pType))) {
View Full Code Here

    public String deleteMBean(final String target, final String name) throws CustomMBeanException {
        if (name == null)
            throw new IllegalArgumentException(CMBStrings.get("InternalError", "null argument"));
        try {
            final Target t = TargetBuilder.INSTANCE.createTarget(target, vTargets, target, this.acc);
            final TargetType pType = t.getType();
            if (TargetType.DAS.equals(pType) || TargetType.SERVER.equals(pType)) {
                if (TargetType.SERVER.equals(pType)) {
                    EnterpriseCustomMBeanOperations.checkClusteredInstance(this.acc, t.getName());
                }
                this.deleteMBeanFromServer(t.getName(), name);
View Full Code Here

        }
        return ( definitionCreated );
    }
    private void checkObjectNameUniquenessForSameTarget(final String target, final ObjectName on) throws Exception {
        final Target t = TargetBuilder.INSTANCE.createTarget(target, vTargets, target, this.acc);
        final TargetType pType = t.getType();
        final String msg = CMBStrings.get("cmb.ee.objNameExists", on.toString(), target);
        logger.info(msg);
       
        if (TargetType.DOMAIN.equals(pType)) {
            final List<Mbean> mds = ServerBeansFactory.getAllMBeanDefinitions(this.acc);
View Full Code Here

         try{
            //parse the given target and ensure that it is a valid server instance.
            final Target target = TargetBuilder.INSTANCE.createTarget(VALID_DEPLOYMENT_TYPES,
                targetName, configContext);
            final TargetType targetType = target.getType();
            if (targetName == null) {
                targetName = target.getName();
            }
            if (targetType == TargetType.DOMAIN) {
                return new DomainDeploymentTarget(configContext, domainName, targetName);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.target.TargetType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.