001/*
002 * JPPF.
003 * Copyright (C) 2005-2018 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 */
034@SuppressWarnings({"rawtypes", "unchecked"})
035public class JPPFNodeAdminMBeanStaticProxy extends AbstractMBeanStaticProxy implements JPPFNodeAdminMBean {
036  /**
037   * Initialize this MBean static proxy.
038   * @param connection the JMX connection used to invoke remote MBean methods.
039   */
040  public JPPFNodeAdminMBeanStaticProxy(final JMXConnectionWrapper connection) {
041    super(connection, "org.jppf:name=admin,type=node");
042  }
043
044  /**
045   * Get the JMX object name for this MBean static proxy.
046   * @return the object name as a string.
047   */
048  public static final String getMBeanName() {
049    return "org.jppf:name=admin,type=node";
050  }
051
052  @Override
053  public boolean cancelPendingAction() {
054    return (boolean) invoke("cancelPendingAction", (Object[]) null, (String[]) null);
055  }
056
057  @Override
058  public DelegationModel getDelegationModel() {
059    return (DelegationModel) getAttribute("DelegationModel");
060  }
061
062  @Override
063  public JPPFNodeState state() {
064    return (JPPFNodeState) invoke("state", (Object[]) null, (String[]) null);
065  }
066
067  @Override
068  public JPPFSystemInformation systemInformation() {
069    return (JPPFSystemInformation) invoke("systemInformation", (Object[]) null, (String[]) null);
070  }
071
072  @Override
073  public NodePendingAction pendingAction() {
074    return (NodePendingAction) invoke("pendingAction", (Object[]) null, (String[]) null);
075  }
076
077  @Override
078  public void cancelJob(final String param0, final Boolean param1) {
079    invoke("cancelJob", new Object[] { param0, param1 }, new String[] { "java.lang.String", "java.lang.Boolean" });
080  }
081
082  @Override
083  public void resetTaskCounter() {
084    invoke("resetTaskCounter", (Object[]) null, (String[]) null);
085  }
086
087  @Override
088  public void restart() {
089    invoke("restart", (Object[]) null, (String[]) null);
090  }
091
092  @Override
093  public void restart(final Boolean param0) {
094    invoke("restart", new Object[] { param0 }, new String[] { "java.lang.Boolean" });
095  }
096
097  @Override
098  public void setDelegationModel(final DelegationModel param0) {
099    setAttribute("DelegationModel", param0);
100  }
101
102  @Override
103  public void setTaskCounter(final Integer param0) {
104    setAttribute("TaskCounter", param0);
105  }
106
107  @Override
108  public void shutdown() {
109    invoke("shutdown", (Object[]) null, (String[]) null);
110  }
111
112  @Override
113  public void shutdown(final Boolean param0) {
114    invoke("shutdown", new Object[] { param0 }, new String[] { "java.lang.Boolean" });
115  }
116
117  @Override
118  public void updateConfiguration(final Map param0, final Boolean param1) {
119    invoke("updateConfiguration", new Object[] { param0, param1 }, new String[] { "java.util.Map", "java.lang.Boolean" });
120  }
121
122  @Override
123  public void updateConfiguration(final Map param0, final Boolean param1, final Boolean param2) {
124    invoke("updateConfiguration", new Object[] { param0, param1, param2 }, new String[] { "java.util.Map", "java.lang.Boolean", "java.lang.Boolean" });
125  }
126
127  @Override
128  public void updateThreadPoolSize(final Integer param0) {
129    invoke("updateThreadPoolSize", new Object[] { param0 }, new String[] { "java.lang.Integer" });
130  }
131
132  @Override
133  public void updateThreadsPriority(final Integer param0) {
134    invoke("updateThreadsPriority", new Object[] { param0 }, new String[] { "java.lang.Integer" });
135  }
136}