001/*
002 * JPPF.
003 * Copyright (C) 2005-2016 JPPF Team.
004 * http://www.jppf.org
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.jppf.management.generated;
020
021import java.util.Map;
022import org.jppf.classloader.DelegationModel;
023import org.jppf.management.AbstractMBeanStaticProxy;
024import org.jppf.management.JMXConnectionWrapper;
025import org.jppf.management.JPPFNodeAdminMBean;
026import org.jppf.management.JPPFNodeState;
027import org.jppf.management.JPPFSystemInformation;
028import org.jppf.management.NodePendingAction;
029
030/**
031 * Generated static proxy for the {@link org.jppf.management.JPPFNodeAdminMBean} MBean interface.
032 * @author /common/src/java/org/jppf/utils/generator/MBeanStaticProxyGenerator.java
033 */
034public class JPPFNodeAdminMBeanStaticProxy extends AbstractMBeanStaticProxy implements JPPFNodeAdminMBean {
035  /**
036   * Initialize this MBean static proxy.
037   * @param connection the JMX connection used to invoke remote MBean methods.
038   */
039  public JPPFNodeAdminMBeanStaticProxy(final JMXConnectionWrapper connection) {
040    super(connection, "org.jppf:name=admin,type=node");
041  }
042
043  /**
044   * Get the JMX object name for this MBean static proxy.
045   * @return the object name as a string.
046   */
047  public static final String getMBeanName() {
048    return "org.jppf:name=admin,type=node";
049  }
050
051  @Override
052  public boolean cancelPendingAction() {
053    return (boolean) invoke("cancelPendingAction", (Object[]) null, (String[]) null);
054  }
055
056  @Override
057  public DelegationModel getDelegationModel() {
058    return (DelegationModel) getAttribute("DelegationModel");
059  }
060
061  @Override
062  public JPPFNodeState state() {
063    return (JPPFNodeState) invoke("state", (Object[]) null, (String[]) null);
064  }
065
066  @Override
067  public JPPFSystemInformation systemInformation() {
068    return (JPPFSystemInformation) invoke("systemInformation", (Object[]) null, (String[]) null);
069  }
070
071  @Override
072  public NodePendingAction pendingAction() {
073    return (NodePendingAction) invoke("pendingAction", (Object[]) null, (String[]) null);
074  }
075
076  @Override
077  public void cancelJob(final String param0, final Boolean param1) {
078    invoke("cancelJob", new Object[] { param0, param1 }, new String[] { "java.lang.String", "java.lang.Boolean" });
079  }
080
081  @Override
082  public void resetTaskCounter() {
083    invoke("resetTaskCounter", (Object[]) null, (String[]) null);
084  }
085
086  @Override
087  public void restart() {
088    invoke("restart", (Object[]) null, (String[]) null);
089  }
090
091  @Override
092  public void restart(final Boolean param0) {
093    invoke("restart", new Object[] { param0 }, new String[] { "java.lang.Boolean" });
094  }
095
096  @Override
097  public void setDelegationModel(final DelegationModel param0) {
098    setAttribute("DelegationModel", param0);
099  }
100
101  @Override
102  public void setTaskCounter(final Integer param0) {
103    setAttribute("TaskCounter", param0);
104  }
105
106  @Override
107  public void shutdown() {
108    invoke("shutdown", (Object[]) null, (String[]) null);
109  }
110
111  @Override
112  public void shutdown(final Boolean param0) {
113    invoke("shutdown", new Object[] { param0 }, new String[] { "java.lang.Boolean" });
114  }
115
116  @Override
117  public void updateConfiguration(final Map param0, final Boolean param1) {
118    invoke("updateConfiguration", new Object[] { param0, param1 }, new String[] { "java.util.Map", "java.lang.Boolean" });
119  }
120
121  @Override
122  public void updateConfiguration(final Map param0, final Boolean param1, final Boolean param2) {
123    invoke("updateConfiguration", new Object[] { param0, param1, param2 }, new String[] { "java.util.Map", "java.lang.Boolean", "java.lang.Boolean" });
124  }
125
126  @Override
127  public void updateThreadPoolSize(final Integer param0) {
128    invoke("updateThreadPoolSize", new Object[] { param0 }, new String[] { "java.lang.Integer" });
129  }
130
131  @Override
132  public void updateThreadsPriority(final Integer param0) {
133    invoke("updateThreadsPriority", new Object[] { param0 }, new String[] { "java.lang.Integer" });
134  }
135}